mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-28 20:52:21 +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;
|
||||
|
||||
@if ($yiq >= $yiq-contrasted-threshold) {
|
||||
@return $dark;
|
||||
} @else {
|
||||
@return $light;
|
||||
}
|
||||
@return if($yiq >= $yiq-contrasted-threshold, $dark, $light);
|
||||
}
|
||||
|
||||
// Retrieve color Sass maps
|
||||
|
Loading…
x
Reference in New Issue
Block a user