swiper.scss 5.8 KB

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