Merge pull request #3837 from bagedevimo/fix-bulma-color-brightness

Fix bulma color brightness
This commit is contained in:
Jeremy Thomas 2024-07-01 15:32:22 +01:00 committed by GitHub
commit 8ed556711b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) {