slick_rails 1.3.11 → 1.3.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/slick.js +146 -73
- data/app/assets/stylesheets/slick.css.scss +11 -14
- data/lib/slick_rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e291662e2aeecbf7be4ffcaf0b69c467b4be96f
|
4
|
+
data.tar.gz: 4b6d851d3adfdfe67d59cbaba248e66deb353b81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a5f54b68a67acdba004abae29d06f8fd82fd4ec77b55232e72ceb310605028c98325e49cb99d95a690352ff6c4a4cc2536f8ed538eaa150b8d249f3d52ffefc
|
7
|
+
data.tar.gz: 64d1db4d511fe1be77a53a07c5d390268491ba6e240dd5feb1125c85f2ea01e48081842a2dfbba1eed88eb79ae37b7cb7f7dce1dcefbe8339f88b892f8c6c495
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|___/_|_|\___|_|\_(_)/ |___/
|
7
7
|
|__/
|
8
8
|
|
9
|
-
Version: 1.3.
|
9
|
+
Version: 1.3.13
|
10
10
|
Author: Ken Wheeler
|
11
11
|
Website: http://kenwheeler.github.io
|
12
12
|
Docs: http://kenwheeler.github.io/slick
|
@@ -64,6 +64,7 @@
|
|
64
64
|
fade: false,
|
65
65
|
focusOnSelect: false,
|
66
66
|
infinite: true,
|
67
|
+
initialSlide: 0,
|
67
68
|
lazyLoad: 'ondemand',
|
68
69
|
onBeforeChange: null,
|
69
70
|
onAfterChange: null,
|
@@ -91,8 +92,9 @@
|
|
91
92
|
animating: false,
|
92
93
|
dragging: false,
|
93
94
|
autoPlayTimer: null,
|
94
|
-
|
95
|
+
currentDirection: 0,
|
95
96
|
currentLeft: null,
|
97
|
+
currentSlide: 0,
|
96
98
|
direction: 1,
|
97
99
|
$dots: null,
|
98
100
|
listWidth: null,
|
@@ -122,6 +124,7 @@
|
|
122
124
|
_.cssTransitions = false;
|
123
125
|
_.paused = false;
|
124
126
|
_.positionProp = null;
|
127
|
+
_.shouldClick = true;
|
125
128
|
_.$slider = $(element);
|
126
129
|
_.$slidesCache = null;
|
127
130
|
_.transformType = null;
|
@@ -131,6 +134,8 @@
|
|
131
134
|
|
132
135
|
_.options = $.extend({}, _.defaults, settings);
|
133
136
|
|
137
|
+
_.currentSlide = _.options.initialSlide;
|
138
|
+
|
134
139
|
_.originalSettings = _.options;
|
135
140
|
responsiveSettings = _.options.responsive || null;
|
136
141
|
|
@@ -339,7 +344,6 @@
|
|
339
344
|
Slick.prototype.autoPlayClear = function() {
|
340
345
|
|
341
346
|
var _ = this;
|
342
|
-
|
343
347
|
if (_.autoPlayTimer) {
|
344
348
|
clearInterval(_.autoPlayTimer);
|
345
349
|
}
|
@@ -458,9 +462,7 @@
|
|
458
462
|
|
459
463
|
if (_.options.centerMode === true) {
|
460
464
|
_.options.slidesToScroll = 1;
|
461
|
-
|
462
|
-
_.options.slidesToShow = 3;
|
463
|
-
}
|
465
|
+
_.options.slidesToShow = 3;
|
464
466
|
}
|
465
467
|
|
466
468
|
$('img[data-lazy]', _.$slider).not('[src]').addClass('slick-loading');
|
@@ -510,14 +512,14 @@
|
|
510
512
|
if (targetBreakpoint !== _.activeBreakpoint) {
|
511
513
|
_.activeBreakpoint =
|
512
514
|
targetBreakpoint;
|
513
|
-
_.options = $.extend({}, _.
|
515
|
+
_.options = $.extend({}, _.originalSettings,
|
514
516
|
_.breakpointSettings[
|
515
517
|
targetBreakpoint]);
|
516
518
|
_.refresh();
|
517
519
|
}
|
518
520
|
} else {
|
519
521
|
_.activeBreakpoint = targetBreakpoint;
|
520
|
-
_.options = $.extend({}, _.
|
522
|
+
_.options = $.extend({}, _.originalSettings,
|
521
523
|
_.breakpointSettings[
|
522
524
|
targetBreakpoint]);
|
523
525
|
_.refresh();
|
@@ -525,8 +527,7 @@
|
|
525
527
|
} else {
|
526
528
|
if (_.activeBreakpoint !== null) {
|
527
529
|
_.activeBreakpoint = null;
|
528
|
-
_.options =
|
529
|
-
_.originalSettings);
|
530
|
+
_.options = _.originalSettings;
|
530
531
|
_.refresh();
|
531
532
|
}
|
532
533
|
}
|
@@ -574,6 +575,18 @@
|
|
574
575
|
|
575
576
|
};
|
576
577
|
|
578
|
+
Slick.prototype.clickHandler = function(event) {
|
579
|
+
|
580
|
+
var _ = this;
|
581
|
+
|
582
|
+
if(_.shouldClick === false) {
|
583
|
+
event.stopImmediatePropagation();
|
584
|
+
event.stopPropagation();
|
585
|
+
event.preventDefault();
|
586
|
+
}
|
587
|
+
|
588
|
+
}
|
589
|
+
|
577
590
|
Slick.prototype.destroy = function() {
|
578
591
|
|
579
592
|
var _ = this;
|
@@ -586,15 +599,28 @@
|
|
586
599
|
if (_.$dots) {
|
587
600
|
_.$dots.remove();
|
588
601
|
}
|
589
|
-
if (_.$prevArrow) {
|
602
|
+
if (_.$prevArrow && (typeof _.options.prevArrow !== 'object')) {
|
590
603
|
_.$prevArrow.remove();
|
604
|
+
}
|
605
|
+
if (_.$nextArrow && (typeof _.options.nextArrow !== 'object')) {
|
591
606
|
_.$nextArrow.remove();
|
592
607
|
}
|
593
608
|
if (_.$slides.parent().hasClass('slick-track')) {
|
594
609
|
_.$slides.unwrap().unwrap();
|
595
610
|
}
|
611
|
+
|
596
612
|
_.$slides.removeClass(
|
597
|
-
'slick-slide slick-active slick-visible')
|
613
|
+
'slick-slide slick-active slick-center slick-visible')
|
614
|
+
.removeAttr('index')
|
615
|
+
.css({
|
616
|
+
position: '',
|
617
|
+
left: '',
|
618
|
+
top: '',
|
619
|
+
zIndex: '',
|
620
|
+
opacity: '',
|
621
|
+
width: ''
|
622
|
+
});
|
623
|
+
|
598
624
|
_.$slider.removeClass('slick-slider');
|
599
625
|
_.$slider.removeClass('slick-initialized');
|
600
626
|
|
@@ -693,21 +719,9 @@
|
|
693
719
|
|
694
720
|
Slick.prototype.getDotCount = function() {
|
695
721
|
|
696
|
-
var _ = this
|
697
|
-
breaker = 0,
|
698
|
-
dotCounter = 0,
|
699
|
-
dotCount = 0,
|
700
|
-
dotLimit;
|
701
|
-
|
702
|
-
dotLimit = _.options.infinite === true ? _.slideCount + _.options.slidesToShow - _.options.slidesToScroll : _.slideCount;
|
703
|
-
|
704
|
-
while (breaker < dotLimit) {
|
705
|
-
dotCount++;
|
706
|
-
dotCounter += _.options.slidesToScroll;
|
707
|
-
breaker = dotCounter + _.options.slidesToShow;
|
708
|
-
}
|
722
|
+
var _ = this;
|
709
723
|
|
710
|
-
return
|
724
|
+
return Math.ceil(_.slideCount / _.options.slidesToScroll) - 1;
|
711
725
|
|
712
726
|
};
|
713
727
|
|
@@ -735,11 +749,9 @@
|
|
735
749
|
}
|
736
750
|
}
|
737
751
|
} else {
|
738
|
-
if
|
739
|
-
|
740
|
-
|
741
|
-
verticalOffset = ((_.slideCount % _.options.slidesToShow) * verticalHeight);
|
742
|
-
}
|
752
|
+
if(slideIndex + _.options.slidesToShow > _.slideCount) {
|
753
|
+
_.slideOffset = ((slideIndex + _.options.slidesToShow) - _.slideCount) * _.slideWidth;
|
754
|
+
verticalOffset = ((slideIndex + _.options.slidesToShow) - _.slideCount) * verticalHeight;
|
743
755
|
}
|
744
756
|
}
|
745
757
|
|
@@ -751,6 +763,7 @@
|
|
751
763
|
if (_.options.centerMode === true && _.options.infinite === true) {
|
752
764
|
_.slideOffset += _.slideWidth * Math.floor(_.options.slidesToShow / 2) - _.slideWidth;
|
753
765
|
} else if (_.options.centerMode === true) {
|
766
|
+
_.slideOffset = 0;
|
754
767
|
_.slideOffset += _.slideWidth * Math.floor(_.options.slidesToShow / 2);
|
755
768
|
}
|
756
769
|
|
@@ -783,6 +796,26 @@
|
|
783
796
|
|
784
797
|
};
|
785
798
|
|
799
|
+
Slick.prototype.getSlideCount = function() {
|
800
|
+
|
801
|
+
var _ = this, slidesTraversed;
|
802
|
+
|
803
|
+
if(_.options.swipeToSlide === true) {
|
804
|
+
var swipedSlide = null;
|
805
|
+
_.$slideTrack.find('.slick-slide').each(function(index, slide){
|
806
|
+
if (slide.offsetLeft + ($(slide).outerWidth() / 2) > (_.swipeLeft * -1)) {
|
807
|
+
swipedSlide = slide;
|
808
|
+
return false;
|
809
|
+
}
|
810
|
+
});
|
811
|
+
slidesTraversed = Math.abs($(swipedSlide).attr('index') - _.currentSlide);
|
812
|
+
return slidesTraversed;
|
813
|
+
} else {
|
814
|
+
return _.options.slidesToScroll;
|
815
|
+
}
|
816
|
+
|
817
|
+
};
|
818
|
+
|
786
819
|
Slick.prototype.init = function() {
|
787
820
|
|
788
821
|
var _ = this;
|
@@ -831,8 +864,14 @@
|
|
831
864
|
|
832
865
|
if (_.options.dots === true && _.options.pauseOnDotsHover === true && _.options.autoplay === true) {
|
833
866
|
$('li', _.$dots)
|
834
|
-
.on('mouseenter.slick',
|
835
|
-
|
867
|
+
.on('mouseenter.slick', function(){
|
868
|
+
_.paused = true;
|
869
|
+
_.autoPlayClear();
|
870
|
+
})
|
871
|
+
.on('mouseleave.slick', function(){
|
872
|
+
_.paused = false;
|
873
|
+
_.autoPlay();
|
874
|
+
});
|
836
875
|
}
|
837
876
|
|
838
877
|
};
|
@@ -858,9 +897,17 @@
|
|
858
897
|
action: 'end'
|
859
898
|
}, _.swipeHandler);
|
860
899
|
|
900
|
+
_.$list.on('click.slick', _.clickHandler.bind(this));
|
901
|
+
|
861
902
|
if (_.options.pauseOnHover === true && _.options.autoplay === true) {
|
862
|
-
_.$list.on('mouseenter.slick',
|
863
|
-
|
903
|
+
_.$list.on('mouseenter.slick', function(){
|
904
|
+
_.paused = true;
|
905
|
+
_.autoPlayClear();
|
906
|
+
});
|
907
|
+
_.$list.on('mouseleave.slick', function(){
|
908
|
+
_.paused = false;
|
909
|
+
_.autoPlay();
|
910
|
+
});
|
864
911
|
}
|
865
912
|
|
866
913
|
if(_.options.accessibility === true) {
|
@@ -887,6 +934,8 @@
|
|
887
934
|
}
|
888
935
|
});
|
889
936
|
|
937
|
+
$('*[draggable!=true]', _.$slideTrack).on('dragstart', function(e){ e.preventDefault(); })
|
938
|
+
|
890
939
|
$(window).on('load.slick.slick-' + _.instanceUid, _.setPosition);
|
891
940
|
$(document).on('ready.slick.slick-' + _.instanceUid, _.setPosition);
|
892
941
|
|
@@ -1199,11 +1248,12 @@
|
|
1199
1248
|
_.$slideTrack.width(Math.ceil((_.slideWidth * _.$slideTrack.children('.slick-slide').length)));
|
1200
1249
|
|
1201
1250
|
} else if (_.options.variableWidth === true) {
|
1202
|
-
|
1251
|
+
var trackWidth = 0;
|
1252
|
+
_.slideWidth = Math.ceil(_.listWidth / _.options.slidesToShow);
|
1203
1253
|
_.$slideTrack.children('.slick-slide').each(function(){
|
1204
|
-
|
1254
|
+
trackWidth += Math.ceil($(this).outerWidth(true));
|
1205
1255
|
});
|
1206
|
-
_.$slideTrack.width(Math.ceil(
|
1256
|
+
_.$slideTrack.width(Math.ceil(trackWidth) + 1);
|
1207
1257
|
} else {
|
1208
1258
|
_.slideWidth = Math.ceil(_.listWidth);
|
1209
1259
|
_.$slideTrack.height(Math.ceil((_.$slides.first().outerHeight(true) * _.$slideTrack.children('.slick-slide').length)));
|
@@ -1221,13 +1271,23 @@
|
|
1221
1271
|
|
1222
1272
|
_.$slides.each(function(index, element) {
|
1223
1273
|
targetLeft = (_.slideWidth * index) * -1;
|
1224
|
-
|
1225
|
-
|
1226
|
-
|
1227
|
-
|
1228
|
-
|
1229
|
-
|
1230
|
-
|
1274
|
+
if (_.options.rtl === true) {
|
1275
|
+
$(element).css({
|
1276
|
+
position: 'relative',
|
1277
|
+
right: targetLeft,
|
1278
|
+
top: 0,
|
1279
|
+
zIndex: 800,
|
1280
|
+
opacity: 0
|
1281
|
+
});
|
1282
|
+
} else {
|
1283
|
+
$(element).css({
|
1284
|
+
position: 'relative',
|
1285
|
+
left: targetLeft,
|
1286
|
+
top: 0,
|
1287
|
+
zIndex: 800,
|
1288
|
+
opacity: 0
|
1289
|
+
});
|
1290
|
+
}
|
1231
1291
|
});
|
1232
1292
|
|
1233
1293
|
_.$slides.eq(_.currentSlide).css({
|
@@ -1379,7 +1439,7 @@
|
|
1379
1439
|
var _ = this,
|
1380
1440
|
i, slideIndex, infiniteCount;
|
1381
1441
|
|
1382
|
-
if (_.options.fade === true
|
1442
|
+
if (_.options.fade === true) {
|
1383
1443
|
_.options.centerMode = false;
|
1384
1444
|
}
|
1385
1445
|
|
@@ -1425,6 +1485,13 @@
|
|
1425
1485
|
if(!index) index = 0;
|
1426
1486
|
|
1427
1487
|
if(_.slideCount <= _.options.slidesToShow){
|
1488
|
+
_.$slider.find('.slick-slide').removeClass('slick-active');
|
1489
|
+
_.$slides.eq(index).addClass('slick-active');
|
1490
|
+
if(_.options.centerMode === true) {
|
1491
|
+
_.$slider.find('.slick-slide').removeClass('slick-center');
|
1492
|
+
_.$slides.eq(index).addClass('slick-center');
|
1493
|
+
}
|
1494
|
+
_.asNavFor(index);
|
1428
1495
|
return;
|
1429
1496
|
}
|
1430
1497
|
_.slideHandler(index);
|
@@ -1439,7 +1506,15 @@
|
|
1439
1506
|
sync = sync || false;
|
1440
1507
|
|
1441
1508
|
if (_.animating === true && _.options.waitForAnimate === true) {
|
1442
|
-
return
|
1509
|
+
return;
|
1510
|
+
}
|
1511
|
+
|
1512
|
+
if (_.options.fade === true && _.currentSlide === index) {
|
1513
|
+
return;
|
1514
|
+
}
|
1515
|
+
|
1516
|
+
if (_.slideCount <= _.options.slidesToShow) {
|
1517
|
+
return;
|
1443
1518
|
}
|
1444
1519
|
|
1445
1520
|
if (sync === false) {
|
@@ -1450,18 +1525,18 @@
|
|
1450
1525
|
targetLeft = _.getLeft(targetSlide);
|
1451
1526
|
slideLeft = _.getLeft(_.currentSlide);
|
1452
1527
|
|
1453
|
-
unevenOffset = _.
|
1528
|
+
unevenOffset = _.options.slidesToScroll === 1 ? 0 : _.options.slidesToShow - (Math.round(_.slideCount / _.options.slidesToScroll));
|
1454
1529
|
|
1455
1530
|
_.currentLeft = _.swipeLeft === null ? slideLeft : _.swipeLeft;
|
1456
1531
|
|
1457
|
-
if (_.options.infinite === false && _.options.centerMode === false && (index < 0 || index >
|
1532
|
+
if (_.options.infinite === false && _.options.centerMode === false && (index < 0 || index > _.slideCount - _.options.slidesToShow + unevenOffset)) {
|
1458
1533
|
if(_.options.fade === false) {
|
1459
1534
|
targetSlide = _.currentSlide;
|
1460
1535
|
_.animateSlide(slideLeft, function() {
|
1461
1536
|
_.postSlide(targetSlide);
|
1462
1537
|
});
|
1463
1538
|
}
|
1464
|
-
return
|
1539
|
+
return;
|
1465
1540
|
} else if (_.options.infinite === false && _.options.centerMode === true && (index < 0 || index > (_.slideCount - _.options.slidesToScroll))) {
|
1466
1541
|
if(_.options.fade === false) {
|
1467
1542
|
targetSlide = _.currentSlide;
|
@@ -1469,7 +1544,7 @@
|
|
1469
1544
|
_.postSlide(targetSlide);
|
1470
1545
|
});
|
1471
1546
|
}
|
1472
|
-
return
|
1547
|
+
return;
|
1473
1548
|
}
|
1474
1549
|
|
1475
1550
|
if (_.options.autoplay === true) {
|
@@ -1510,7 +1585,7 @@
|
|
1510
1585
|
_.fadeSlide(oldSlide,animSlide, function() {
|
1511
1586
|
_.postSlide(animSlide);
|
1512
1587
|
});
|
1513
|
-
return
|
1588
|
+
return;
|
1514
1589
|
}
|
1515
1590
|
|
1516
1591
|
_.animateSlide(targetLeft, function() {
|
@@ -1569,37 +1644,28 @@
|
|
1569
1644
|
|
1570
1645
|
Slick.prototype.swipeEnd = function(event) {
|
1571
1646
|
|
1572
|
-
var _ = this, slideCount
|
1647
|
+
var _ = this, slideCount;
|
1573
1648
|
|
1574
1649
|
_.dragging = false;
|
1575
1650
|
|
1651
|
+
_.shouldClick = (_.touchObject.swipeLength > 10) ? false : true;
|
1652
|
+
|
1576
1653
|
if (_.touchObject.curX === undefined) {
|
1577
1654
|
return false;
|
1578
1655
|
}
|
1579
1656
|
|
1580
1657
|
if (_.touchObject.swipeLength >= _.touchObject.minSwipe) {
|
1581
|
-
$(event.target).on('click.slick', function(event) {
|
1582
|
-
event.stopImmediatePropagation();
|
1583
|
-
event.stopPropagation();
|
1584
|
-
event.preventDefault();
|
1585
|
-
$(event.target).off('click.slick');
|
1586
|
-
});
|
1587
|
-
|
1588
|
-
if(_.options.swipeToSlide === true) {
|
1589
|
-
slidesTraversed = Math.round(_.touchObject.swipeLength / _.slideWidth);
|
1590
|
-
slideCount = slidesTraversed
|
1591
|
-
} else {
|
1592
|
-
slideCount = _.options.slidesToScroll;
|
1593
|
-
}
|
1594
1658
|
|
1595
1659
|
switch (_.swipeDirection()) {
|
1596
1660
|
case 'left':
|
1597
|
-
_.slideHandler(_.currentSlide +
|
1661
|
+
_.slideHandler(_.currentSlide + _.getSlideCount());
|
1662
|
+
_.currentDirection = 0;
|
1598
1663
|
_.touchObject = {};
|
1599
1664
|
break;
|
1600
1665
|
|
1601
1666
|
case 'right':
|
1602
|
-
_.slideHandler(_.currentSlide -
|
1667
|
+
_.slideHandler(_.currentSlide - _.getSlideCount());
|
1668
|
+
_.currentDirection = 1;
|
1603
1669
|
_.touchObject = {};
|
1604
1670
|
break;
|
1605
1671
|
}
|
@@ -1653,12 +1719,12 @@
|
|
1653
1719
|
|
1654
1720
|
touches = event.originalEvent !== undefined ? event.originalEvent.touches : null;
|
1655
1721
|
|
1656
|
-
curLeft = _.getLeft(_.currentSlide);
|
1657
|
-
|
1658
1722
|
if (!_.dragging || touches && touches.length !== 1) {
|
1659
1723
|
return false;
|
1660
1724
|
}
|
1661
1725
|
|
1726
|
+
curLeft = _.getLeft(_.currentSlide);
|
1727
|
+
|
1662
1728
|
_.touchObject.curX = touches !== undefined ? touches[0].pageX : event.clientX;
|
1663
1729
|
_.touchObject.curY = touches !== undefined ? touches[0].pageY : event.clientY;
|
1664
1730
|
|
@@ -1744,8 +1810,10 @@
|
|
1744
1810
|
if (_.$dots) {
|
1745
1811
|
_.$dots.remove();
|
1746
1812
|
}
|
1747
|
-
if (_.$prevArrow) {
|
1813
|
+
if (_.$prevArrow && (typeof _.options.prevArrow !== 'object')) {
|
1748
1814
|
_.$prevArrow.remove();
|
1815
|
+
}
|
1816
|
+
if (_.$nextArrow && (typeof _.options.nextArrow !== 'object')) {
|
1749
1817
|
_.$nextArrow.remove();
|
1750
1818
|
}
|
1751
1819
|
_.$slides.removeClass(
|
@@ -1755,7 +1823,9 @@
|
|
1755
1823
|
|
1756
1824
|
Slick.prototype.updateArrows = function() {
|
1757
1825
|
|
1758
|
-
var _ = this;
|
1826
|
+
var _ = this, centerOffset;
|
1827
|
+
|
1828
|
+
centerOffset = Math.floor(_.options.slidesToShow / 2)
|
1759
1829
|
|
1760
1830
|
if (_.options.arrows === true && _.options.infinite !==
|
1761
1831
|
true && _.slideCount > _.options.slidesToShow) {
|
@@ -1764,7 +1834,10 @@
|
|
1764
1834
|
if (_.currentSlide === 0) {
|
1765
1835
|
_.$prevArrow.addClass('slick-disabled');
|
1766
1836
|
_.$nextArrow.removeClass('slick-disabled');
|
1767
|
-
} else if (_.currentSlide >= _.slideCount - _.options.slidesToShow) {
|
1837
|
+
} else if (_.currentSlide >= _.slideCount - _.options.slidesToShow && _.options.centerMode === false) {
|
1838
|
+
_.$nextArrow.addClass('slick-disabled');
|
1839
|
+
_.$prevArrow.removeClass('slick-disabled');
|
1840
|
+
} else if (_.currentSlide > _.slideCount - _.options.slidesToShow + centerOffset && _.options.centerMode === true) {
|
1768
1841
|
_.$nextArrow.addClass('slick-disabled');
|
1769
1842
|
_.$prevArrow.removeClass('slick-disabled');
|
1770
1843
|
}
|
@@ -12,9 +12,9 @@ $slick-prev-character: '\2190' !default;
|
|
12
12
|
$slick-next-character: '\2192' !default;
|
13
13
|
$slick-dot-character: '\2022' !default;
|
14
14
|
$slick-dot-size: 6px !default;
|
15
|
-
$opacity-default: .75;
|
16
|
-
$opacity-on-hover: 1;
|
17
|
-
$opacity-not-active: .25;
|
15
|
+
$slick-opacity-default: .75 !default;
|
16
|
+
$slick-opacity-on-hover: 1 !default;
|
17
|
+
$slick-opacity-not-active: .25 !default;
|
18
18
|
|
19
19
|
|
20
20
|
@function slick-image-url($url) {
|
@@ -72,22 +72,19 @@ $opacity-not-active: .25;
|
|
72
72
|
cursor: hand;
|
73
73
|
}
|
74
74
|
}
|
75
|
-
.slick-slider .slick-
|
76
|
-
.slick-track,
|
77
|
-
.slick-slide,
|
78
|
-
.slick-slide img {
|
75
|
+
.slick-slider .slick-track {
|
79
76
|
-webkit-transform: translate3d(0, 0, 0);
|
80
77
|
-moz-transform: translate3d(0, 0, 0);
|
81
78
|
-ms-transform: translate3d(0, 0, 0);
|
82
79
|
-o-transform: translate3d(0, 0, 0);
|
83
80
|
transform: translate3d(0, 0, 0);
|
84
81
|
}
|
82
|
+
|
85
83
|
.slick-track {
|
86
84
|
position: relative;
|
87
85
|
left: 0;
|
88
86
|
top: 0;
|
89
87
|
display: block;
|
90
|
-
zoom: 1;
|
91
88
|
|
92
89
|
&:before,
|
93
90
|
&:after {
|
@@ -175,11 +172,11 @@ $opacity-not-active: .25;
|
|
175
172
|
background: transparent;
|
176
173
|
color: transparent;
|
177
174
|
&:before {
|
178
|
-
opacity: $opacity-on-hover;
|
175
|
+
opacity: $slick-opacity-on-hover;
|
179
176
|
}
|
180
177
|
}
|
181
178
|
&.slick-disabled:before {
|
182
|
-
opacity: $opacity-not-active;
|
179
|
+
opacity: $slick-opacity-not-active;
|
183
180
|
}
|
184
181
|
}
|
185
182
|
.slick-prev:before, .slick-next:before {
|
@@ -187,7 +184,7 @@ $opacity-not-active: .25;
|
|
187
184
|
font-size: 20px;
|
188
185
|
line-height: 1;
|
189
186
|
color: $slick-arrow-color;
|
190
|
-
opacity: $opacity-default;
|
187
|
+
opacity: $slick-opacity-default;
|
191
188
|
-webkit-font-smoothing: antialiased;
|
192
189
|
-moz-osx-font-smoothing: grayscale;
|
193
190
|
}
|
@@ -256,7 +253,7 @@ $opacity-not-active: .25;
|
|
256
253
|
&:hover, &:focus {
|
257
254
|
outline: none;
|
258
255
|
&:before {
|
259
|
-
opacity: $opacity-on-hover;
|
256
|
+
opacity: $slick-opacity-on-hover;
|
260
257
|
}
|
261
258
|
}
|
262
259
|
|
@@ -272,7 +269,7 @@ $opacity-not-active: .25;
|
|
272
269
|
line-height: 20px;
|
273
270
|
text-align: center;
|
274
271
|
color: $slick-dot-color;
|
275
|
-
opacity: $opacity-not-active;
|
272
|
+
opacity: $slick-opacity-not-active;
|
276
273
|
-webkit-font-smoothing: antialiased;
|
277
274
|
-moz-osx-font-smoothing: grayscale;
|
278
275
|
}
|
@@ -281,7 +278,7 @@ $opacity-not-active: .25;
|
|
281
278
|
|
282
279
|
&.slick-active button:before {
|
283
280
|
color: $slick-dot-color-active;
|
284
|
-
opacity: $opacity-default;
|
281
|
+
opacity: $slick-opacity-default;
|
285
282
|
}
|
286
283
|
}
|
287
284
|
}
|
data/lib/slick_rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slick_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Guy Israeli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|