Skip to content

Commit

Permalink
Merge pull request #3837 from bagedevimo/fix-bulma-color-brightness
Browse files Browse the repository at this point in the history
Fix bulma color brightness
  • Loading branch information
jgthms committed Jul 1, 2024
2 parents bbd8d21 + b252b86 commit 8ed5567
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 8ed5567

Please sign in to comment.