]> git.ipfire.org Git - thirdparty/bulma.git/commitdiff
Replace deprecated use of division operator wiith call to math.div 3837/head
authorBen Anderson <ben@delivereasy.co.nz>
Tue, 11 Jun 2024 03:35:53 +0000 (15:35 +1200)
committerBen Anderson <ben@delivereasy.co.nz>
Tue, 11 Jun 2024 03:35:53 +0000 (15:35 +1200)
sass/utilities/functions.scss

index 4fdefe835df7c460e9879f7c79beb44f00ba9e3a..1e1b86c0dfe2927acde365a08b9ec58cc3f064eb 100644 (file)
 
 @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) {