2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-15 11:59:39 +03:00

add vars for yiq color contrast function

This commit is contained in:
Mark Otto
2017-10-18 21:06:13 -07:00
committed by Mark Otto
parent 0a82cd9f3c
commit bf2fee9035
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -57,9 +57,9 @@
$yiq: (($r * 299) + ($g * 587) + ($b * 114)) / 1000;
@if ($yiq >= 150) {
@return #111;
@return $yiq-text-dark;
} @else {
@return #fff;
@return $yiq-text-light;
}
}
+4
View File
@@ -87,6 +87,10 @@ $theme-colors: map-merge((
// Set a specific jump point for requesting color jumps
$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
//