chore: format scss code (#21312)

This commit is contained in:
btea
2025-07-11 16:40:01 +08:00
committed by GitHub
parent d0e8bf0c9f
commit b643cbed13
3 changed files with 18 additions and 14 deletions

View File

@@ -61,11 +61,13 @@ $color-info: map.get($colors, 'info', 'base') !default;
(
$type: (
'#{$mode}-#{$number}':
roundColor(color.mix(
$mix-color,
map.get($colors, $type, 'base'),
math.percentage(math.div($number, 10))
)),
roundColor(
color.mix(
$mix-color,
map.get($colors, $type, 'base'),
math.percentage(math.div($number, 10))
)
),
),
),
$colors

View File

@@ -32,11 +32,13 @@ $colors: () !default;
(
$type: (
'#{$mode}-#{$number}':
roundColor(color.mix(
$mix-color,
map.get($colors, $type, 'base'),
math.percentage(math.div($number, 10))
)),
roundColor(
color.mix(
$mix-color,
map.get($colors, $type, 'base'),
math.percentage(math.div($number, 10))
)
),
),
),
$colors

View File

@@ -90,10 +90,10 @@
}
@function roundColor($color) {
$r: math.round(color.channel($color, "red"));
$g: math.round(color.channel($color, "green"));
$b: math.round(color.channel($color, "blue"));
$a: color.channel($color, "alpha");
$r: math.round(color.channel($color, 'red'));
$g: math.round(color.channel($color, 'green'));
$b: math.round(color.channel($color, 'blue'));
$a: color.channel($color, 'alpha');
@return rgba($r, $g, $b, $a);
}