Updates deprecated round functions

Signed-off-by: Cole Gentry <peapod2007@gmail.com>
This commit is contained in:
Cole Gentry
2024-11-24 11:44:39 -05:00
parent 6374a8094d
commit 125f8f8994
2 changed files with 9 additions and 9 deletions

View File

@@ -159,7 +159,7 @@
@if meta.type-of($color) == "color" {
$luminance: bulmaColorLuminance($color);
$luminance-delta: 0.53 - $luminance;
$target-l: round($base-l + $luminance-delta * 53);
$target-l: math.round($base-l + $luminance-delta * 53);
@return color.change($color, $lightness: max($base-l, $target-l));
}
@@ -192,7 +192,7 @@
}
@function bulmaColorBrightness($n) {
$color-brightness: round(
$color-brightness: math.round(
math.div(
(color.channel($n, "red", $space: rgb) * 299) +
(color.channel($n, "green", $space: rgb) * 587) +
@@ -200,7 +200,7 @@
1000
)
);
$light-color: round(
$light-color: math.round(
math.div(
(color.channel(#ffffff, "red", $space: rgb) * 299) +
(color.channel(#ffffff, "green", $space: rgb) * 587) +