1
1
.croppie-container {
2
- padding : 30px ;
2
+ width : 100% ;
3
+ height : 100% ;
3
4
}
5
+
4
6
.croppie-container .cr-image {
5
- z-index : -1 ;
6
- position : absolute;
7
- top : 0 ;
8
- left : 0 ;
9
- transform-origin : 0 0 ;
7
+ z-index : -1 ;
8
+ position : absolute;
9
+ top : 0 ;
10
+ left : 0 ;
11
+ transform-origin : 0 0 ;
12
+ max-height : none;
13
+ max-width : none;
10
14
}
11
15
12
16
.croppie-container .cr-boundary {
13
- position : relative;
14
- overflow : hidden;
15
- margin : 0 auto;
16
- z-index : 1 ;
17
+ position : relative;
18
+ overflow : hidden;
19
+ margin : 0 auto;
20
+ z-index : 1 ;
21
+ width : 100% ;
22
+ height : 100% ;
17
23
}
18
24
19
25
.croppie-container .cr-viewport {
20
- position : absolute;
21
- border : 2px solid # fff ;
22
- margin : auto;
23
- top : 0 ;
24
- bottom : 0 ;
25
- right : 0 ;
26
- left : 0 ;
27
- box-shadow : 0 0 0 899px rgba (0 , 0 , 0 , 0.5 );
28
- z-index : 0 ;
26
+ position : absolute;
27
+ border : 2px solid # fff ;
28
+ margin : auto;
29
+ top : 0 ;
30
+ bottom : 0 ;
31
+ right : 0 ;
32
+ left : 0 ;
33
+ box-shadow : 0 0 2000px 2000px rgba (0 , 0 , 0 , 0.5 );
34
+ z-index : 0 ;
35
+ }
36
+
37
+ .croppie-container .cr-original-image {
38
+ display : none;
29
39
}
40
+
30
41
.croppie-container .cr-vp-circle {
31
- border-radius : 50% ;
42
+ border-radius : 50% ;
32
43
}
44
+
33
45
.croppie-container .cr-overlay {
34
- z-index : 1 ;
35
- position : absolute;
36
- cursor : move;
46
+ z-index : 1 ;
47
+ position : absolute;
48
+ cursor : move;
37
49
}
50
+
38
51
.croppie-container .cr-slider-wrap {
39
- width : 75% ;
40
- margin : 0 auto;
41
- margin-top : 25px ;
42
- text-align : center;
52
+ width : 75% ;
53
+ margin : 15px auto;
54
+ text-align : center;
43
55
}
56
+
44
57
.croppie-result {
45
- position : relative;
46
- overflow : hidden;
58
+ position : relative;
59
+ overflow : hidden;
47
60
}
61
+
48
62
.croppie-result img {
49
- position : absolute;
63
+ position : absolute;
64
+ }
65
+
66
+ .croppie-container .cr-image ,
67
+ .croppie-container .cr-overlay ,
68
+ .croppie-container .cr-viewport {
69
+ -webkit-transform : translateZ (0 );
70
+ -moz-transform : translateZ (0 );
71
+ -ms-transform : translateZ (0 );
72
+ transform : translateZ (0 );
50
73
}
51
74
52
75
/*************************************/
53
76
/***** STYLING RANGE INPUT ***********/
54
77
/*************************************/
55
- /*http://brennaobrien.com/blog/2014/05/style-input-type-range-in-every-browser.html */
78
+ /* http://brennaobrien.com/blog/2014/05/style-input-type-range-in-every-browser.html */
56
79
/*************************************/
57
80
58
81
.cr-slider {
59
- -webkit-appearance : none;/*removes default webkit styles*/
82
+ -webkit-appearance : none;
83
+ /*removes default webkit styles*/
60
84
/*border: 1px solid white; */ /*fix for FF unable to apply focus style bug */
61
- width : 300px ;/*required for proper track sizing in FF*/
85
+ width : 300px ;
86
+ /*required for proper track sizing in FF*/
62
87
max-width : 100% ;
63
88
}
89
+
64
90
.cr-slider ::-webkit-slider-runnable-track {
65
91
width : 100% ;
66
92
height : 3px ;
67
93
background : rgba (0 , 0 , 0 , 0.5 );
68
94
border : 0 ;
69
95
border-radius : 3px ;
70
96
}
97
+
71
98
.cr-slider ::-webkit-slider-thumb {
72
99
-webkit-appearance : none;
73
100
border : none;
77
104
background : # ddd ;
78
105
margin-top : -6px ;
79
106
}
107
+
80
108
.cr-slider : focus {
81
109
outline : none;
82
110
}
93
121
border : 0 ;
94
122
border-radius : 3px ;
95
123
}
124
+
96
125
.cr-slider ::-moz-range-thumb {
97
126
border : none;
98
127
height : 16px ;
102
131
margin-top : -6px ;
103
132
}
104
133
105
- /*hide the outline behind the border*/
106
- .cr-slider : -moz-focusring {
134
+ /* hide the outline behind the border */
135
+ .cr-slider : -moz-focusring {
107
136
outline : 1px solid white;
108
137
outline-offset : -1px ;
109
138
}
110
139
111
140
.cr-slider ::-ms-track {
112
- width : 300 px ;
141
+ width : 100 % ;
113
142
height : 5px ;
114
- background : transparent;/* remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */
115
- border-color : transparent;/* leave room for the larger thumb to overflow with a transparent border */
143
+ background : transparent; /* remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */
144
+ border-color : transparent; /* leave room for the larger thumb to overflow with a transparent border */
116
145
border-width : 6px 0 ;
117
- color : transparent;/*remove default tick marks*/
146
+ color : transparent;/* remove default tick marks */
118
147
}
119
148
.cr-slider ::-ms-fill-lower {
120
149
background : rgba (0 , 0 , 0 , 0.5 );
130
159
width : 16px ;
131
160
border-radius : 50% ;
132
161
background : # ddd ;
162
+ margin-top : 1px ;
133
163
}
134
164
.cr-slider : focus ::-ms-fill-lower {
135
165
background : rgba (0 , 0 , 0 , 0.5 );
136
166
}
137
167
.cr-slider : focus ::-ms-fill-upper {
138
168
background : rgba (0 , 0 , 0 , 0.5 );
139
169
}
170
+ /*******************************************/
140
171
172
+ /***********************************/
141
173
/* Rotation Tools */
142
- /******************/
174
+ /*********************************** /
143
175
.cr-rotate-controls {
144
176
position : absolute;
145
177
bottom : 5px ;
161
193
}
162
194
.cr-rotate-r i : before {
163
195
content : '↻' ;
164
- }
165
- /*******************************************/
166
-
167
-
168
- /* Just cross hairs for debugging - can be removed upon release */
169
- .croppie-container .cr-viewport .debug : before ,
170
- .croppie-container .cr-viewport .debug : after {
171
- background : white;
172
- width : 1px ;
173
- height : 1px ;
174
- content : '' ;
175
- position : absolute;
176
- }
177
- .croppie-container .cr-viewport .debug : before {
178
- top : 0 ;
179
- height : 100% ;
180
- left : 50% ;
181
- }
182
- .croppie-container .cr-viewport .debug : after {
183
- top : 50% ;
184
- left : 0 ;
185
- width : 100% ;
186
- }
196
+ }
0 commit comments