A platform for community discussion. Free, open, simple.
UX: Blend header colors (#11422)
Penar Musarajd1058f4e4cc8
diff --git a/app/assets/stylesheets/common/foundation/color_transformations.scss b/app/assets/stylesheets/common/foundation/color_transformations.scssindex 92722804382..1f9957d789b 100644--- a/app/assets/stylesheets/common/foundation/color_transformations.scss+++ b/app/assets/stylesheets/common/foundation/color_transformations.scss@@ -10,38 +10,11 @@ $primary-medium: dark-light-diff($primary, $secondary, 50%, -35%) !default;$primary-high: dark-light-diff($primary, $secondary, 30%, -25%) !default;$primary-very-high: dark-light-diff($primary, $secondary, 15%, -10%) !default;-//header_primary-$header_primary-low: dark-light-diff(- $header_primary,- $header_background,- 90%,- -78%-) !default;-$header_primary-low-mid: dark-light-diff(- $header_primary,- $header_background,- 70%,- -45%-) !default;--$header_primary-medium: dark-light-diff(- $header_primary,- $header_background,- 50%,- -35%-) !default;-$header_primary-high: dark-light-diff(- $header_primary,- $header_background,- 30%,- -25%-) !default;-$header_primary-very-high: dark-light-diff(- $header_primary,- $header_background,- 15%,- -10%-) !default;+$header_primary-low: blend-header-primary-background(10%) !default;+$header_primary-low-mid: blend-header-primary-background(35%) !default;+$header_primary-medium: blend-header-primary-background(55%) !default;+$header_primary-high: blend-header-primary-background(70%) !default;+$header_primary-very-high: blend-header-primary-background(90%) !default;//secondary$secondary-low: dark-light-diff($secondary, $primary, 70%, -70%) !default;diff --git a/app/assets/stylesheets/common/foundation/variables.scss b/app/assets/stylesheets/common/foundation/variables.scssindex 021a689a025..0d95119654b 100644--- a/app/assets/stylesheets/common/foundation/variables.scss+++ b/app/assets/stylesheets/common/foundation/variables.scss@@ -192,6 +192,10 @@ $box-shadow: (@return srgb-scale($primary, $secondary, $percent);}+@function blend-header-primary-background($percent) {+ @return srgb-scale($header_primary, $header_background, $percent);+}+@function dark-light-diff($adjusted-color,$comparison-color,