From 61aaa540eb7beec0510d9132973b2b2f08e5d60f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Tue, 1 Oct 2019 13:53:11 -0400 Subject: [PATCH] Give Collections and Gleanings the full treatment --- .../custom/geofresco/src/global/_paint.scss | 21 ++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/web/themes/custom/geofresco/src/global/_paint.scss b/web/themes/custom/geofresco/src/global/_paint.scss index aa8af23..363f63f 100644 --- a/web/themes/custom/geofresco/src/global/_paint.scss +++ b/web/themes/custom/geofresco/src/global/_paint.scss @@ -3,9 +3,6 @@ .background-replacement-for-no-image { background-color: cadetblue; } -.page--content-item--collection .background-replacement-for-no-image { - background-color: $collection; -} /* Front page view titles and more links get un-SMACSS targeting, sorry. */ @@ -44,6 +41,24 @@ color: $white; } } +.page--content-item--collection .background-replacement-for-no-image, +.block-views-blockhome-page-views-block-collections .button, +.is-collection .background-replacement-for-no-image { + background-color: $collection; + color: $white; + a { + color: $white; + } +} +.page--content-item--gleaning .background-replacement-for-no-image, +.block-views-blockhome-page-views-block-gleanings .button, +.is-gleaning .background-replacement-for-no-image { + background-color: $gleaning; + color: $black; + a { + color: $black; + } +} // Gleanings don't have the same faux-image structure (because they don't have // featured images) but we still want the title to look about the same.