Skip to content

Commit b869d23

Browse files
committed
Refactor(utilities): changes
1 parent d8b3957 commit b869d23

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/assets/scss/core/mixins/_utilities.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "sass:math";
2+
13
@function calc-top($line-height-base, $font-size, $component-height) {
24
@return (($line-height-base * $font-size) - $component-height) / 2; // vertical center of line-height
35
}
@@ -25,7 +27,7 @@
2527

2628
@function brightness($color) {
2729
@if type-of($color) == color {
28-
@return (red($color) * 0.299 + green($color) * 0.587 + blue($color) * 0.114) / 255 * 100%;
30+
@return math.div(red($color) * 0.299 + green($color) * 0.587 + blue($color) * 0.114, 255) * 100%;
2931
} @else {
3032
@return unquote("brightness(#{$color})");
3133
}

0 commit comments

Comments
 (0)