From 360a8b917ec3c074aba938a68e9e67183c12ac81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Wed, 31 Jul 2019 13:54:36 -0400 Subject: [PATCH] Move gradient to where we can use variables; set colors based on original logo --- web/themes/custom/geofresco/src/global/_base.scss | 14 ++++++++++++++ web/themes/custom/geofresco/src/global/global.scss | 2 ++ .../custom/geofresco/src/global/overrides.scss | 12 ------------ 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/web/themes/custom/geofresco/src/global/_base.scss b/web/themes/custom/geofresco/src/global/_base.scss index 6d1f57e..24f196a 100644 --- a/web/themes/custom/geofresco/src/global/_base.scss +++ b/web/themes/custom/geofresco/src/global/_base.scss @@ -20,6 +20,20 @@ width: -webkit-max-content; /* Chrome */ } +// Add a gradient across only a portion of the vertical width of the navbar. +.navbar { + background: linear-gradient( + $body-background-color, + $body-background-color 20px, + $light-green 20px, + $green 40px, + $green 60px, + $body-background-color 60px, + $body-background-color + ); +} + + // Style the wordmark (logo) .navbar-item .wordmark { max-height: 3rem; // 4rem diff --git a/web/themes/custom/geofresco/src/global/global.scss b/web/themes/custom/geofresco/src/global/global.scss index 8470fb0..174ade4 100644 --- a/web/themes/custom/geofresco/src/global/global.scss +++ b/web/themes/custom/geofresco/src/global/global.scss @@ -3,6 +3,8 @@ // Set brand colors. $blue: #4391E0; $red: #a70c20; +$light-green: #65AB1F; +$green: #478D00; // Update Bulma's global variables. $primary: $blue; diff --git a/web/themes/custom/geofresco/src/global/overrides.scss b/web/themes/custom/geofresco/src/global/overrides.scss index 5cf8d46..6e5b6a9 100644 --- a/web/themes/custom/geofresco/src/global/overrides.scss +++ b/web/themes/custom/geofresco/src/global/overrides.scss @@ -15,18 +15,6 @@ } */ -.navbar { - background: linear-gradient( - white, - white 20px, - lightgreen 20px, - green 40px, - green 60px, - white 60px, - white - ); -} - .footer { background-image: url('/themes/custom/geofresco/images/grassland-wark-forest.jpg'); background-position: center;