From: Martijn Cuppens Date: Fri, 3 May 2019 18:18:42 +0000 (+0200) Subject: More compact color-yiq function (#28514) X-Git-Tag: v5.0.0-alpha1~1125 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acf7ca9a6898aeb9e8c0f99ccc44a84a28d206da;p=thirdparty%2Fbootstrap.git More compact color-yiq function (#28514) --- 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