Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/scss
diff options
context:
space:
mode:
authorMartijn Cuppens <martijn.cuppens@gmail.com>2019-05-03 21:18:42 +0300
committerXhmikosR <xhmikosr@gmail.com>2019-05-03 21:18:41 +0300
commitacf7ca9a6898aeb9e8c0f99ccc44a84a28d206da (patch)
treea331dc0074fb2f7e0703dcd7e9c42dd38bce4f26 /scss
parenta2594e1d6eefbc46a17edf2215547f55bdc7fe23 (diff)
More compact color-yiq function (#28514)
Diffstat (limited to 'scss')
-rw-r--r--scss/_functions.scss6
1 files changed, 1 insertions, 5 deletions
diff --git a/scss/_functions.scss b/scss/_functions.scss
index 41e99ec761..e867b55211 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