slider.wxss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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-slider__container {
  29. font-size: 14px;
  30. }
  31. .t-slider__container .t-slider--bottom {
  32. padding-bottom: 40rpx;
  33. }
  34. .t-slider__container .t-slider__value,
  35. .t-slider__container .t-slider__range-extreme,
  36. .t-slider__container .t-slider__dot-value {
  37. color: rgba(0, 0, 0, 0.9);
  38. }
  39. .t-slider__container.t-is-disabled .t-slider__value,
  40. .t-slider__container.t-is-disabled .t-slider__range-extreme,
  41. .t-slider__container.t-is-disabled .t-slider__dot-value,
  42. .t-slider__container.t-is-disabled .t-slider__scale-desc {
  43. color: rgba(0, 0, 0, 0.4);
  44. }
  45. .t-slider__wrapper {
  46. display: flex;
  47. align-items: center;
  48. height: 96rpx;
  49. }
  50. .t-slider__wrapper .t-slider__main {
  51. position: relative;
  52. margin: 0 32rpx;
  53. flex: 10;
  54. padding: 16rpx 0;
  55. background-clip: content-box;
  56. height: 4rpx;
  57. border-radius: 2rpx;
  58. display: inline-block;
  59. }
  60. .t-slider__wrapper .t-slider__main .t-slider__line {
  61. position: absolute;
  62. top: 8px;
  63. height: 4rpx;
  64. border-radius: 2rpx;
  65. }
  66. .t-slider__wrapper .t-slider__main .t-slider__dot {
  67. border-radius: 50%;
  68. border: 4rpx solid #0052d9;
  69. position: absolute;
  70. background-color: #fff;
  71. width: 16px;
  72. height: 16px;
  73. top: -16rpx;
  74. z-index: 2;
  75. }
  76. .t-slider__wrapper .t-slider__value {
  77. display: inline-block;
  78. }
  79. .t-slider__wrapper .t-slider__value--min {
  80. margin-left: 32rpx;
  81. }
  82. .t-slider__wrapper .t-slider__value--max {
  83. margin-right: 32rpx;
  84. }
  85. .t-slider__wrapper .t-slider__value--right {
  86. flex-basis: 80rpx;
  87. }
  88. .t-slider__wrapper .t-slider__value--right .t-slider__value--text {
  89. margin-right: 32rpx;
  90. text-align: right;
  91. display: block;
  92. }
  93. .t-slider__range-container {
  94. display: flex;
  95. padding: 22.4px 0 0 0;
  96. }
  97. .t-slider__range-container .t-slider__range-extreme {
  98. display: inline-block;
  99. }
  100. .t-slider__range-container .t-slider__range-extreme--min {
  101. margin-left: 32rpx;
  102. text-align: left;
  103. }
  104. .t-slider__range-container .t-slider__range-extreme--max {
  105. margin-right: 32rpx;
  106. text-align: right;
  107. }
  108. .t-slider__range-container .t-slider__bar {
  109. margin: 0 32rpx;
  110. flex: 10;
  111. padding: 16rpx 0;
  112. background-clip: content-box;
  113. height: 4rpx;
  114. border-radius: 2rpx;
  115. position: relative;
  116. display: inline-block;
  117. }
  118. .t-slider__range-container .t-slider__bar .t-slider__dot {
  119. border-radius: 50%;
  120. border: 4rpx solid #0052d9;
  121. position: absolute;
  122. z-index: 2;
  123. background-color: #fff;
  124. width: 16px;
  125. height: 16px;
  126. top: 2rpx;
  127. }
  128. .t-slider__range-container .t-slider__bar .t-slider__dot--left {
  129. left: 0;
  130. }
  131. .t-slider__range-container .t-slider__bar .t-slider__dot--right {
  132. right: 0;
  133. }
  134. .t-slider__range-container .t-slider__bar .t-slider__dot-value {
  135. position: relative;
  136. left: 50%;
  137. transform: translateX(-50%);
  138. top: -52rpx;
  139. text-align: center;
  140. width: 48rpx;
  141. height: 44rpx;
  142. line-height: 44rpx;
  143. }
  144. .t-slider__range-container .t-slider__bar .t-slider__line {
  145. position: absolute;
  146. top: 16rpx;
  147. height: 5rpx;
  148. }
  149. .t-slider__scale-item {
  150. background-color: #0052d9;
  151. width: 4rpx;
  152. height: 14rpx;
  153. position: absolute;
  154. top: 6rpx;
  155. z-index: 1;
  156. }
  157. .t-slider__scale-item .t-slider__scale-desc {
  158. position: absolute;
  159. left: 50%;
  160. color: rgba(0, 0, 0, 0.9);
  161. transform: translateX(-50%);
  162. bottom: 20rpx;
  163. }