mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-29 21:52:22 +01:00
More compact color-yiq function (#28514)
This commit is contained in:
parent
a2594e1d6e
commit
acf7ca9a68
@ -56,11 +56,7 @@
|
|||||||
|
|
||||||
$yiq: (($r * 299) + ($g * 587) + ($b * 114)) / 1000;
|
$yiq: (($r * 299) + ($g * 587) + ($b * 114)) / 1000;
|
||||||
|
|
||||||
@if ($yiq >= $yiq-contrasted-threshold) {
|
@return if($yiq >= $yiq-contrasted-threshold, $dark, $light);
|
||||||
@return $dark;
|
|
||||||
} @else {
|
|
||||||
@return $light;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Retrieve color Sass maps
|
// Retrieve color Sass maps
|
||||||
|
Loading…
x
Reference in New Issue
Block a user