index.less 2.9 KB

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