Skip to content

Commit

Permalink
feat: less
Browse files Browse the repository at this point in the history
  • Loading branch information
shenhaidada committed Oct 24, 2024
1 parent 3fc66b7 commit 62e6d2a
Showing 1 changed file with 10 additions and 27 deletions.
37 changes: 10 additions & 27 deletions packages/common-widgets/style/mixin.less
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@
* }
* ```
*/
.set-steps-color(@color, @finish-color: fade(@color, 10%)) {
.set-steps-color(@color, @finish-color: fade(@color, 10%), @reverse: false) {
.process-bg-color-with-config,
.process-custom-icon-bg-color-with-config {
background: @color;
Expand All @@ -553,37 +553,20 @@
}
.finish-tail-color-with-config::before,
.finish-tail-color-with-config::after,
.process-tail-color-with-config::before,
.error-tail-color-with-config::before {
background: @color;
}
}

.set-steps-color-reverse(@color, @finish-color: fade(@color, 10%)) {
.process-bg-color-with-config,
.process-custom-icon-bg-color-with-config {
background: @color;
.use-var(color, steps-process-with-config-item-icon-color);
}
.finish-bg-color-with-config,
.finish-custom-icon-bg-color-with-config {
background: @finish-color;
color: @color;
svg {
color: inherit;
& when (@reverse = true) {
.process-tail-color-with-config::after {
background: @color;
}
}
.wait-custom-icon-bg-color-with-config {
.use-var(background, steps-wait-icon-num-background);
.use-var(color, sub-info-font-color);
}
.process-title-color-with-config {
color: @color;
}
.finish-tail-color-with-config::before,
.finish-tail-color-with-config::after,
.process-tail-color-with-config::after,
.error-tail-color-with-config::before {
background: @color;

& when (@reverse = false) {
.process-tail-color-with-config::before {
background: @color;
}
}

}

0 comments on commit 62e6d2a

Please sign in to comment.