From 44b719671fe73b7378789968ecc8d48d7f9c00ca Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Mon, 9 Dec 2024 16:07:52 +0100 Subject: make the footer stick to the bottom --- scss/my_bulma.scss | 21 +++++++++++++++++++++ src/jwebmail/templates/mainlayout.html | 26 +++++++++++++++----------- 2 files changed, 36 insertions(+), 11 deletions(-) diff --git a/scss/my_bulma.scss b/scss/my_bulma.scss index 01cdc4b..418ade6 100644 --- a/scss/my_bulma.scss +++ b/scss/my_bulma.scss @@ -1,4 +1,5 @@ @use "bulma/bulma"; +@use 'sass:list'; .jwm-new-mail > .media-content { @extend .has-text-weight-semibold; @@ -44,3 +45,23 @@ iframe.jwm-mail-body-text-html { .jwm-mail-body-text-plain { @extend .block; } + +.jwm-page-container { + position: relative; + min-height: 100vh; +} + +.jwm-content { + padding-bottom: + list.nth(bulma.$footer-padding, 1) + + list.nth(bulma.$footer-padding, 3) + + list.nth(bulma.$section-padding, 1) + + 3rem; +} + +.jwm-footer { + position: absolute; + bottom: 0; + width: 100%; + height: auto; +} diff --git a/src/jwebmail/templates/mainlayout.html b/src/jwebmail/templates/mainlayout.html index 46a07af..d3e99a5 100644 --- a/src/jwebmail/templates/mainlayout.html +++ b/src/jwebmail/templates/mainlayout.html @@ -14,18 +14,22 @@ - {% block content required %}{% endblock %} - - + + +
{% block scripts %}{% endblock %} -- cgit v1.2.3