From b643cbed13fa7cd638e6bb8bfcd22d2fa04e3109 Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Fri, 11 Jul 2025 16:40:01 +0800 Subject: [PATCH] chore: format scss code (#21312) --- packages/theme-chalk/src/common/var.scss | 12 +++++++----- packages/theme-chalk/src/dark/var.scss | 12 +++++++----- packages/theme-chalk/src/mixins/function.scss | 8 ++++---- 3 files changed, 18 insertions(+), 14 deletions(-) diff --git a/packages/theme-chalk/src/common/var.scss b/packages/theme-chalk/src/common/var.scss index 1877cdbdd4..c72717b368 100644 --- a/packages/theme-chalk/src/common/var.scss +++ b/packages/theme-chalk/src/common/var.scss @@ -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 diff --git a/packages/theme-chalk/src/dark/var.scss b/packages/theme-chalk/src/dark/var.scss index 1775f1846d..66f4e31d4f 100644 --- a/packages/theme-chalk/src/dark/var.scss +++ b/packages/theme-chalk/src/dark/var.scss @@ -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 diff --git a/packages/theme-chalk/src/mixins/function.scss b/packages/theme-chalk/src/mixins/function.scss index 1ee3437add..4fe3406e08 100644 --- a/packages/theme-chalk/src/mixins/function.scss +++ b/packages/theme-chalk/src/mixins/function.scss @@ -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); }