swiper.less 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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+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ZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/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. .swiper-backface-hidden .swiper-slide {
  63. transform: translateZ(0);
  64. backface-visibility: hidden;
  65. }
  66. /* 3D Effects */
  67. .swiper-3d {
  68. &,
  69. &.swiper-css-mode .swiper-wrapper {
  70. perspective: 1200px;
  71. }
  72. .swiper-wrapper,
  73. .swiper-slide,
  74. .swiper-slide-shadow,
  75. .swiper-slide-shadow-left,
  76. .swiper-slide-shadow-right,
  77. .swiper-slide-shadow-top,
  78. .swiper-slide-shadow-bottom,
  79. .swiper-cube-shadow {
  80. transform-style: preserve-3d;
  81. }
  82. .swiper-slide-shadow,
  83. .swiper-slide-shadow-left,
  84. .swiper-slide-shadow-right,
  85. .swiper-slide-shadow-top,
  86. .swiper-slide-shadow-bottom {
  87. position: absolute;
  88. left: 0;
  89. top: 0;
  90. width: 100%;
  91. height: 100%;
  92. pointer-events: none;
  93. z-index: 10;
  94. }
  95. .swiper-slide-shadow {
  96. background: rgba(0, 0, 0, 0.15);
  97. }
  98. .swiper-slide-shadow-left {
  99. background-image: linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  100. }
  101. .swiper-slide-shadow-right {
  102. background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  103. }
  104. .swiper-slide-shadow-top {
  105. background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  106. }
  107. .swiper-slide-shadow-bottom {
  108. background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  109. }
  110. }
  111. /* CSS Mode */
  112. .swiper-css-mode {
  113. > .swiper-wrapper {
  114. overflow: auto;
  115. scrollbar-width: none; /* For Firefox */
  116. -ms-overflow-style: none; /* For Internet Explorer and Edge */
  117. &::-webkit-scrollbar {
  118. display: none;
  119. }
  120. }
  121. > .swiper-wrapper > .swiper-slide {
  122. scroll-snap-align: start start;
  123. }
  124. }
  125. .swiper-horizontal.swiper-css-mode {
  126. > .swiper-wrapper {
  127. scroll-snap-type: x mandatory;
  128. }
  129. }
  130. .swiper-vertical.swiper-css-mode {
  131. > .swiper-wrapper {
  132. scroll-snap-type: y mandatory;
  133. }
  134. }
  135. .swiper-centered {
  136. > .swiper-wrapper::before {
  137. content: '';
  138. flex-shrink: 0;
  139. order: 9999;
  140. }
  141. &.swiper-horizontal {
  142. > .swiper-wrapper > .swiper-slide:first-child {
  143. margin-inline-start: var(--swiper-centered-offset-before);
  144. }
  145. > .swiper-wrapper::before {
  146. height: 100%;
  147. min-height: 1px;
  148. width: var(--swiper-centered-offset-after);
  149. }
  150. }
  151. &.swiper-vertical {
  152. > .swiper-wrapper > .swiper-slide:first-child {
  153. margin-block-start: var(--swiper-centered-offset-before);
  154. }
  155. > .swiper-wrapper::before {
  156. width: 100%;
  157. min-width: 1px;
  158. height: var(--swiper-centered-offset-after);
  159. }
  160. }
  161. > .swiper-wrapper > .swiper-slide {
  162. scroll-snap-align: center center;
  163. }
  164. }