swiper-nav.wxss 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. .t-float-left {
  2. float: left;
  3. }
  4. .t-float-right {
  5. float: right;
  6. }
  7. @keyframes tdesign-fade-out {
  8. from {
  9. opacity: 1;
  10. }
  11. to {
  12. opacity: 0;
  13. }
  14. }
  15. .hotspot-expanded.relative {
  16. position: relative;
  17. }
  18. .hotspot-expanded::after {
  19. content: '';
  20. display: block;
  21. position: absolute;
  22. left: 0;
  23. top: 0;
  24. right: 0;
  25. bottom: 0;
  26. transform: scale(1.5);
  27. }
  28. page {
  29. --td-swiper-nav-dot-color: rgba(255, 255, 255, 0.55);
  30. --td-swiper-nav-dot-active-color: #fff;
  31. --td-swiper-nav-fraction-color: #fff;
  32. --td-swiper-nav-fraction-bg-color: rgba(0, 0, 0, 0.4);
  33. --td-swiper-nav-btn-color: #fff;
  34. --td-swiper-nav-btn-bg-color: rgba(0, 0, 0, 0.4);
  35. }
  36. .t-swiper-nav__dots,
  37. .t-swiper-nav__dots-bar {
  38. display: flex;
  39. flex-direction: row;
  40. }
  41. .t-swiper-nav__dots-item,
  42. .t-swiper-nav__dots-bar-item {
  43. width: 12rpx;
  44. height: 12rpx;
  45. background: var(--td-swiper-nav-dot-color, rgba(255, 255, 255, 0.55));
  46. border-radius: 50%;
  47. margin: 0 10rpx;
  48. transition: all 0.4s ease-in;
  49. }
  50. .t-swiper-nav__dots-item.t-is-active,
  51. .t-swiper-nav__dots-bar-item.t-is-active {
  52. background-color: var(--td-swiper-nav-dot-active-color, #fff);
  53. }
  54. .t-swiper-nav__dots-bar-item.t-is-active {
  55. width: 40rpx;
  56. border-radius: 6rpx;
  57. background-color: var(--td-swiper-nav-dot-active-color, #fff);
  58. }
  59. .t-swiper-nav--position-left .t-swiper-nav__dots,
  60. .t-swiper-nav--position-left .t-swiper-nav__dots-bar,
  61. .t-swiper-nav--position-left .t-swiper-nav__fraction {
  62. position: absolute;
  63. left: 24rpx;
  64. top: 50%;
  65. transform: translateY(-50%);
  66. }
  67. .t-swiper-nav--position-right .t-swiper-nav__dots,
  68. .t-swiper-nav--position-right .t-swiper-nav__dots-bar,
  69. .t-swiper-nav--position-right .t-swiper-nav__fraction {
  70. position: absolute;
  71. right: 24rpx;
  72. top: 50%;
  73. transform: translateY(-50%);
  74. }
  75. .t-swiper-nav--position-top-left .t-swiper-nav__dots,
  76. .t-swiper-nav--position-top-left .t-swiper-nav__dots-bar,
  77. .t-swiper-nav--position-top-left .t-swiper-nav__fraction {
  78. position: absolute;
  79. top: 24rpx;
  80. left: 24rpx;
  81. }
  82. .t-swiper-nav--position-top .t-swiper-nav__dots,
  83. .t-swiper-nav--position-top .t-swiper-nav__dots-bar,
  84. .t-swiper-nav--position-top .t-swiper-nav__fraction {
  85. position: absolute;
  86. left: 50%;
  87. top: 24rpx;
  88. transform: translateX(-50%);
  89. }
  90. .t-swiper-nav--position-top-right .t-swiper-nav__dots,
  91. .t-swiper-nav--position-top-right .t-swiper-nav__dots-bar,
  92. .t-swiper-nav--position-top-right .t-swiper-nav__fraction {
  93. position: absolute;
  94. top: 24rpx;
  95. right: 24rpx;
  96. }
  97. .t-swiper-nav--position-bottom-left .t-swiper-nav__dots,
  98. .t-swiper-nav--position-bottom-left .t-swiper-nav__dots-bar,
  99. .t-swiper-nav--position-bottom-left .t-swiper-nav__fraction {
  100. position: absolute;
  101. left: 24rpx;
  102. bottom: 24rpx;
  103. }
  104. .t-swiper-nav--position-bottom .t-swiper-nav__dots,
  105. .t-swiper-nav--position-bottom .t-swiper-nav__dots-bar,
  106. .t-swiper-nav--position-bottom .t-swiper-nav__fraction {
  107. position: absolute;
  108. left: 50%;
  109. bottom: 24rpx;
  110. transform: translateX(-50%);
  111. }
  112. .t-swiper-nav--position-bottom-right .t-swiper-nav__dots,
  113. .t-swiper-nav--position-bottom-right .t-swiper-nav__dots-bar,
  114. .t-swiper-nav--position-bottom-right .t-swiper-nav__fraction {
  115. position: absolute;
  116. right: 24rpx;
  117. bottom: 24rpx;
  118. }
  119. .t-swiper-nav--vertical .t-swiper-nav__dots,
  120. .t-swiper-nav--vertical .t-swiper-nav__dots-bar {
  121. flex-direction: column;
  122. }
  123. .t-swiper-nav--vertical .t-swiper-nav__dots-item,
  124. .t-swiper-nav--vertical .t-swiper-nav__dots-bar-item {
  125. margin: 10rpx 0;
  126. }
  127. .t-swiper-nav--vertical .t-swiper-nav__dots-bar-item.t-is-active {
  128. width: 12rpx;
  129. height: 40rpx;
  130. }
  131. .t-swiper-nav__fraction {
  132. width: 40rpx;
  133. padding: 0 20rpx;
  134. height: 40rpx;
  135. line-height: 40rpx;
  136. border-radius: 20rpx;
  137. background: var(--td-swiper-nav-fraction-bg-color, rgba(0, 0, 0, 0.4));
  138. color: var(--td-swiper-nav-fraction-color, #fff);
  139. font-size: 24rpx;
  140. }
  141. .t-swiper-nav__btn--prev,
  142. .t-swiper-nav__btn--next {
  143. position: absolute;
  144. top: 50%;
  145. transform: translateY(-50%);
  146. width: 40rpx;
  147. height: 40rpx;
  148. border-radius: 50%;
  149. background: var(--td-swiper-nav-btn-bg-color, rgba(0, 0, 0, 0.4));
  150. }
  151. .t-swiper-nav__btn--prev::after,
  152. .t-swiper-nav__btn--next::after {
  153. position: absolute;
  154. left: 50%;
  155. top: 50%;
  156. display: block;
  157. content: '';
  158. width: 12rpx;
  159. height: 12rpx;
  160. border-color: var(--td-swiper-nav-btn-color, #fff);
  161. border-style: solid;
  162. }
  163. .t-swiper-nav__btn--prev {
  164. left: 30rpx;
  165. }
  166. .t-swiper-nav__btn--prev::after {
  167. margin-left: 4rpx;
  168. border-width: 2rpx 0 0 2rpx;
  169. transform: translate(-50%, -50%) rotateZ(-45deg);
  170. }
  171. .t-swiper-nav__btn--next {
  172. right: 30rpx;
  173. }
  174. .t-swiper-nav__btn--next::after {
  175. margin-left: -4rpx;
  176. border-width: 2rpx 2rpx 0 0;
  177. transform: translate(-50%, -50%) rotateZ(45deg);
  178. }