1 | .cropper-container { |
---|
2 | position: relative; |
---|
3 | overflow: hidden; |
---|
4 | |
---|
5 | -webkit-user-select: none; |
---|
6 | -moz-user-select: none; |
---|
7 | -ms-user-select: none; |
---|
8 | user-select: none; |
---|
9 | |
---|
10 | -webkit-tap-highlight-color: transparent; |
---|
11 | -webkit-touch-callout: none; |
---|
12 | } |
---|
13 | |
---|
14 | .cropper-container img { |
---|
15 | width: 100%; |
---|
16 | height: 100%; |
---|
17 | min-width: 0 !important; |
---|
18 | min-height: 0 !important; |
---|
19 | max-width: none !important; |
---|
20 | max-height: none !important; |
---|
21 | } |
---|
22 | |
---|
23 | .cropper-modal, |
---|
24 | .cropper-canvas { |
---|
25 | position: absolute; |
---|
26 | top: 0; |
---|
27 | right: 0; |
---|
28 | bottom: 0; |
---|
29 | left: 0; |
---|
30 | } |
---|
31 | |
---|
32 | .cropper-canvas { |
---|
33 | background-color: #fff; |
---|
34 | opacity: 0; |
---|
35 | filter: alpha(opacity=0); |
---|
36 | } |
---|
37 | |
---|
38 | .cropper-modal { |
---|
39 | background-color: #000; |
---|
40 | opacity: .5; |
---|
41 | filter: alpha(opacity=50); |
---|
42 | } |
---|
43 | |
---|
44 | .cropper-dragger { |
---|
45 | position: absolute; |
---|
46 | top: 10%; |
---|
47 | left: 10%; |
---|
48 | width: 80%; |
---|
49 | height: 80%; |
---|
50 | } |
---|
51 | |
---|
52 | .cropper-viewer { |
---|
53 | display: block; |
---|
54 | width: 100%; |
---|
55 | height: 100%; |
---|
56 | overflow: hidden; |
---|
57 | outline-width: 1px; |
---|
58 | outline-style: solid; |
---|
59 | outline-color: #69f; |
---|
60 | outline-color: rgba(51, 102, 255, .75); |
---|
61 | } |
---|
62 | |
---|
63 | .cropper-dashed { |
---|
64 | position: absolute; |
---|
65 | display: block; |
---|
66 | border: 0 dashed #fff; |
---|
67 | opacity: .5; |
---|
68 | filter: alpha(opacity=50); |
---|
69 | } |
---|
70 | |
---|
71 | .cropper-dashed.dashed-h { |
---|
72 | top: 33.3%; |
---|
73 | left: 0; |
---|
74 | width: 100%; |
---|
75 | height: 33.3%; |
---|
76 | border-top-width: 1px; |
---|
77 | border-bottom-width: 1px; |
---|
78 | } |
---|
79 | |
---|
80 | .cropper-dashed.dashed-v { |
---|
81 | top: 0; |
---|
82 | left: 33.3%; |
---|
83 | width: 33.3%; |
---|
84 | height: 100%; |
---|
85 | border-right-width: 1px; |
---|
86 | border-left-width: 1px; |
---|
87 | } |
---|
88 | |
---|
89 | .cropper-face, |
---|
90 | .cropper-line, |
---|
91 | .cropper-point { |
---|
92 | position: absolute; |
---|
93 | display: block; |
---|
94 | width: 100%; |
---|
95 | height: 100%; |
---|
96 | opacity: .1; |
---|
97 | filter: alpha(opacity=10); |
---|
98 | } |
---|
99 | |
---|
100 | .cropper-face { |
---|
101 | top: 0; |
---|
102 | left: 0; |
---|
103 | cursor: move; |
---|
104 | background-color: #000; |
---|
105 | } |
---|
106 | |
---|
107 | .cropper-line { |
---|
108 | background-color: #69f; |
---|
109 | } |
---|
110 | |
---|
111 | .cropper-line.line-e { |
---|
112 | top: 0; |
---|
113 | right: -3px; |
---|
114 | width: 5px; |
---|
115 | cursor: e-resize; |
---|
116 | } |
---|
117 | |
---|
118 | .cropper-line.line-n { |
---|
119 | top: -3px; |
---|
120 | left: 0; |
---|
121 | height: 5px; |
---|
122 | cursor: n-resize; |
---|
123 | } |
---|
124 | |
---|
125 | .cropper-line.line-w { |
---|
126 | top: 0; |
---|
127 | left: -3px; |
---|
128 | width: 5px; |
---|
129 | cursor: w-resize; |
---|
130 | } |
---|
131 | |
---|
132 | .cropper-line.line-s { |
---|
133 | bottom: -3px; |
---|
134 | left: 0; |
---|
135 | height: 5px; |
---|
136 | cursor: s-resize; |
---|
137 | } |
---|
138 | |
---|
139 | .cropper-point { |
---|
140 | width: 5px; |
---|
141 | height: 5px; |
---|
142 | background-color: #69f; |
---|
143 | opacity: .75; |
---|
144 | filter: alpha(opacity=75); |
---|
145 | } |
---|
146 | |
---|
147 | .cropper-point.point-e { |
---|
148 | top: 50%; |
---|
149 | right: -3px; |
---|
150 | margin-top: -3px; |
---|
151 | cursor: e-resize; |
---|
152 | } |
---|
153 | |
---|
154 | .cropper-point.point-n { |
---|
155 | top: -3px; |
---|
156 | left: 50%; |
---|
157 | margin-left: -3px; |
---|
158 | cursor: n-resize; |
---|
159 | } |
---|
160 | |
---|
161 | .cropper-point.point-w { |
---|
162 | top: 50%; |
---|
163 | left: -3px; |
---|
164 | margin-top: -3px; |
---|
165 | cursor: w-resize; |
---|
166 | } |
---|
167 | |
---|
168 | .cropper-point.point-s { |
---|
169 | bottom: -3px; |
---|
170 | left: 50%; |
---|
171 | margin-left: -3px; |
---|
172 | cursor: s-resize; |
---|
173 | } |
---|
174 | |
---|
175 | .cropper-point.point-ne { |
---|
176 | top: -3px; |
---|
177 | right: -3px; |
---|
178 | cursor: ne-resize; |
---|
179 | } |
---|
180 | |
---|
181 | .cropper-point.point-nw { |
---|
182 | top: -3px; |
---|
183 | left: -3px; |
---|
184 | cursor: nw-resize; |
---|
185 | } |
---|
186 | |
---|
187 | .cropper-point.point-sw { |
---|
188 | bottom: -3px; |
---|
189 | left: -3px; |
---|
190 | cursor: sw-resize; |
---|
191 | } |
---|
192 | |
---|
193 | .cropper-point.point-se { |
---|
194 | right: -3px; |
---|
195 | bottom: -3px; |
---|
196 | width: 20px; |
---|
197 | height: 20px; |
---|
198 | cursor: se-resize; |
---|
199 | opacity: 1; |
---|
200 | filter: alpha(opacity=100); |
---|
201 | } |
---|
202 | |
---|
203 | .cropper-point.point-se:before { |
---|
204 | position: absolute; |
---|
205 | right: -50%; |
---|
206 | bottom: -50%; |
---|
207 | display: block; |
---|
208 | width: 200%; |
---|
209 | height: 200%; |
---|
210 | content: " "; |
---|
211 | background-color: #69f; |
---|
212 | opacity: 0; |
---|
213 | filter: alpha(opacity=0); |
---|
214 | } |
---|
215 | |
---|
216 | @media (min-width: 768px) { |
---|
217 | .cropper-point.point-se { |
---|
218 | width: 15px; |
---|
219 | height: 15px; |
---|
220 | } |
---|
221 | } |
---|
222 | |
---|
223 | @media (min-width: 992px) { |
---|
224 | .cropper-point.point-se { |
---|
225 | width: 10px; |
---|
226 | height: 10px; |
---|
227 | } |
---|
228 | } |
---|
229 | |
---|
230 | @media (min-width: 1200px) { |
---|
231 | .cropper-point.point-se { |
---|
232 | width: 5px; |
---|
233 | height: 5px; |
---|
234 | opacity: .75; |
---|
235 | filter: alpha(opacity=75); |
---|
236 | } |
---|
237 | } |
---|
238 | |
---|
239 | /* Helper classes for JavaScript */ |
---|
240 | |
---|
241 | .cropper-hidden { |
---|
242 | display: none !important; |
---|
243 | } |
---|
244 | |
---|
245 | .cropper-invisible { |
---|
246 | position: fixed; |
---|
247 | top: 0; |
---|
248 | left: 0; |
---|
249 | z-index: -1; |
---|
250 | width: auto !important; |
---|
251 | max-width: none !important; |
---|
252 | height: auto !important; |
---|
253 | max-height: none !important; |
---|
254 | opacity: 0; |
---|
255 | filter: alpha(opacity=0); |
---|
256 | } |
---|
257 | |
---|
258 | .cropper-move { |
---|
259 | cursor: move; |
---|
260 | } |
---|
261 | |
---|
262 | .cropper-crop { |
---|
263 | cursor: crosshair; |
---|
264 | } |
---|
265 | |
---|
266 | .cropper-disabled .cropper-canvas, |
---|
267 | .cropper-disabled .cropper-face, |
---|
268 | .cropper-disabled .cropper-line, |
---|
269 | .cropper-disabled .cropper-point { |
---|
270 | cursor: not-allowed; |
---|
271 | } |
---|