diff options
-rw-r--r-- | scss/my_bulma.scss | 21 | ||||
-rw-r--r-- | 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 @@ </head> <body> - {% block content required %}{% endblock %} - - <footer class=footer> - <div class="content has-text-centered"> - <a href="{{ url_for('about') }}"> - {% trans %}About{% endtrans %} JWebmail - </a> - <br> - {% trans %}Version{% endtrans %} - {{ version }} + <div class=jwm-page-container> + <div class=jwm-content> + {% block content required %}{% endblock %} </div> - </footer> + + <footer class="footer jwm-footer"> + <div class="content has-text-centered"> + <a href="{{ url_for('about') }}"> + {% trans %}About{% endtrans %} JWebmail + </a> + <br> + {% trans %}Version{% endtrans %} + {{ version }} + </div> + </footer> + <div> {% block scripts %}{% endblock %} |