fotoramajs 4.5.0 → 4.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -14
- data/Rakefile +4 -2
- data/lib/fotoramajs/helpers.rb +16 -0
- data/lib/fotoramajs/version.rb +1 -1
- data/lib/fotoramajs.rb +7 -0
- data/vendor/assets/javascripts/fotorama.js +344 -221
- data/vendor/assets/stylesheets/fotorama.css.scss +115 -97
- metadata +3 -2
@@ -1,7 +1,8 @@
|
|
1
1
|
/*!
|
2
|
-
* Fotorama 4.5.
|
2
|
+
* Fotorama 4.5.2 | http://fotorama.io/license/
|
3
3
|
*/
|
4
|
-
.
|
4
|
+
.fotorama__nav__frame:focus .fotorama__dot:after, .fotorama__nav__frame:focus .fotorama__thumb:after, .fotorama__fullscreen-icon:focus:after,
|
5
|
+
.fotorama__arr:focus:after, .fotorama__stage__shaft, .fotorama__stage__frame, .fotorama__img, .fotorama__html, .fotorama__video iframe {
|
5
6
|
position: absolute;
|
6
7
|
width: 100%;
|
7
8
|
height: 100%;
|
@@ -33,16 +34,11 @@
|
|
33
34
|
cursor: -ms-grabbing;
|
34
35
|
cursor: grabbing; }
|
35
36
|
|
36
|
-
.
|
37
|
+
.fotorama__spinner {
|
37
38
|
position: absolute !important;
|
38
39
|
top: 50% !important;
|
39
40
|
left: 50% !important; }
|
40
41
|
|
41
|
-
.fotorama__img {
|
42
|
-
margin: -50% 0 0 -50%;
|
43
|
-
width: 100%;
|
44
|
-
height: 100%; }
|
45
|
-
|
46
42
|
.fotorama__wrap--css3 .fotorama__stage__shaft,
|
47
43
|
.fotorama__wrap--css3 .fotorama__nav__shaft,
|
48
44
|
.fotorama__wrap--css3 .fotorama__thumb-border, .fotorama__wrap--css3 .fotorama__arr, .fotorama__wrap--css3
|
@@ -52,27 +48,35 @@
|
|
52
48
|
-webkit-transform: translate3d(0, 0, 0);
|
53
49
|
transform: translate3d(0, 0, 0); }
|
54
50
|
|
55
|
-
.fotorama__wrap--css3 .fotorama__spinner, .fotorama__wrap--css3 .fotorama__stage,
|
51
|
+
.fotorama__caption, .fotorama__wrap--css3 .fotorama__spinner, .fotorama__wrap--css3 .fotorama__stage,
|
56
52
|
.fotorama__wrap--css3 .fotorama__nav,
|
57
53
|
.fotorama__wrap--css3 .fotorama__stage__frame, .fotorama__wrap--css3 .fotorama__stage .fotorama__img,
|
58
|
-
.fotorama__wrap--css3 .fotorama__html,
|
59
|
-
|
60
|
-
|
61
|
-
|
54
|
+
.fotorama__wrap--css3 .fotorama__html, .fotorama__stage:before, .fotorama__stage:after, .fotorama__nav:before, .fotorama__nav:after {
|
55
|
+
-webkit-transform: translate3d(0.001px, 0, 0);
|
56
|
+
transform: translate3d(0.001px, 0, 0); }
|
57
|
+
|
58
|
+
.fotorama__nav__frame, .fotorama__fullscreen-icon:focus,
|
59
|
+
.fotorama__arr:focus {
|
60
|
+
outline: 0; }
|
61
|
+
|
62
|
+
.fotorama__nav__frame:focus .fotorama__dot:after, .fotorama__nav__frame:focus .fotorama__thumb:after, .fotorama__fullscreen-icon:focus:after,
|
63
|
+
.fotorama__arr:focus:after {
|
64
|
+
content: '';
|
65
|
+
border-radius: inherit;
|
66
|
+
background-color: rgba(0, 175, 234, 0.5); }
|
62
67
|
|
63
68
|
.fotorama__wrap--video .fotorama__stage__shaft,
|
64
69
|
.fotorama__wrap--video .fotorama__stage,
|
65
70
|
.fotorama__wrap--video .fotorama__stage__frame--video, .fotorama__wrap--video .fotorama__stage__frame--video .fotorama__img,
|
66
|
-
.fotorama__wrap--video .fotorama__stage__frame--video .fotorama__html
|
67
|
-
.fotorama__wrap--video .fotorama__stage__frame--video .fotorama__caption {
|
71
|
+
.fotorama__wrap--video .fotorama__stage__frame--video .fotorama__html {
|
68
72
|
-webkit-transform: none !important;
|
69
73
|
transform: none !important; }
|
70
74
|
|
71
75
|
.fotorama__wrap--css3 .fotorama__stage__shaft,
|
72
76
|
.fotorama__wrap--css3 .fotorama__nav__shaft,
|
73
77
|
.fotorama__wrap--css3 .fotorama__thumb-border {
|
74
|
-
-webkit-transition-property: -webkit-transform;
|
75
|
-
transition-property: transform;
|
78
|
+
-webkit-transition-property: -webkit-transform, width;
|
79
|
+
transition-property: transform, width;
|
76
80
|
-webkit-transition-timing-function: cubic-bezier(0.1, 0, 0.25, 1);
|
77
81
|
transition-timing-function: cubic-bezier(0.1, 0, 0.25, 1);
|
78
82
|
-webkit-transition-duration: 0ms;
|
@@ -94,7 +98,7 @@
|
|
94
98
|
user-select: text; }
|
95
99
|
|
96
100
|
.fotorama__nav, .fotorama__nav__frame {
|
97
|
-
margin:
|
101
|
+
margin: auto;
|
98
102
|
padding: 0; }
|
99
103
|
|
100
104
|
.fotorama__nav__shaft, .fotorama__nav__frame, .fotorama__caption__wrap {
|
@@ -123,11 +127,11 @@
|
|
123
127
|
.fotorama__fullscreen-icon,
|
124
128
|
.fotorama__video-play,
|
125
129
|
.fotorama__video-close {
|
126
|
-
-webkit-tap-highlight-color:
|
130
|
+
-webkit-tap-highlight-color: transparent; }
|
127
131
|
|
128
132
|
.fotorama__arr, .fotorama__fullscreen-icon, .fotorama__video-play, .fotorama__video-close {
|
129
133
|
background: image-url("fotorama.png") no-repeat; }
|
130
|
-
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution:
|
134
|
+
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 2dppx) {
|
131
135
|
.fotorama__arr, .fotorama__fullscreen-icon, .fotorama__video-play, .fotorama__video-close {
|
132
136
|
background: image-url("fotorama@2x.png") no-repeat;
|
133
137
|
background-size: 96px 160px; } }
|
@@ -136,6 +140,10 @@
|
|
136
140
|
background-color: #7f7f7f;
|
137
141
|
background-color: rgba(127, 127, 127, 0.2); }
|
138
142
|
|
143
|
+
@media print {
|
144
|
+
.fotorama__arr, .fotorama__fullscreen-icon, .fotorama__video-play, .fotorama__video-close, .fotorama__thumb-border {
|
145
|
+
background: none !important; } }
|
146
|
+
|
139
147
|
.fotorama {
|
140
148
|
min-width: 1px;
|
141
149
|
overflow: hidden; }
|
@@ -171,7 +179,8 @@
|
|
171
179
|
.fotorama__wrap {
|
172
180
|
-webkit-text-size-adjust: 100%;
|
173
181
|
position: relative;
|
174
|
-
direction: ltr;
|
182
|
+
direction: ltr;
|
183
|
+
z-index: 0; }
|
175
184
|
|
176
185
|
.fotorama__wrap--rtl .fotorama__stage__frame {
|
177
186
|
direction: rtl; }
|
@@ -283,27 +292,27 @@
|
|
283
292
|
top: 12px;
|
284
293
|
left: 6px;
|
285
294
|
border-radius: 6px;
|
286
|
-
border: 1px solid; }
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
295
|
+
border: 1px solid #7f7f7f; }
|
296
|
+
.fotorama__nav__frame:focus .fotorama__dot:after {
|
297
|
+
padding: 1px;
|
298
|
+
top: -1px;
|
299
|
+
left: -1px; }
|
291
300
|
.fotorama__nav__frame.fotorama__active .fotorama__dot {
|
292
|
-
width:
|
293
|
-
height:
|
294
|
-
border:
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
.fotorama__active .fotorama__dot {
|
300
|
-
background-color: #7f7f7f; }
|
301
|
+
width: 0;
|
302
|
+
height: 0;
|
303
|
+
border-width: 3px; }
|
304
|
+
.fotorama__nav__frame.fotorama__active .fotorama__dot:after {
|
305
|
+
padding: 3px;
|
306
|
+
top: -3px;
|
307
|
+
left: -3px; }
|
301
308
|
|
302
309
|
.fotorama__thumb {
|
303
310
|
overflow: hidden;
|
304
311
|
position: relative;
|
305
312
|
width: 100%;
|
306
313
|
height: 100%; }
|
314
|
+
.fotorama__nav__frame:focus .fotorama__thumb {
|
315
|
+
z-index: 2; }
|
307
316
|
|
308
317
|
.fotorama__thumb-border {
|
309
318
|
position: absolute;
|
@@ -336,6 +345,8 @@
|
|
336
345
|
.fotorama__wrap--rtl .fotorama__caption {
|
337
346
|
left: auto;
|
338
347
|
right: 0; }
|
348
|
+
.fotorama__wrap--video .fotorama__caption, .fotorama__wrap--no-captions .fotorama__caption {
|
349
|
+
display: none; }
|
339
350
|
|
340
351
|
.fotorama__caption__wrap {
|
341
352
|
background-color: #fff;
|
@@ -359,13 +370,11 @@
|
|
359
370
|
100% {
|
360
371
|
-webkit-transform: rotate(360deg);
|
361
372
|
transform: rotate(360deg); } }
|
362
|
-
|
363
373
|
.fotorama__wrap--css3 .fotorama__spinner {
|
364
374
|
-webkit-animation: spinner 24s infinite linear;
|
365
375
|
animation: spinner 24s infinite linear; }
|
366
376
|
.fotorama__wrap--css3 .fotorama__stage .fotorama__img,
|
367
|
-
.fotorama__wrap--css3 .fotorama__html
|
368
|
-
.fotorama__wrap--css3 .fotorama__caption {
|
377
|
+
.fotorama__wrap--css3 .fotorama__html {
|
369
378
|
-webkit-transition-property: opacity;
|
370
379
|
transition-property: opacity;
|
371
380
|
-webkit-transition-timing-function: linear;
|
@@ -374,8 +383,7 @@
|
|
374
383
|
transition-duration: 0.3s; }
|
375
384
|
|
376
385
|
.fotorama__wrap--video .fotorama__stage__frame--video .fotorama__img,
|
377
|
-
.fotorama__wrap--video .fotorama__stage__frame--video .fotorama__html
|
378
|
-
.fotorama__wrap--video .fotorama__stage__frame--video .fotorama__caption {
|
386
|
+
.fotorama__wrap--video .fotorama__stage__frame--video .fotorama__html {
|
379
387
|
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
|
380
388
|
filter: alpha(opacity=0);
|
381
389
|
opacity: 0; }
|
@@ -395,12 +403,10 @@
|
|
395
403
|
@-moz-document url-prefix() {
|
396
404
|
.fotorama__active {
|
397
405
|
box-shadow: 0 0 0 transparent; } }
|
398
|
-
|
399
406
|
.fotorama__arr,
|
400
407
|
.fotorama__fullscreen-icon,
|
401
408
|
.fotorama__video-play,
|
402
409
|
.fotorama__video-close {
|
403
|
-
display: block;
|
404
410
|
position: absolute;
|
405
411
|
z-index: 11;
|
406
412
|
cursor: pointer; }
|
@@ -413,11 +419,11 @@
|
|
413
419
|
margin-top: -16px; }
|
414
420
|
|
415
421
|
.fotorama__arr--prev {
|
416
|
-
left:
|
422
|
+
left: 2px;
|
417
423
|
background-position: 0 0; }
|
418
424
|
|
419
425
|
.fotorama__arr--next {
|
420
|
-
right:
|
426
|
+
right: 2px;
|
421
427
|
background-position: -32px 0; }
|
422
428
|
|
423
429
|
.fotorama__arr--disabled {
|
@@ -429,11 +435,15 @@
|
|
429
435
|
.fotorama__fullscreen-icon {
|
430
436
|
width: 32px;
|
431
437
|
height: 32px;
|
432
|
-
top:
|
433
|
-
right:
|
438
|
+
top: 2px;
|
439
|
+
right: 2px;
|
434
440
|
background-position: 0 -32px;
|
435
441
|
z-index: 20; }
|
436
442
|
|
443
|
+
.fotorama__fullscreen-icon:focus,
|
444
|
+
.fotorama__arr:focus {
|
445
|
+
border-radius: 50%; }
|
446
|
+
|
437
447
|
.fotorama--fullscreen .fotorama__fullscreen-icon {
|
438
448
|
background-position: -32px -32px; }
|
439
449
|
|
@@ -445,75 +455,83 @@
|
|
445
455
|
margin-left: -48px;
|
446
456
|
margin-top: -48px;
|
447
457
|
background-position: 0 -64px;
|
448
|
-
|
449
|
-
.fotorama__wrap--
|
450
|
-
display:
|
451
|
-
opacity: 0; }
|
458
|
+
opacity: 0; }
|
459
|
+
.fotorama__wrap--css2 .fotorama__video-play, .fotorama__wrap--video .fotorama__stage .fotorama__video-play {
|
460
|
+
display: none; }
|
452
461
|
.fotorama__loaded .fotorama__video-play, .fotorama__error .fotorama__video-play {
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
background-position: -64px -32px;
|
462
|
-
opacity: 1 !important;
|
463
|
-
display: block !important; }
|
462
|
+
opacity: 1;
|
463
|
+
display: block; }
|
464
|
+
.fotorama__nav__frame .fotorama__video-play {
|
465
|
+
width: 32px;
|
466
|
+
height: 32px;
|
467
|
+
margin-left: -16px;
|
468
|
+
margin-top: -16px;
|
469
|
+
background-position: -64px -32px; }
|
464
470
|
|
465
471
|
.fotorama__video-close {
|
466
472
|
width: 32px;
|
467
473
|
height: 32px;
|
468
474
|
top: 0;
|
469
475
|
right: 0;
|
470
|
-
display: none;
|
471
476
|
background-position: -64px 0;
|
472
|
-
z-index: 20;
|
477
|
+
z-index: 20;
|
478
|
+
opacity: 0; }
|
479
|
+
.fotorama__wrap--css2 .fotorama__video-close {
|
480
|
+
display: none; }
|
481
|
+
.fotorama__wrap--css3 .fotorama__video-close {
|
482
|
+
-webkit-transform: translate3d(32px, -32px, 0);
|
483
|
+
transform: translate3d(32px, -32px, 0); }
|
484
|
+
.fotorama__wrap--video .fotorama__video-close {
|
485
|
+
display: block;
|
486
|
+
opacity: 1; }
|
487
|
+
.fotorama__wrap--css3.fotorama__wrap--video .fotorama__video-close {
|
488
|
+
-webkit-transform: translate3d(0, 0, 0);
|
489
|
+
transform: translate3d(0, 0, 0); }
|
490
|
+
|
491
|
+
.fotorama__wrap--no-controls.fotorama__wrap--toggle-arrows .fotorama__arr,
|
492
|
+
.fotorama__wrap--no-controls.fotorama__wrap--toggle-arrows .fotorama__fullscreen-icon {
|
493
|
+
opacity: 0; }
|
494
|
+
.fotorama__wrap--no-controls.fotorama__wrap--toggle-arrows .fotorama__arr:focus,
|
495
|
+
.fotorama__wrap--no-controls.fotorama__wrap--toggle-arrows .fotorama__fullscreen-icon:focus {
|
496
|
+
opacity: 1; }
|
473
497
|
|
474
|
-
.fotorama__wrap--no-controls .fotorama__arr,
|
475
|
-
.fotorama__wrap--no-controls .fotorama__fullscreen-icon,
|
476
498
|
.fotorama__wrap--video .fotorama__arr,
|
477
499
|
.fotorama__wrap--video .fotorama__fullscreen-icon {
|
478
|
-
|
479
|
-
opacity: 0; }
|
500
|
+
opacity: 0 !important; }
|
480
501
|
|
481
|
-
.fotorama__wrap--
|
482
|
-
|
502
|
+
.fotorama__wrap--css2.fotorama__wrap--no-controls.fotorama__wrap--toggle-arrows .fotorama__arr,
|
503
|
+
.fotorama__wrap--css2.fotorama__wrap--no-controls.fotorama__wrap--toggle-arrows .fotorama__fullscreen-icon {
|
504
|
+
display: none; }
|
505
|
+
.fotorama__wrap--css2.fotorama__wrap--no-controls.fotorama__wrap--toggle-arrows .fotorama__arr:focus,
|
506
|
+
.fotorama__wrap--css2.fotorama__wrap--no-controls.fotorama__wrap--toggle-arrows .fotorama__fullscreen-icon:focus {
|
507
|
+
display: block; }
|
508
|
+
.fotorama__wrap--css2.fotorama__wrap--video .fotorama__arr,
|
509
|
+
.fotorama__wrap--css2.fotorama__wrap--video .fotorama__fullscreen-icon {
|
510
|
+
display: none !important; }
|
511
|
+
|
512
|
+
.fotorama__wrap--css3.fotorama__wrap--no-controls.fotorama__wrap--slide.fotorama__wrap--toggle-arrows .fotorama__fullscreen-icon:not(:focus) {
|
483
513
|
-webkit-transform: translate3d(32px, -32px, 0);
|
484
514
|
transform: translate3d(32px, -32px, 0); }
|
485
|
-
.fotorama__wrap--css3.fotorama__wrap--
|
486
|
-
display: block;
|
515
|
+
.fotorama__wrap--css3.fotorama__wrap--no-controls.fotorama__wrap--slide.fotorama__wrap--toggle-arrows .fotorama__arr--prev:not(:focus) {
|
487
516
|
-webkit-transform: translate3d(-48px, 0, 0);
|
488
517
|
transform: translate3d(-48px, 0, 0); }
|
489
|
-
.fotorama__wrap--css3.fotorama__wrap--
|
490
|
-
display: block;
|
518
|
+
.fotorama__wrap--css3.fotorama__wrap--no-controls.fotorama__wrap--slide.fotorama__wrap--toggle-arrows .fotorama__arr--next:not(:focus) {
|
491
519
|
-webkit-transform: translate3d(48px, 0, 0);
|
492
520
|
transform: translate3d(48px, 0, 0); }
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
.fotorama__wrap--video .
|
497
|
-
|
498
|
-
|
499
|
-
.fotorama__wrap--css3 .
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
.fotorama__wrap--css3
|
505
|
-
|
506
|
-
|
507
|
-
z-index: -1; }
|
508
|
-
.fotorama__wrap--css3.fotorama__wrap--video .fotorama__video-close {
|
509
|
-
opacity: 1;
|
510
|
-
-webkit-transform: translate3d(0, 0, 0);
|
511
|
-
transform: translate3d(0, 0, 0); }
|
512
|
-
|
513
|
-
.fotorama__wrap--css3 .fotorama__arr,
|
514
|
-
.fotorama__wrap--css3 .fotorama__fullscreen-icon,
|
515
|
-
.fotorama__wrap--css3 .fotorama__video-play,
|
516
|
-
.fotorama__wrap--css3 .fotorama__video-close {
|
521
|
+
.fotorama__wrap--css3.fotorama__wrap--video .fotorama__fullscreen-icon {
|
522
|
+
-webkit-transform: translate3d(32px, -32px, 0) !important;
|
523
|
+
transform: translate3d(32px, -32px, 0) !important; }
|
524
|
+
.fotorama__wrap--css3.fotorama__wrap--video .fotorama__arr--prev {
|
525
|
+
-webkit-transform: translate3d(-48px, 0, 0) !important;
|
526
|
+
transform: translate3d(-48px, 0, 0) !important; }
|
527
|
+
.fotorama__wrap--css3.fotorama__wrap--video .fotorama__arr--next {
|
528
|
+
-webkit-transform: translate3d(48px, 0, 0) !important;
|
529
|
+
transform: translate3d(48px, 0, 0) !important; }
|
530
|
+
|
531
|
+
.fotorama__wrap--css3 .fotorama__arr:not(:focus),
|
532
|
+
.fotorama__wrap--css3 .fotorama__fullscreen-icon:not(:focus),
|
533
|
+
.fotorama__wrap--css3 .fotorama__video-play:not(:focus),
|
534
|
+
.fotorama__wrap--css3 .fotorama__video-close:not(:focus) {
|
517
535
|
-webkit-transition-property: -webkit-transform, opacity;
|
518
536
|
transition-property: transform, opacity;
|
519
537
|
-webkit-transition-duration: 0.3s;
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fotoramajs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.5.
|
4
|
+
version: 4.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Artem Polikarpov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sprockets
|
@@ -38,6 +38,7 @@ files:
|
|
38
38
|
- Rakefile
|
39
39
|
- fotoramajs.gemspec
|
40
40
|
- lib/fotoramajs.rb
|
41
|
+
- lib/fotoramajs/helpers.rb
|
41
42
|
- lib/fotoramajs/version.rb
|
42
43
|
- vendor/assets/images/fotorama.png
|
43
44
|
- vendor/assets/images/fotorama@2x.png
|