Skip to content

Commit

Permalink
Replace deprecated use of division operator wiith call to math.div
Browse files Browse the repository at this point in the history
  • Loading branch information
bagedevimo committed Jun 11, 2024
1 parent 4236077 commit b252b86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sass/utilities/functions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b252b86

Please sign in to comment.