From b95b91ce099c763a1b0c89474ef0201fab18ea06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Melan=C3=A7on?= Date: Fri, 30 Aug 2019 23:00:57 -0400 Subject: [PATCH] Drop title down over featured image this doesn't happen on home, where there will never be a featured image @TODO make sure nothing terrible happens when there is no featured image --- web/themes/custom/geofresco/src/global/_layout.scss | 9 +++++++++ .../custom/geofresco/src/templates/layout/page.html.twig | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/web/themes/custom/geofresco/src/global/_layout.scss b/web/themes/custom/geofresco/src/global/_layout.scss index fa7c5b6..a80ef80 100644 --- a/web/themes/custom/geofresco/src/global/_layout.scss +++ b/web/themes/custom/geofresco/src/global/_layout.scss @@ -16,3 +16,12 @@ .logo > .image { display: inline-block; } + + +/* On any page except the home, drop the title over (where we want) the image (to be). */ +.page-title { + height: 0; + position: relative; + overflow: visible; + z-index: 10; +} diff --git a/web/themes/custom/geofresco/src/templates/layout/page.html.twig b/web/themes/custom/geofresco/src/templates/layout/page.html.twig index edc88dd..ac3a11e 100644 --- a/web/themes/custom/geofresco/src/templates/layout/page.html.twig +++ b/web/themes/custom/geofresco/src/templates/layout/page.html.twig @@ -58,7 +58,7 @@ {% if not is_front %} -
+
{% block header_and_search %} {% if page.header %} {# Header region #}