swiper-nav.wxss 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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. .t-swiper-nav__dots,
  29. .t-swiper-nav__dots-bar {
  30. display: flex;
  31. flex-direction: row;
  32. }
  33. .t-swiper-nav__dots-item,
  34. .t-swiper-nav__dots-bar-item {
  35. width: var(--td-swiper-nav-dot-size, 12rpx);
  36. height: var(--td-swiper-nav-dot-size, 12rpx);
  37. background: var(--td-swiper-nav-dot-color, var(--td-font-white-2, rgba(255, 255, 255, 0.55)));
  38. border-radius: 50%;
  39. margin: 0 10rpx;
  40. transition: all 0.4s ease-in;
  41. }
  42. .t-swiper-nav__dots-item--vertical,
  43. .t-swiper-nav__dots-bar-item--vertical {
  44. margin: 10rpx 0;
  45. }
  46. .t-swiper-nav__dots-item--active,
  47. .t-swiper-nav__dots-bar-item--active {
  48. background-color: var(--td-swiper-nav-dot-active-color, var(--td-font-white-1, #ffffff));
  49. }
  50. .t-swiper-nav__dots-bar-item--vertical.t-swiper-nav__dots-bar-item--active {
  51. width: var(--td-swiper-nav-dot-size, 12rpx);
  52. height: var(--td-swiper-nav-dots-bar-active-width, 40rpx);
  53. }
  54. .t-swiper-nav__dots-bar-item--active {
  55. width: var(--td-swiper-nav-dots-bar-active-width, 40rpx);
  56. border-radius: calc(var(--td-swiper-nav-dot-size, 12rpx) / 2);
  57. background-color: var(--td-swiper-nav-dot-active-color, var(--td-font-white-1, #ffffff));
  58. }
  59. .t-swiper-nav--left {
  60. position: absolute;
  61. left: 24rpx;
  62. top: 50%;
  63. transform: translateY(-50%);
  64. }
  65. .t-swiper-nav--right {
  66. position: absolute;
  67. right: 24rpx;
  68. top: 50%;
  69. transform: translateY(-50%);
  70. }
  71. .t-swiper-nav--top-left {
  72. position: absolute;
  73. top: 24rpx;
  74. left: 24rpx;
  75. }
  76. .t-swiper-nav--top {
  77. position: absolute;
  78. left: 50%;
  79. top: 24rpx;
  80. transform: translateX(-50%);
  81. }
  82. .t-swiper-nav--top-right {
  83. position: absolute;
  84. top: 24rpx;
  85. right: 24rpx;
  86. }
  87. .t-swiper-nav--bottom-left {
  88. position: absolute;
  89. left: 24rpx;
  90. bottom: 24rpx;
  91. }
  92. .t-swiper-nav--bottom {
  93. position: absolute;
  94. left: 50%;
  95. bottom: 24rpx;
  96. transform: translateX(-50%);
  97. }
  98. .t-swiper-nav--bottom-right {
  99. position: absolute;
  100. right: 24rpx;
  101. bottom: 24rpx;
  102. }
  103. .t-swiper-nav--vertical {
  104. flex-direction: column;
  105. }
  106. .t-swiper-nav__fraction {
  107. padding: 0 16rpx;
  108. height: var(--td-swiper-nav-fraction-height, 48rpx);
  109. line-height: var(--td-swiper-nav-fraction-height, 48rpx);
  110. border-radius: calc(var(--td-swiper-nav-fraction-height, 48rpx) / 2);
  111. background: var(--td-swiper-nav-fraction-bg-color, var(--td-font-gray-3, rgba(0, 0, 0, 0.4)));
  112. color: var(--td-swiper-nav-fraction-color, var(--td-font-white-1, #ffffff));
  113. font-size: var(--td-swiper-nav-fraction-font-size, 24rpx);
  114. }
  115. .t-swiper-nav__btn--prev,
  116. .t-swiper-nav__btn--next {
  117. position: absolute;
  118. top: 50%;
  119. transform: translateY(-50%);
  120. width: var(--td-swiper-nav-btn-size, 48rpx);
  121. height: var(--td-swiper-nav-btn-size, 48rpx);
  122. border-radius: 50%;
  123. background: var(--td-swiper-nav-btn-bg-color, var(--td-font-gray-3, rgba(0, 0, 0, 0.4)));
  124. }
  125. .t-swiper-nav__btn--prev::after,
  126. .t-swiper-nav__btn--next::after {
  127. position: absolute;
  128. left: 50%;
  129. top: 50%;
  130. display: block;
  131. content: '';
  132. width: 12rpx;
  133. height: 12rpx;
  134. border-color: var(--td-swiper-nav-btn-color, var(--td-font-white-1, #ffffff));
  135. border-style: solid;
  136. }
  137. .t-swiper-nav__btn--prev {
  138. left: 30rpx;
  139. }
  140. .t-swiper-nav__btn--prev::after {
  141. margin-left: 4rpx;
  142. border-width: 2rpx 0 0 2rpx;
  143. transform: translate(-50%, -50%) rotateZ(-45deg);
  144. }
  145. .t-swiper-nav__btn--next {
  146. right: 30rpx;
  147. }
  148. .t-swiper-nav__btn--next::after {
  149. margin-left: -4rpx;
  150. border-width: 2rpx 2rpx 0 0;
  151. transform: translate(-50%, -50%) rotateZ(45deg);
  152. }