From b252b86cfa06f6acc0efd3714c9e17a67e325167 Mon Sep 17 00:00:00 2001 From: Ben Anderson Date: Tue, 11 Jun 2024 15:35:53 +1200 Subject: [PATCH] Replace deprecated use of division operator wiith call to math.div --- sass/utilities/functions.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sass/utilities/functions.scss b/sass/utilities/functions.scss index 4fdefe83..1e1b86c0 100644 --- a/sass/utilities/functions.scss +++ b/sass/utilities/functions.scss @@ -184,10 +184,10 @@ @function bulmaColorBrightness($n) { $color-brightness: round( - ((red($n) * 299) + (green($n) * 587) + (blue($n) * 114)) / 1000 + math.div((red($n) * 299) + (green($n) * 587) + (blue($n) * 114), 1000) ); $light-color: round( - ((red(#ffffff) * 299) + (green(#ffffff) * 587) + (blue(#ffffff) * 114)) / 1000 + math.div((red(#ffffff) * 299) + (green(#ffffff) * 587) + (blue(#ffffff) * 114), 1000) ); @if abs($color-brightness) < math.div($light-color, 2) { -- 2.47.2