UNPKG

10 kBSCSSView Raw
1@import "../node_modules/tinper-bee-core/scss/minxin-variables";
2@import "../node_modules/tinper-bee-core/scss/minxin-mixins";
3.viewer {
4 &-zoom-in::before,
5 &-zoom-out::before,
6 &-one-to-one::before,
7 &-reset::before,
8 &-prev::before,
9 &-play::before,
10 &-next::before,
11 &-rotate-left::before,
12 &-rotate-right::before,
13 &-flip-horizontal::before,
14 &-flip-vertical::before,
15 &-fullscreen::before,
16 &-fullscreen-exit::before,
17 &-close::before {
18 background-image: url('data:img/jpg;base64,iVBORw0KGgoAAAANSUhEUgAAARgAAAAUCAYAAABWOyJDAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAQPSURBVHic7Zs/iFxVFMa/0U2UaJGksUgnIVhYxVhpjDbZCBmLdAYECxsRFBTUamcXUiSNncgKQbSxsxH8gzAP3FU2jY0kKKJNiiiIghFlccnP4p3nPCdv3p9778vsLOcHB2bfveeb7955c3jvvNkBIMdxnD64a94GHMfZu3iBcRynN7zAOI7TG15gHCeeNUkr8zaxG2lbYDYsdgMbktBsP03jdQwljSXdtBhLOmtjowC9Mg9L+knSlcD8TNKpSA9lBpK2JF2VdDSR5n5J64m0qli399hNFMUlpshQii5jbXTbHGviB0nLNeNDSd9VO4A2UdB2fp+x0eCnaXxWXGA2X0au/3HgN9P4LFCjIANOJdrLr0zzZ+BEpNYDwKbpnQMeAw4m8HjQtM6Z9qa917zPQwFr3M5KgA6J5rTJCdFZJj9/lyvGhsDvwFNVuV2MhhjrK6b9bFiE+j1r87eBl4HDwCF7/U/k+ofAX5b/EXBv5JoLMuILzf3Ap6Z3EzgdqHMCuF7hcQf4HDgeoHnccncqdK/TvSDWffFXI/exICY/xZyqc6XLWF1UFZna4gJ7q8BsRvgd2/xXpo6P+D9dfT7PpECtA3cnWPM0GXGFZh/wgWltA+cDNC7X+AP4GzjZQe+k5dRxuYPeiuXU7e1qwLpDz7dFjXKRaSwuMLvAlG8zZlG+YmiK1HoFqT7wP2z+4Q45TfEGcMt01xLoNZEBTwRqD4BLpnMLeC1A41UmVxsXgXeBayV/Wx20rpTyrpnWRft7p6O/FdqzGrDukPNtkaMoMo3FBdBSQMOnYBCReyf05s126fU9ytfX98+mY54Kxnp7S9K3kj6U9KYdG0h6UdLbkh7poFXMfUnSOyVvL0h6VtIXHbS6nOP+s/Zm9mvyXW1uuC9ohZ72E9uDmXWLJOB1GxsH+DxPftsB8B6wlGDN02TAkxG6+4D3TWsbeC5CS8CDFce+AW500LhhOW2020TRjK3b21HEmgti9m0RonxbdMZeVzV+/4tF3cBpP7E9mKHNL5q8h5g0eYsCMQz0epq8gQrwMXAgcs0FGXGFRcB9wCemF9PkbYqM/Bas7fxLwNeJPdTdpo4itQti8lPMqTpXuozVRVXPpbHI3KkNTB1NfkL81j2mvhDp91HgV9MKuRIqrykj3WPq4rHyL+axj8/qGPmTqi6F9YDlHOvJU6oYcTsh/TYSzWmTE6JT19CtLTJt32D6CmHe0eQn1O8z5AXgT4sx4Vcu0/EQecMydB8z0hUWkTd2t4CrwNEePqMBcAR4mrBbwyXLPWJa8zrXmmLEhNBmfpkuY2102xxrih+pb+ieAb6vGhuA97UcJ5KR8gZ77K+99xxeYBzH6Q3/Z0fHcXrDC4zjOL3hBcZxnN74F+zlvXFWXF9PAAAAAElFTkSuQmCC');
19 background-repeat: no-repeat;
20 color: transparent;
21 display: block;
22 font-size: 0;
23 height: 20px;
24 line-height: 0;
25 width: 20px;
26 }
27
28 &-zoom-in::before {
29 background-position: 0 0;
30 content: 'Zoom In';
31 }
32
33 &-zoom-out::before {
34 background-position: -20px 0;
35 content: 'Zoom Out';
36 }
37
38 &-one-to-one::before {
39 background-position: -40px 0;
40 content: 'One to One';
41 }
42
43 &-reset::before {
44 background-position: -60px 0;
45 content: 'Reset';
46 }
47
48 &-prev::before {
49 background-position: -80px 0;
50 content: 'Previous';
51 }
52
53 &-play::before {
54 background-position: -100px 0;
55 content: 'Play';
56 }
57
58 &-next::before {
59 background-position: -120px 0;
60 content: 'Next';
61 }
62
63 &-rotate-left::before {
64 background-position: -140px 0;
65 content: 'Rotate Left';
66 }
67
68 &-rotate-right::before {
69 background-position: -160px 0;
70 content: 'Rotate Right';
71 }
72
73 &-flip-horizontal::before {
74 background-position: -180px 0;
75 content: 'Flip Horizontal';
76 }
77
78 &-flip-vertical::before {
79 background-position: -200px 0;
80 content: 'Flip Vertical';
81 }
82
83 &-fullscreen::before {
84 background-position: -220px 0;
85 content: 'Enter Full Screen';
86 }
87
88 &-fullscreen-exit::before {
89 background-position: -240px 0;
90 content: 'Exit Full Screen';
91 }
92
93 &-close::before {
94 background-position: -260px 0;
95 content: 'Close';
96 }
97
98 &-container {
99 bottom: 0;
100 direction: ltr;
101 font-size: 0;
102 left: 0;
103 line-height: 0;
104 overflow: hidden;
105 position: absolute;
106 right: 0;
107 -webkit-tap-highlight-color: transparent;
108 top: 0;
109 -webkit-touch-callout: none;
110 touch-action: none;
111 user-select: none;
112
113 &::selection,
114 & *::selection {
115 background-color: transparent;
116 }
117
118 & img {
119 display: block;
120 height: auto;
121 max-height: none !important;
122 max-width: none !important;
123 min-height: 0 !important;
124 min-width: 0 !important;
125 width: 100%;
126 }
127 }
128
129 &-canvas {
130 bottom: 0;
131 left: 0;
132 overflow: hidden;
133 position: absolute;
134 right: 0;
135 top: 0;
136
137 & > img {
138 height: auto;
139 margin: 15px auto;
140 max-width: 90% !important;
141 width: auto;
142 }
143 }
144
145 &-footer {
146 bottom: 0;
147 left: 0;
148 overflow: hidden;
149 position: absolute;
150 right: 0;
151 text-align: center;
152 }
153
154 &-navbar {
155 background-color: rgba(0, 0, 0, .5);
156 overflow: hidden;
157 }
158
159 &-list {
160 box-sizing: content-box;
161 height: 50px;
162 margin: 0;
163 overflow: hidden;
164 padding: 1px 0;
165
166 & > li {
167 color: transparent;
168 cursor: pointer;
169 float: left;
170 font-size: 0;
171 height: 50px;
172 line-height: 0;
173 opacity: .5;
174 overflow: hidden;
175 transition: opacity .15s;
176 width: 30px;
177
178 &:hover {
179 opacity: .75;
180 }
181
182 & + li {
183 margin-left: 1px;
184 }
185 }
186
187 & > .viewer-loading {
188 position: relative;
189
190 &::after {
191 border-width: 2px;
192 height: 20px;
193 margin-left: -10px;
194 margin-top: -10px;
195 width: 20px;
196 }
197 }
198
199 & > .viewer-active {
200 &,
201 &:hover {
202 opacity: 1;
203 }
204 }
205 }
206
207 &-player {
208 background-color: #000;
209 bottom: 0;
210 cursor: none;
211 display: none;
212 left: 0;
213 position: absolute;
214 right: 0;
215 top: 0;
216
217 & > img {
218 left: 0;
219 position: absolute;
220 top: 0;
221 }
222 }
223
224 &-toolbar {
225 & > ul {
226 display: inline-block;
227 margin: 0 auto 5px;
228 overflow: hidden;
229 padding: 3px 0;
230
231 & > li {
232 background-color: rgba(0, 0, 0, .5);
233 border-radius: 50%;
234 cursor: pointer;
235 float: left;
236 height: 24px;
237 overflow: hidden;
238 transition: background-color .15s;
239 width: 24px;
240
241 &:hover {
242 background-color: rgba(0, 0, 0, .8);
243 }
244
245 &::before {
246 margin: 2px;
247 }
248
249 & + li {
250 margin-left: 1px;
251 }
252 }
253
254 & > .viewer-small {
255 height: 18px;
256 margin-bottom: 3px;
257 margin-top: 3px;
258 width: 18px;
259
260 &::before {
261 margin: -1px;
262 }
263 }
264
265 & > .viewer-large {
266 height: 30px;
267 margin-bottom: -3px;
268 margin-top: -3px;
269 width: 30px;
270
271 &::before {
272 margin: 5px;
273 }
274 }
275 }
276 }
277
278 &-tooltip {
279 background-color: rgba(0, 0, 0, 0.8);
280 border-radius: 10px;
281 color: #fff;
282 display: none;
283 font-size: 12px;
284 height: 20px;
285 left: 50%;
286 line-height: 20px;
287 margin-left: -25px;
288 margin-top: -10px;
289 position: absolute;
290 text-align: center;
291 top: 50%;
292 width: 50px;
293 }
294
295 &-title {
296 color: #ccc;
297 display: inline-block;
298 font-size: 12px;
299 line-height: 1;
300 margin: 0 5% 5px;
301 max-width: 90%;
302 opacity: .8;
303 overflow: hidden;
304 text-overflow: ellipsis;
305 transition: opacity .15s;
306 white-space: nowrap;
307
308 &:hover {
309 opacity: 1;
310 }
311 }
312
313 &-button {
314 background-color: rgba(0, 0, 0, .5);
315 border-radius: 50%;
316 cursor: pointer;
317 height: 80px;
318 overflow: hidden;
319 position: absolute;
320 right: -40px;
321 top: -40px;
322 transition: background-color .15s;
323 width: 80px;
324
325 &:focus,
326 &:hover {
327 background-color: rgba(0, 0, 0, .8);
328 }
329
330 &::before {
331 bottom: 15px;
332 left: 15px;
333 position: absolute;
334 }
335 }
336
337 &-fixed {
338 position: fixed;
339 }
340
341 &-open {
342 overflow: hidden;
343 }
344
345 &-show {
346 display: block;
347 }
348
349 &-hide {
350 display: none;
351 }
352
353 &-backdrop {
354 background-color: rgba(0, 0, 0, .5);
355 }
356
357 &-invisible {
358 visibility: hidden;
359 }
360
361 &-move {
362 cursor: move;
363 cursor: grab;
364 }
365
366 &-fade {
367 opacity: 0;
368 }
369
370 &-in {
371 opacity: 1;
372 }
373
374 &-transition {
375 transition: all .3s;
376 }
377
378 @keyframes viewer-spinner {
379 0% {
380 transform: rotate(0deg);
381 }
382
383 100% {
384 transform: rotate(360deg);
385 }
386 }
387
388 &-loading {
389 &::after {
390 animation: viewer-spinner 1s linear infinite;
391 border: 4px solid rgba(255, 255, 255, .1);
392 border-left-color: rgba(255, 255, 255, .5);
393 border-radius: 50%;
394 content: '';
395 display: inline-block;
396 height: 40px;
397 left: 50%;
398 margin-left: -20px;
399 margin-top: -20px;
400 position: absolute;
401 top: 50%;
402 width: 40px;
403 z-index: 1;
404 }
405 }
406
407 @media (max-width: 767px) {
408 &-hide-xs-down {
409 display: none;
410 }
411 }
412
413 @media (max-width: 991px) {
414 &-hide-sm-down {
415 display: none;
416 }
417 }
418
419 @media (max-width: 1199px) {
420 &-hide-md-down {
421 display: none;
422 }
423 }
424 }
425
\No newline at end of file