stepper.scss 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. .nut-stepper {
  2. border: 1px solid #dedede;
  3. .nut-stepper-fake,
  4. .nut-stepper-fake- {
  5. background: #fff;
  6. div {
  7. background: #fff;
  8. }
  9. }
  10. span {
  11. &:first-child {
  12. border-right: 1px solid #dedede;
  13. }
  14. &:last-child {
  15. border-left: 1px solid #dedede;
  16. }
  17. }
  18. }
  19. .nut-stepper-simple {
  20. span {
  21. font-weight: bold;
  22. }
  23. input {
  24. background: #f6f6f6;
  25. }
  26. .nut-stepper-fake,
  27. .nut-stepper-fake- {
  28. background: #f6f6f6;
  29. div {
  30. background: #f6f6f6;
  31. }
  32. }
  33. }
  34. .nut-stepper,
  35. .nut-stepper-simple {
  36. width: 100px;
  37. height: 30px;
  38. line-height: 30px;
  39. display: flex;
  40. border-radius: 4px;
  41. position: relative;
  42. overflow: hidden;
  43. .nut-stepper-none-transition {
  44. transition: none;
  45. }
  46. .nut-stepper-transition {
  47. transition: all 0.4s;
  48. }
  49. .nut-stepper-fake,
  50. .nut-stepper-fake- {
  51. position: absolute;
  52. top: 0;
  53. left: 25%;
  54. right: 25%;
  55. bottom: 0;
  56. text-align: center;
  57. font-size: 13px;
  58. }
  59. span {
  60. color: #666;
  61. width: 25%;
  62. text-align: center;
  63. cursor: pointer;
  64. padding: 0;
  65. box-sizing: border-box;
  66. -webkit-user-select: none;
  67. user-select: none;
  68. display: flex;
  69. align-items: center;
  70. justify-content: center;
  71. svg {
  72. vertical-align: top;
  73. width: $stepperbar-width;
  74. fill: $stepperbar-color;
  75. }
  76. }
  77. input {
  78. border: none;
  79. width: 50%;
  80. text-align: center;
  81. border-radius: 0;
  82. padding: 0;
  83. appearance: none;
  84. box-sizing: border-box;
  85. outline: none;
  86. font-family: initial;
  87. color: $stepper-color;
  88. }
  89. .nut-stepper-grey {
  90. color: #ececee;
  91. svg {
  92. vertical-align: top;
  93. fill: #cecece !important;
  94. }
  95. }
  96. }