swiper-nav.wxss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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. position: absolute;
  31. left: 50%;
  32. bottom: 20rpx;
  33. transform: translateX(-50%);
  34. display: flex;
  35. flex-direction: row;
  36. }
  37. .t-swiper-nav__dots-item,
  38. .t-swiper-nav__dots-bar-item {
  39. width: 12rpx;
  40. height: 12rpx;
  41. background: rgba(255, 255, 255, 0.55);
  42. border-radius: 50%;
  43. margin: 0 10rpx;
  44. transition: all 0.4s ease-in;
  45. }
  46. .t-swiper-nav__dots-item.t-is-active,
  47. .t-swiper-nav__dots-bar-item.t-is-active {
  48. background-color: #fff;
  49. }
  50. .t-swiper-nav__dots-bar-item.t-is-active {
  51. width: 40rpx;
  52. border-radius: 6rpx;
  53. background-color: #fff;
  54. }
  55. .t-swiper-nav--vertical .t-swiper-nav__dots,
  56. .t-swiper-nav--vertical .t-swiper-nav__dots-bar {
  57. left: auto;
  58. right: 20rpx;
  59. top: 50%;
  60. bottom: auto;
  61. transform: translateY(-50%);
  62. flex-direction: column;
  63. }
  64. .t-swiper-nav--vertical .t-swiper-nav__dots-item,
  65. .t-swiper-nav--vertical .t-swiper-nav__dots-bar-item {
  66. margin: 10rpx 0;
  67. }
  68. .t-swiper-nav--vertical .t-swiper-nav__dots-bar-item.t-is-active {
  69. width: 12rpx;
  70. height: 40rpx;
  71. }
  72. .t-swiper-nav__fraction {
  73. position: absolute;
  74. right: 20rpx;
  75. bottom: 20rpx;
  76. padding: 0 20rpx;
  77. height: 40rpx;
  78. line-height: 40rpx;
  79. border-radius: 20rpx;
  80. background: rgba(0, 0, 0, 0.4);
  81. color: #fff;
  82. font-size: 24rpx;
  83. }
  84. .t-swiper-nav__btn--prev,
  85. .t-swiper-nav__btn--next {
  86. position: absolute;
  87. top: 50%;
  88. transform: translateY(-50%);
  89. width: 40rpx;
  90. height: 40rpx;
  91. border-radius: 50%;
  92. background: rgba(0, 0, 0, 0.4);
  93. }
  94. .t-swiper-nav__btn--prev::after,
  95. .t-swiper-nav__btn--next::after {
  96. position: absolute;
  97. left: 50%;
  98. top: 50%;
  99. display: block;
  100. content: '';
  101. width: 12rpx;
  102. height: 12rpx;
  103. border-color: #fff;
  104. border-style: solid;
  105. }
  106. .t-swiper-nav__btn--prev {
  107. left: 30rpx;
  108. }
  109. .t-swiper-nav__btn--prev::after {
  110. margin-left: 4rpx;
  111. border-width: 2rpx 0 0 2rpx;
  112. transform: translate(-50%, -50%) rotateZ(-45deg);
  113. }
  114. .t-swiper-nav__btn--next {
  115. right: 30rpx;
  116. }
  117. .t-swiper-nav__btn--next::after {
  118. margin-left: -4rpx;
  119. border-width: 2rpx 2rpx 0 0;
  120. transform: translate(-50%, -50%) rotateZ(45deg);
  121. }