_slick.scss 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. /* Slider */
  2. .slick-slider {
  3. position: relative;
  4. display: block;
  5. box-sizing: border-box;
  6. -webkit-touch-callout: none;
  7. -webkit-user-select: none;
  8. -khtml-user-select: none;
  9. -moz-user-select: none;
  10. -ms-user-select: none;
  11. user-select: none;
  12. -ms-touch-action: pan-y;
  13. touch-action: pan-y;
  14. -webkit-tap-highlight-color: transparent;
  15. }
  16. .slick-list {
  17. position: relative;
  18. overflow: hidden;
  19. display: block;
  20. margin: 0;
  21. padding: 0;
  22. &:focus {
  23. outline: none;
  24. }
  25. &.dragging {
  26. cursor: pointer;
  27. cursor: hand;
  28. }
  29. }
  30. .slick-slider .slick-track,
  31. .slick-slider .slick-list {
  32. -webkit-transform: translate3d(0, 0, 0);
  33. -moz-transform: translate3d(0, 0, 0);
  34. -ms-transform: translate3d(0, 0, 0);
  35. -o-transform: translate3d(0, 0, 0);
  36. transform: translate3d(0, 0, 0);
  37. }
  38. .slick-track {
  39. position: relative;
  40. left: 0;
  41. top: 0;
  42. display: block;
  43. margin-left: auto;
  44. margin-right: auto;
  45. &:before,
  46. &:after {
  47. content: "";
  48. display: table;
  49. }
  50. &:after {
  51. clear: both;
  52. }
  53. .slick-loading & {
  54. visibility: hidden;
  55. }
  56. }
  57. .slick-slide {
  58. float: left;
  59. height: 100%;
  60. min-height: 1px;
  61. [dir="rtl"] & {
  62. float: right;
  63. }
  64. img {
  65. display: block;
  66. }
  67. &.slick-loading img {
  68. display: none;
  69. }
  70. display: none;
  71. &.dragging img {
  72. pointer-events: none;
  73. }
  74. .slick-initialized & {
  75. display: block;
  76. }
  77. .slick-loading & {
  78. visibility: hidden;
  79. }
  80. .slick-vertical & {
  81. display: block;
  82. height: auto;
  83. border: 1px solid transparent;
  84. }
  85. }
  86. .slick-arrow.slick-hidden {
  87. display: none;
  88. }