We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8b3957 commit b869d23Copy full SHA for b869d23
src/assets/scss/core/mixins/_utilities.scss
@@ -1,3 +1,5 @@
1
+@use "sass:math";
2
+
3
@function calc-top($line-height-base, $font-size, $component-height) {
4
@return (($line-height-base * $font-size) - $component-height) / 2; // vertical center of line-height
5
}
@@ -25,7 +27,7 @@
25
27
26
28
@function brightness($color) {
29
@if type-of($color) == color {
- @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%;
31
} @else {
32
@return unquote("brightness(#{$color})");
33
0 commit comments