From: Ben Anderson Date: Tue, 11 Jun 2024 03:35:53 +0000 (+1200) Subject: Replace deprecated use of division operator wiith call to math.div X-Git-Tag: 1.0.2~4^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3837%2Fhead;p=thirdparty%2Fbulma.git Replace deprecated use of division operator wiith call to math.div --- 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) {