DAT-3855, move ligthness condition to separate variable

This commit is contained in:
Rafal Leszczynski 2016-03-08 15:32:12 +01:00
parent 971a012f8c
commit f2c89bad0e

View file

@ -5,6 +5,7 @@ $infobox-width: 300px;
$white: #fff;
$black: #000;
$backgroundColorMix: 10%;
$tabberLightnessCondition: 30;
$backgroundColor: mix($black, $color-page, $backgroundColorMix);
$horizontalGroupStripeBackground: mix($black, $color-page, $backgroundColorMix * 2);
$tabberBackgroundColor: mix($black, $color-buttons, $backgroundColorMix * 4);
@ -25,7 +26,7 @@ $collapsibleChevronNegativeMargin: -7px;
$horizontalGroupStripeBackground: mix($white, $color-page, $backgroundColorMix * 2);
}
@if lightness($color-buttons) < 30 {
@if lightness($color-buttons) < $tabberLightnessCondition {
$tabberBackgroundColor: mix($white, $color-buttons, $backgroundColorMix * 4);
}