swiper.less 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. @themeColor: #007aff;
  2. @font-face {
  3. font-family: 'swiper-icons';
  4. src: url('data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4e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CZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA');
  5. font-weight: 400;
  6. font-style: normal;
  7. }
  8. :root {
  9. --swiper-theme-color: @themeColor;
  10. }
  11. .swiper {
  12. margin-left: auto;
  13. margin-right: auto;
  14. position: relative;
  15. overflow: hidden;
  16. list-style: none;
  17. padding: 0;
  18. /* Fix of Webkit flickering */
  19. z-index: 1;
  20. }
  21. .swiper-vertical > .swiper-wrapper {
  22. flex-direction: column;
  23. }
  24. .swiper-wrapper {
  25. position: relative;
  26. width: 100%;
  27. height: 100%;
  28. z-index: 1;
  29. display: flex;
  30. transition-property: transform;
  31. box-sizing: content-box;
  32. }
  33. .swiper-android .swiper-slide,
  34. .swiper-wrapper {
  35. transform: translate3d(0px, 0, 0);
  36. }
  37. .swiper-pointer-events {
  38. touch-action: pan-y;
  39. &.swiper-vertical {
  40. touch-action: pan-x;
  41. }
  42. }
  43. .swiper-slide {
  44. flex-shrink: 0;
  45. width: 100%;
  46. height: 100%;
  47. position: relative;
  48. transition-property: transform;
  49. }
  50. .swiper-slide-invisible-blank {
  51. visibility: hidden;
  52. }
  53. /* Auto Height */
  54. .swiper-autoheight,
  55. .swiper-autoheight .swiper-slide {
  56. height: auto;
  57. }
  58. .swiper-autoheight .swiper-wrapper {
  59. align-items: flex-start;
  60. transition-property: transform, height;
  61. }
  62. /* 3D Effects */
  63. .swiper-3d {
  64. &,
  65. &.swiper-css-mode .swiper-wrapper {
  66. perspective: 1200px;
  67. }
  68. .swiper-wrapper,
  69. .swiper-slide,
  70. .swiper-slide-shadow,
  71. .swiper-slide-shadow-left,
  72. .swiper-slide-shadow-right,
  73. .swiper-slide-shadow-top,
  74. .swiper-slide-shadow-bottom,
  75. .swiper-cube-shadow {
  76. transform-style: preserve-3d;
  77. }
  78. .swiper-slide-shadow,
  79. .swiper-slide-shadow-left,
  80. .swiper-slide-shadow-right,
  81. .swiper-slide-shadow-top,
  82. .swiper-slide-shadow-bottom {
  83. position: absolute;
  84. left: 0;
  85. top: 0;
  86. width: 100%;
  87. height: 100%;
  88. pointer-events: none;
  89. z-index: 10;
  90. }
  91. .swiper-slide-shadow {
  92. background: rgba(0, 0, 0, 0.15);
  93. }
  94. .swiper-slide-shadow-left {
  95. background-image: linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  96. }
  97. .swiper-slide-shadow-right {
  98. background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  99. }
  100. .swiper-slide-shadow-top {
  101. background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  102. }
  103. .swiper-slide-shadow-bottom {
  104. background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  105. }
  106. }
  107. /* CSS Mode */
  108. .swiper-css-mode {
  109. > .swiper-wrapper {
  110. overflow: auto;
  111. scrollbar-width: none; /* For Firefox */
  112. -ms-overflow-style: none; /* For Internet Explorer and Edge */
  113. &::-webkit-scrollbar {
  114. display: none;
  115. }
  116. }
  117. > .swiper-wrapper > .swiper-slide {
  118. scroll-snap-align: start start;
  119. }
  120. }
  121. .swiper-horizontal.swiper-css-mode {
  122. > .swiper-wrapper {
  123. scroll-snap-type: x mandatory;
  124. }
  125. }
  126. .swiper-vertical.swiper-css-mode {
  127. > .swiper-wrapper {
  128. scroll-snap-type: y mandatory;
  129. }
  130. }
  131. .swiper-centered {
  132. > .swiper-wrapper::before {
  133. content: '';
  134. flex-shrink: 0;
  135. order: 9999;
  136. }
  137. &.swiper-horizontal {
  138. > .swiper-wrapper > .swiper-slide:first-child {
  139. margin-inline-start: var(--swiper-centered-offset-before);
  140. }
  141. > .swiper-wrapper::before {
  142. height: 100%;
  143. min-height: 1px;
  144. width: var(--swiper-centered-offset-after);
  145. }
  146. }
  147. &.swiper-vertical {
  148. > .swiper-wrapper > .swiper-slide:first-child {
  149. margin-block-start: var(--swiper-centered-offset-before);
  150. }
  151. > .swiper-wrapper::before {
  152. width: 100%;
  153. min-width: 1px;
  154. height: var(--swiper-centered-offset-after);
  155. }
  156. }
  157. > .swiper-wrapper > .swiper-slide {
  158. scroll-snap-align: center center;
  159. }
  160. }