stepper.wxss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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-stepper {
  29. display: flex;
  30. align-items: center;
  31. color: var(--td-stepper-input-color, var(--td-font-gray-1, rgba(0, 0, 0, 0.9)));
  32. }
  33. .t-stepper__input {
  34. margin: 0 8rpx;
  35. text-align: center;
  36. vertical-align: top;
  37. height: inherit;
  38. min-height: inherit;
  39. }
  40. .t-stepper__minus,
  41. .t-stepper__plus {
  42. padding: 8rpx;
  43. box-sizing: border-box;
  44. }
  45. .t-stepper__input,
  46. .t-stepper__minus-icon,
  47. .t-stepper__plus-icon {
  48. color: inherit;
  49. }
  50. .t-stepper__input--normal,
  51. .t-stepper__input--filled,
  52. .t-stepper__input--outline {
  53. height: inherit;
  54. box-sizing: border-box;
  55. }
  56. .t-stepper--small {
  57. height: 40rpx;
  58. font-size: 20rpx;
  59. }
  60. .t-stepper--medium {
  61. height: 48rpx;
  62. font-size: 24rpx;
  63. }
  64. .t-stepper--large {
  65. height: 56rpx;
  66. font-size: 32rpx;
  67. }
  68. .t-stepper__input--small {
  69. width: 68rpx;
  70. }
  71. .t-stepper__input--medium {
  72. height: 48rpx;
  73. width: 76rpx;
  74. }
  75. .t-stepper__input--large {
  76. width: 90rpx;
  77. }
  78. .t-stepper__icon--small {
  79. width: 40rpx;
  80. height: 40rpx;
  81. font-size: 24rpx;
  82. }
  83. .t-stepper__icon--medium {
  84. width: 48rpx;
  85. height: 48rpx;
  86. font-size: 32rpx;
  87. }
  88. .t-stepper__icon--large {
  89. width: 56rpx;
  90. height: 56rpx;
  91. font-size: 40rpx;
  92. }
  93. .t-stepper__minus--outline,
  94. .t-stepper__plus--outline {
  95. border: 2rpx solid var(--td-stepper-border-color, var(--td-gray-color-4, #dcdcdc));
  96. }
  97. .t-stepper__input--outline {
  98. border: none;
  99. border-top: 2rpx solid var(--td-stepper-border-color, var(--td-gray-color-4, #dcdcdc));
  100. border-bottom: 2rpx solid var(--td-stepper-border-color, var(--td-gray-color-4, #dcdcdc));
  101. }
  102. .t-stepper__minus--outline,
  103. .t-stepper__minus--filled {
  104. border-radius: var(--td-stepper-border-radius, var(--td-radius-small, 6rpx)) 0 0 var(--td-stepper-border-radius, var(--td-radius-small, 6rpx));
  105. }
  106. .t-stepper__plus--outline,
  107. .t-stepper__plus--filled {
  108. border-radius: 0 var(--td-stepper-border-radius, var(--td-radius-small, 6rpx)) var(--td-stepper-border-radius, var(--td-radius-small, 6rpx)) 0;
  109. }
  110. .t-stepper__minus--filled,
  111. .t-stepper__plus--filled {
  112. background-color: var(--td-gray-color-1, #f3f3f3);
  113. }
  114. .t-stepper__input--filled {
  115. background-color: var(--td-gray-color-1, #f3f3f3);
  116. margin: 0 8rpx;
  117. }
  118. .t-stepper__input--filled .t-stepper__input {
  119. margin: 0;
  120. }
  121. .t-stepper--normal-disabled {
  122. color: var(--td-stepper-input-disabled-color, var(--td-font-gray-4, rgba(0, 0, 0, 0.26)));
  123. }
  124. .t-stepper--filled-disabled,
  125. .t-stepper--outline-disabled {
  126. color: var(--td-stepper-input-disabled-color, var(--td-font-gray-4, rgba(0, 0, 0, 0.26)));
  127. background-color: var(--td-stepper-input-disabled-bg, var(--td-gray-color-2, #eeeeee));
  128. }