More compact color-yiq function (#28514)

This commit is contained in:
Martijn Cuppens 2019-05-03 20:18:42 +02:00 committed by XhmikosR
parent a2594e1d6e
commit acf7ca9a68
1 changed files with 1 additions and 5 deletions

View File

@ -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