mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-10 23:54:08 +02:00
Adds variable for color yiq threshold (#24886)
This commit is contained in:
committed by
Mark Otto
parent
023015006a
commit
1d6e3710dd
@@ -56,7 +56,7 @@
|
||||
|
||||
$yiq: (($r * 299) + ($g * 587) + ($b * 114)) / 1000;
|
||||
|
||||
@if ($yiq >= 150) {
|
||||
@if ($yiq >= $yiq-contrasted-threshold) {
|
||||
@return $yiq-text-dark;
|
||||
} @else {
|
||||
@return $yiq-text-light;
|
||||
|
Reference in New Issue
Block a user