mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-19 16:54:24 +01:00
add vars for yiq color contrast function
This commit is contained in:
parent
0a82cd9f3c
commit
bf2fee9035
@ -57,9 +57,9 @@
|
|||||||
$yiq: (($r * 299) + ($g * 587) + ($b * 114)) / 1000;
|
$yiq: (($r * 299) + ($g * 587) + ($b * 114)) / 1000;
|
||||||
|
|
||||||
@if ($yiq >= 150) {
|
@if ($yiq >= 150) {
|
||||||
@return #111;
|
@return $yiq-text-dark;
|
||||||
} @else {
|
} @else {
|
||||||
@return #fff;
|
@return $yiq-text-light;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -87,6 +87,10 @@ $theme-colors: map-merge((
|
|||||||
// Set a specific jump point for requesting color jumps
|
// Set a specific jump point for requesting color jumps
|
||||||
$theme-color-interval: 8% !default;
|
$theme-color-interval: 8% !default;
|
||||||
|
|
||||||
|
// Customize the light and dark text colors for use in our YIQ color contrast function.
|
||||||
|
$yiq-text-dark: #111 !default;
|
||||||
|
$yiq-text-light: #fff !default;
|
||||||
|
|
||||||
|
|
||||||
// Options
|
// Options
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user