mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
chore: format scss code (#21312)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user