mirror of
https://github.com/jgthms/bulma
synced 2026-03-15 02:04:29 -07:00
Replace deprecated use of division operator wiith call to math.div
This commit is contained in:
@@ -184,10 +184,10 @@
|
|||||||
|
|
||||||
@function bulmaColorBrightness($n) {
|
@function bulmaColorBrightness($n) {
|
||||||
$color-brightness: round(
|
$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(
|
$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) {
|
@if abs($color-brightness) < math.div($light-color, 2) {
|
||||||
|
|||||||
Reference in New Issue
Block a user