fillSteps.scss 5.1 KB

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