index.less 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. @import "../styles/mixins/index.less";
  2. @import "../styles/themes/index.less";
  3. .@{wux-prefix}-step {
  4. font-size: 0;
  5. position: relative;
  6. display: inline-block;
  7. box-sizing: border-box;
  8. padding: 0 5px;
  9. vertical-align: top;
  10. &--vertical {
  11. padding-bottom: 30px;
  12. .@{wux-prefix}-step__hd {
  13. float: left;
  14. }
  15. .@{wux-prefix}-step__bd {
  16. overflow: hidden;
  17. display: block;
  18. margin-left: 40px;
  19. margin-top: 0;
  20. text-align: left;
  21. clear: inherit;
  22. }
  23. .@{wux-prefix}-step__ft {
  24. position: absolute;
  25. left: 19px;
  26. top: 0;
  27. height: 100%;
  28. width: @steps-line-size;
  29. padding: 30px 0 4px;
  30. margin-left: 0;
  31. &::after {
  32. width: @steps-line-size;
  33. height: 100%;
  34. }
  35. }
  36. }
  37. &__ft {
  38. position: absolute;
  39. left: 50%;
  40. width: 100%;
  41. top: 12px;
  42. padding: 0 24px;
  43. margin-left: 3px;
  44. box-sizing: border-box;
  45. &::after {
  46. content: "";
  47. display: inline-block;
  48. background: @border-color-split;
  49. height: @steps-line-size;
  50. border-radius: @steps-line-size;
  51. width: 100%;
  52. transition: background .3s;
  53. position: relative;
  54. left: -2px;
  55. }
  56. }
  57. &__icon {
  58. box-sizing: border-box;
  59. font-size: @steps-icon-size / 2;
  60. width: @steps-icon-size;
  61. height: 100%;
  62. border-radius: 50%;
  63. background: @steps-default-color;
  64. position: relative;
  65. z-index: 2;
  66. margin: 0 auto;
  67. border: @steps-default-bg solid 1px;
  68. }
  69. &__thumb {
  70. width: 100%;
  71. height: 100%;
  72. display: inline-block;
  73. overflow: hidden;
  74. }
  75. &--process {
  76. .@{wux-prefix}-step__icon {
  77. border: @steps-process-bg solid 1px;
  78. color: @steps-default-color;
  79. background: @steps-process-bg;
  80. }
  81. .@{wux-prefix}-step__ft::after {
  82. // background: @steps-process-bg;
  83. }
  84. }
  85. &--wait {
  86. .@{wux-prefix}-step__icon {
  87. border: @steps-wait-bg solid 1px;
  88. color: @steps-wait-bg;
  89. }
  90. .@{wux-prefix}-step__ft::after {
  91. background: @steps-wait-bg;
  92. }
  93. }
  94. &--finish {
  95. .@{wux-prefix}-step__icon {
  96. border: @steps-finish-bg solid 1px;
  97. color: @steps-finish-bg;
  98. }
  99. .@{wux-prefix}-step__ft::after {
  100. background: @steps-finish-bg;
  101. }
  102. }
  103. &--error {
  104. .@{wux-prefix}-step__icon {
  105. border: @steps-error-bg solid 1px;
  106. color: @steps-error-bg;
  107. }
  108. .@{wux-prefix}-step__ft::after {
  109. background: @steps-error-bg;
  110. }
  111. }
  112. &__hd {
  113. width: auto;
  114. height: @steps-icon-size;
  115. line-height: @steps-icon-size;
  116. text-align: center;
  117. box-sizing: border-box;
  118. }
  119. &__bd {
  120. margin-top: 10px;
  121. text-align: center;
  122. clear: both;
  123. }
  124. &__title {
  125. font-size: @font-size-lg;
  126. font-weight: 700;
  127. color: @heading-color;
  128. }
  129. &__content {
  130. font-size: @font-size-sm;
  131. margin-top: 3px;
  132. color: @text-color;
  133. }
  134. }