From 1a2b7a8b6b3f14a0841fc126641fcc50d727e2c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Mon, 23 Sep 2019 08:32:59 -0400 Subject: [PATCH] Add background color for title of gleaning nodes Ref #28 --- web/themes/custom/geofresco/src/global/_layout.scss | 6 ++++++ web/themes/custom/geofresco/src/global/global.scss | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/web/themes/custom/geofresco/src/global/_layout.scss b/web/themes/custom/geofresco/src/global/_layout.scss index 45c4cf9..cca6db6 100644 --- a/web/themes/custom/geofresco/src/global/_layout.scss +++ b/web/themes/custom/geofresco/src/global/_layout.scss @@ -43,3 +43,9 @@ height: 12rem; background-color: cadetblue; } + +// Gleanings don't have the same faux-image structure (because they'll never +// have a featured image) but we still want the title to look about the same. +.page--content-item--gleaning .page-title { + background-color: $gleaning; +} diff --git a/web/themes/custom/geofresco/src/global/global.scss b/web/themes/custom/geofresco/src/global/global.scss index 46f45d7..5454f6a 100644 --- a/web/themes/custom/geofresco/src/global/global.scss +++ b/web/themes/custom/geofresco/src/global/global.scss @@ -8,6 +8,14 @@ $green: #478D00; $green-gray: #8FB489; $offwhite: #F8F8F8; +// No idea where this yellow came from, apparently Bulma, but we never set it +// yet it is the right color. Anyway i'm past trying to figure things out. +// Re-setting it here, just so that we can assign it to Gleanings, below. +$yellow: #ffdd57; + +// A color for each content type +$gleaning: $yellow; + // Update Bulma's global variables. $primary: $green;