fillSteps.scss 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  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. transition: background-color $transition_duration-steps_item-backgroundColor $transition_function-steps_item_backgroundColor $transition_delay-steps_item_backgroundColor; //step backgroundColor 的transition变化
  41. .#{$module}-item-title {
  42. position: relative;
  43. // display: inline-block;
  44. @include font-size-header-5;
  45. font-weight: $font-weight-bold;
  46. width: $width-steps_item_title;
  47. @include text-overflow-hidden;
  48. color: $color-steps_main-text-default;
  49. transition: color $transition_duration-steps_item_title-text $transition_function-steps_item_title-text $transition_delay-steps_item_title-text
  50. }
  51. .#{$module}-item-description {
  52. @include font-size-regular;
  53. color: $color-steps_minor-text-default;
  54. width: $width-steps_item_description;
  55. @include text-overflow-hidden;
  56. }
  57. &-process {
  58. background-color: $color-steps_process-bg-default;
  59. .#{$module}-item-left:not(.#{$module}-item-icon) {
  60. background: $color-steps_primary-bg-default;
  61. }
  62. .#{$module}-item-title,
  63. .#{$module}-item-icon {
  64. color: $color-steps_primary-icon-default;
  65. }
  66. }
  67. &-wait {
  68. .#{$module}-item-left:not(.#{$module}-item-icon) {
  69. background: $color-steps-bg-default;
  70. }
  71. .#{$module}-item-icon {
  72. color: $color-steps-icon-default;
  73. }
  74. }
  75. &-finish {
  76. .#{$prefix}-icon,
  77. .#{$module}-item-title {
  78. color: $color-steps_success-text-default;
  79. }
  80. &:hover {
  81. background-color: $color-steps-bg-hover;
  82. .#{$prefix}-icon,
  83. .#{$module}-item-title {
  84. color: $color-steps_success-text-hover;
  85. }
  86. }
  87. &:active {
  88. background-color: $color-steps-bg-active;
  89. .#{$prefix}-icon,
  90. .#{$module}-item-title {
  91. color: $color-steps_success-text-active;
  92. }
  93. }
  94. }
  95. &-error {
  96. .#{$prefix}-icon,
  97. .#{$module}-item-title {
  98. color: $color-steps_danger-text-default;
  99. }
  100. &:hover {
  101. background: $color-steps-bg-hover;
  102. .#{$prefix}-icon,
  103. .#{$module}-item-title {
  104. color: $color-steps_danger-text-hover;
  105. }
  106. }
  107. &:active {
  108. background-color: $color-steps-bg-active;
  109. .#{$prefix}-icon,
  110. .#{$module}-item-title {
  111. color: $color-steps_danger-text-active;
  112. }
  113. }
  114. }
  115. &-warning {
  116. .#{$module}-item-title,
  117. .#{$prefix}-icon {
  118. color: $color-steps_warning-text-default;
  119. }
  120. &:hover {
  121. background: $color-steps-bg-hover;
  122. .#{$module}-item-title,
  123. .#{$prefix}-icon {
  124. color: $color-steps_warning-text-hover;
  125. }
  126. }
  127. &:active {
  128. background-color: $color-steps-bg-active;
  129. .#{$module}-item-title,
  130. .#{$prefix}-icon {
  131. color: $color-steps_warning-text-active;
  132. }
  133. }
  134. }
  135. &-clickable {
  136. cursor: pointer;
  137. }
  138. &-left {
  139. width: $width-steps_item_left;
  140. height: $height-steps_item_left;
  141. line-height: $font-steps_item_left-lineHeight;
  142. text-align: center;
  143. border-radius: $radius-steps_item_left;
  144. display: flex;
  145. align-items: center;
  146. justify-content: center;
  147. @include font-size-header-4;
  148. font-weight: $font-weight-bold;
  149. flex-grow: 0;
  150. &.#{$module}-item-plain {
  151. color: $color-steps-text-default;
  152. }
  153. &-process {
  154. background: $color-steps_process-bg-default;
  155. }
  156. }
  157. &-content {
  158. margin-left: $spacing-steps_item_content-marginLeft;
  159. flex: 1;
  160. overflow: hidden;
  161. }
  162. }
  163. }