From f2cadfb5cafc1dda4896a4a60532f642260743c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Melan=C3=A7on?= Date: Thu, 8 Aug 2019 17:42:21 -0400 Subject: [PATCH] Remove extra whitespace above navbar and logo etc on mobile This padding won't have any effect on non-mobile, as the columns aren't collapsed --- web/themes/custom/geofresco/src/global/_layout.scss | 9 +++++---- .../custom/geofresco/src/templates/layout/page.html.twig | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/web/themes/custom/geofresco/src/global/_layout.scss b/web/themes/custom/geofresco/src/global/_layout.scss index c0021e3..3fdd6ca 100644 --- a/web/themes/custom/geofresco/src/global/_layout.scss +++ b/web/themes/custom/geofresco/src/global/_layout.scss @@ -1,8 +1,9 @@ @charset "UTF-8"; // Extend or override Bulma's layouts ../../node_modules/bulma/sass/layout -/* -.hero-body { - padding: 2rem 1.5rem; +// Hiding or making the top empty have no padding screws +// up the layout and i have no idea why, but cut the +// padding in half and it comes out perfect. *shrug* +.empty-top { + padding: 0.375rem; } -*/ 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 991c9e3..fb2cb8e 100644 --- a/web/themes/custom/geofresco/src/templates/layout/page.html.twig +++ b/web/themes/custom/geofresco/src/templates/layout/page.html.twig @@ -20,7 +20,7 @@ {% if page.header_user or page.header_search %}
-
+
{% if page.header_user %}