index.less 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. @import (reference) './variable.less';
  2. @stepperPrefix: ant-stepper;
  3. .@{stepperPrefix} {
  4. position: relative;
  5. display: inline-flex;
  6. flex-wrap: nowrap;
  7. height: 56 * @rpx;
  8. overflow: hidden;
  9. box-sizing: border-box;
  10. & &-button {
  11. width: 56 * @rpx;
  12. height: 56 * @rpx;
  13. line-height: 56 * @rpx;
  14. padding: 0;
  15. color: @COLOR_BRAND1;
  16. background-color: @COLOR_BACKGROUND;
  17. }
  18. & &-button-hover {
  19. background-color: fade(@COLOR_BLACK_CHANGE, 8%);
  20. }
  21. & &-button-up {
  22. border-top-left-radius: 0;
  23. border-top-right-radius: 4 * @rpx;
  24. border-bottom-left-radius: 0;
  25. border-bottom-right-radius: 4 * @rpx;
  26. }
  27. & &-button-down {
  28. border-top-right-radius: 0;
  29. border-top-left-radius: 4 * @rpx;
  30. border-bottom-right-radius: 0;
  31. border-bottom-left-radius: 4 * @rpx;
  32. }
  33. & &-button-disabled {
  34. color: @COLOR_TEXT_ASSIST;
  35. }
  36. &-input {
  37. width: 88 * @rpx;
  38. height: 56 * @rpx;
  39. margin-left: 4 * @rpx;
  40. margin-right: 4 * @rpx;
  41. text-align: center;
  42. line-height: normal;
  43. font-size: 30 * @rpx;
  44. color: @COLOR_TEXT_PRIMARY;
  45. box-sizing: border-box;
  46. background-color: @COLOR_BACKGROUND;
  47. // 在微信会导致 input 显示不居中
  48. padding: 7 * @rpx 14 * @rpx;
  49. caret-color: @COLOR_BRAND1;
  50. &-disabled {
  51. opacity: 0.4;
  52. }
  53. }
  54. &-input-readonly {
  55. line-height: 56 * @rpx;
  56. padding: 0;
  57. }
  58. }