From f2c89bad0e8ac4b3159a2702a204f0ca086dd114 Mon Sep 17 00:00:00 2001 From: Rafal Leszczynski Date: Tue, 8 Mar 2016 15:32:12 +0100 Subject: [PATCH] DAT-3855, move ligthness condition to separate variable --- styles/PortableInfoboxEuropaTheme.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/styles/PortableInfoboxEuropaTheme.scss b/styles/PortableInfoboxEuropaTheme.scss index f853758..716e08a 100644 --- a/styles/PortableInfoboxEuropaTheme.scss +++ b/styles/PortableInfoboxEuropaTheme.scss @@ -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); }