Commit acf7ca9a authored by Martijn Cuppens's avatar Martijn Cuppens Committed by XhmikosR
Browse files

More compact color-yiq function (#28514)

parent a2594e1d
3 merge requests!31948Examples/Floating-labels: fix bad behavior with autofill,!30064test,!28882fix custom-select-indicator in IE10
Showing with 1 addition and 5 deletions
+1 -5
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment