index.wxss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. .ant-slider {
  2. user-select: none;
  3. width: 100%;
  4. }
  5. .ant-slider-track {
  6. position: relative;
  7. width: 100%;
  8. height: 28px;
  9. background-color: #ffffff;
  10. }
  11. .ant-slider-track-number {
  12. height: 48.5px;
  13. }
  14. .ant-slider-track-touch-area {
  15. position: absolute;
  16. left: 14px;
  17. top: 0px;
  18. right: 12.5px;
  19. height: 100%;
  20. }
  21. .ant-slider-track-fill {
  22. position: absolute;
  23. left: 0px;
  24. top: 12.5px;
  25. right: 0px;
  26. height: 3px;
  27. }
  28. .ant-slider-track-fill-background {
  29. position: absolute;
  30. background-color: #f5f5f5;
  31. width: 100%;
  32. height: 100%;
  33. border-radius: 1.5px;
  34. }
  35. .ant-slider-track-fill-front {
  36. position: absolute;
  37. height: 100%;
  38. border-radius: 1.5px;
  39. background-color: #1677ff;
  40. }
  41. .ant-slider-handler {
  42. position: absolute;
  43. touch-action: none;
  44. left: 0;
  45. transform: translate(-50%, -50%);
  46. top: 1.5px;
  47. }
  48. .ant-slider-handler-block {
  49. width: 28px;
  50. height: 28px;
  51. background: #ffffff;
  52. box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.12);
  53. border-radius: 28px;
  54. text-align: center;
  55. line-height: 28px;
  56. color: #1677ff;
  57. }
  58. .ant-slider-handler-icon-default {
  59. position: absolute;
  60. top: 0;
  61. left: 0;
  62. right: 0;
  63. bottom: 0;
  64. }
  65. .ant-slider-handler-icon-default-line1 {
  66. position: absolute;
  67. width: 2px;
  68. height: 8px;
  69. background-color: #1677ff;
  70. border-radius: 1px;
  71. top: 10px;
  72. left: 8px;
  73. }
  74. .ant-slider-handler-icon-default-line2 {
  75. position: absolute;
  76. width: 2px;
  77. height: 12px;
  78. background-color: #1677ff;
  79. border-radius: 1px;
  80. top: 8px;
  81. right: 13px;
  82. }
  83. .ant-slider-handler-icon-default-line3 {
  84. position: absolute;
  85. width: 2px;
  86. height: 8px;
  87. background-color: #1677ff;
  88. border-radius: 1px;
  89. top: 10px;
  90. right: 8px;
  91. }
  92. .ant-slider-handler-icon-from-props {
  93. position: absolute;
  94. top: 0;
  95. left: 0;
  96. right: 0;
  97. bottom: 0;
  98. text-align: center;
  99. line-height: 100%;
  100. }
  101. .ant-slider-handler-icon-from-props-icon {
  102. position: absolute;
  103. left: 50%;
  104. top: 50%;
  105. transform: translate(-50%, -50%);
  106. }
  107. .ant-slider-tick {
  108. position: absolute;
  109. width: 8px;
  110. height: 8px;
  111. border-radius: 8px;
  112. top: 1.5px;
  113. transform: translate(-50%, -50%);
  114. }
  115. .ant-slider-tick-front {
  116. background-color: #1677ff;
  117. }
  118. .ant-slider-tick-back {
  119. background-color: #f5f5f5;
  120. }
  121. .ant-slider-tick-number {
  122. position: absolute;
  123. color: #333333;
  124. font-size: 12px;
  125. transform: translateX(-50%);
  126. top: 22px;
  127. left: 4px;
  128. text-align: center;
  129. line-height: 16.5px;
  130. height: 16.5px;
  131. }