diff options
| author | Martijn Cuppens <[email protected]> | 2019-05-03 20:18:42 +0200 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2019-05-03 21:18:41 +0300 |
| commit | acf7ca9a6898aeb9e8c0f99ccc44a84a28d206da (patch) | |
| tree | a331dc0074fb2f7e0703dcd7e9c42dd38bce4f26 | |
| parent | a2594e1d6eefbc46a17edf2215547f55bdc7fe23 (diff) | |
| download | bootstrap-acf7ca9a6898aeb9e8c0f99ccc44a84a28d206da.tar.xz bootstrap-acf7ca9a6898aeb9e8c0f99ccc44a84a28d206da.zip | |
More compact color-yiq function (#28514)
| -rw-r--r-- | scss/_functions.scss | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/scss/_functions.scss b/scss/_functions.scss index 41e99ec76..e867b5521 100644 --- a/scss/_functions.scss +++ b/scss/_functions.scss @@ -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 |
