fillSteps.scss 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. $module: #{$prefix}-steps;
  2. .#{$module} {
  3. .#{$prefix}-col {
  4. flex: 1;
  5. }
  6. &-vertical {
  7. .#{$prefix}-row-flex {
  8. flex-direction: column;
  9. }
  10. }
  11. // .#{$module}-horizontal {
  12. // .#{$module}-item-title {
  13. // &-text {
  14. // position: relative;
  15. // &::after {
  16. // content: '';
  17. // display: block;
  18. // width: 9999px;
  19. // height: 1px;
  20. // position: absolute;
  21. // top: 12px;
  22. // left: 120%;
  23. // background-color: var(--semi-color-border);
  24. // }
  25. // }
  26. // }
  27. // }
  28. .#{$module}-item {
  29. @include box-sizing;
  30. display: flex;
  31. height: $height-steps_item;
  32. position: relative;
  33. overflow: hidden;
  34. margin-right: $spacing-steps_item-marginRight;
  35. border: $width-steps_item-border solid $color-steps-border-default;
  36. border-radius: $radius-steps_item;
  37. padding: $spacing-steps_item-paddingY $spacing-steps_item-paddingX;
  38. transition: color $transition_duration-steps_item_title-text $transition_function-steps_item_title-text $transition_delay-steps_item_title-text; // item 字体颜色动效
  39. transform:scale($transform_scale-step-item);
  40. .#{$module}-item-title {
  41. position: relative;
  42. // display: inline-block;
  43. @include font-size-header-5;
  44. font-weight: $font-weight-bold;
  45. width: $width-steps_item_title;
  46. @include text-overflow-hidden;
  47. color: $color-steps_main-text-default;
  48. }
  49. .#{$module}-item-description {
  50. @include font-size-regular;
  51. color: $color-steps_minor-text-default;
  52. width: $width-steps_item_description;
  53. @include text-overflow-hidden;
  54. }
  55. &-process {
  56. background-color: $color-steps_process-bg-default;
  57. .#{$module}-item-left:not(.#{$module}-item-icon) {
  58. background: $color-steps_primary-bg-default;
  59. }
  60. .#{$module}-item-title,
  61. .#{$module}-item-icon {
  62. color: $color-steps_primary-icon-default;
  63. }
  64. }
  65. &-wait {
  66. .#{$module}-item-left:not(.#{$module}-item-icon) {
  67. background: $color-steps-bg-default;
  68. }
  69. .#{$module}-item-icon {
  70. color: $color-steps-icon-default;
  71. }
  72. }
  73. &-finish {
  74. .#{$prefix}-icon,
  75. .#{$module}-item-title {
  76. color: $color-steps_success-text-default;
  77. }
  78. &:hover {
  79. background-color: $color-steps-bg-hover;
  80. .#{$prefix}-icon,
  81. .#{$module}-item-title {
  82. color: $color-steps_success-text-hover;
  83. }
  84. }
  85. &:active {
  86. background-color: $color-steps-bg-active;
  87. .#{$prefix}-icon,
  88. .#{$module}-item-title {
  89. color: $color-steps_success-text-active;
  90. }
  91. }
  92. }
  93. &-error {
  94. .#{$prefix}-icon,
  95. .#{$module}-item-title {
  96. color: $color-steps_danger-text-default;
  97. }
  98. &:hover {
  99. background: $color-steps-bg-hover;
  100. .#{$prefix}-icon,
  101. .#{$module}-item-title {
  102. color: $color-steps_danger-text-hover;
  103. }
  104. }
  105. &:active {
  106. background-color: $color-steps-bg-active;
  107. .#{$prefix}-icon,
  108. .#{$module}-item-title {
  109. color: $color-steps_danger-text-active;
  110. }
  111. }
  112. }
  113. &-warning {
  114. .#{$module}-item-title,
  115. .#{$prefix}-icon {
  116. color: $color-steps_warning-text-default;
  117. }
  118. &:hover {
  119. background: $color-steps-bg-hover;
  120. .#{$module}-item-title,
  121. .#{$prefix}-icon {
  122. color: $color-steps_warning-text-hover;
  123. }
  124. }
  125. &:active {
  126. background-color: $color-steps-bg-active;
  127. .#{$module}-item-title,
  128. .#{$prefix}-icon {
  129. color: $color-steps_warning-text-active;
  130. }
  131. }
  132. }
  133. &-clickable {
  134. cursor: pointer;
  135. }
  136. &-left {
  137. width: $width-steps_item_left;
  138. height: $height-steps_item_left;
  139. line-height: $font-steps_item_left-lineHeight;
  140. text-align: center;
  141. border-radius: $radius-steps_item_left;
  142. display: flex;
  143. align-items: center;
  144. justify-content: center;
  145. @include font-size-header-4;
  146. font-weight: $font-weight-bold;
  147. flex-grow: 0;
  148. &.#{$module}-item-plain {
  149. color: $color-steps-text-default;
  150. }
  151. &-process {
  152. background: $color-steps_process-bg-default;
  153. }
  154. }
  155. &-content {
  156. margin-left: $spacing-steps_item_content-marginLeft;
  157. flex: 1;
  158. overflow: hidden;
  159. }
  160. }
  161. }