From 32ac5e7af81eee5a53e24568d779f5fb6e30583d Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Sat, 23 Sep 2023 14:21:49 +0200 Subject: fix(theming): Make sure the footer is hidden if not content is rendered Previously the footer was empty, but the backdrop was still shown. This hides the footer if no text content was defined. Signed-off-by: Ferdinand Thiessen --- core/css/guest.scss | 3 +-- core/templates/layout.guest.php | 9 +++++++-- core/templates/layout.public.php | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) (limited to 'core') diff --git a/core/css/guest.scss b/core/css/guest.scss index f834149fd35..be352135de4 100644 --- a/core/css/guest.scss +++ b/core/css/guest.scss @@ -107,7 +107,7 @@ body { .wrapper { width: 100%; max-width: 700px; - margin-top: 10vh; + margin-block: 10vh auto; } /* Default FORM */ @@ -736,7 +736,6 @@ img.icon-loading-small-dark, object.icon-loading-small-dark, video.icon-loading- /* FOOTER */ footer { - margin-top: auto; .info .entity-name { font-weight: bold; } diff --git a/core/templates/layout.guest.php b/core/templates/layout.guest.php index 41f519574a1..450f8caf676 100644 --- a/core/templates/layout.guest.php +++ b/core/templates/layout.guest.php @@ -47,9 +47,14 @@ p($theme->getTitle()); -