# HG changeset patch # User Goffi # Date 1601306726 -7200 # Node ID f1a39607d6a563aa08ae6a25f9649eca3e94a722 # Parent 9731b71ffa53a86bcfd373e19beb3127fab9d790 bulma (base/base.html): `full_screen_body` parameter + body_wrapper: - if `full_screen_body` is set in template, the `body--fullscreen` class will be added to `` element. It will then be a flexbox container (in columns), and displayed on the whole viewport. - new `body_wrapper` block, if a page needs to replace the `#body` container. diff -r 9731b71ffa53 -r f1a39607d6a5 sat_templates/templates/bulma/base/base.html --- a/sat_templates/templates/bulma/base/base.html Thu Sep 17 22:44:37 2020 +0200 +++ b/sat_templates/templates/bulma/base/base.html Mon Sep 28 17:25:26 2020 +0200 @@ -72,7 +72,7 @@ {% endblock favicon %} - + {% if atom_url is defined %} {{ icon_defs('feed') }} {% endif %} @@ -81,6 +81,7 @@ {{ component.menu(main_menu, class="main_menu") }} {% endblock main_menu %} {% endif %} + {% block body_wrapper %}
{% if confirm %}
@@ -110,5 +111,6 @@ {% block body %} {% endblock body %}
+ {% endblock body_wrapper%} diff -r 9731b71ffa53 -r f1a39607d6a5 sat_templates/templates/bulma/static/styles.css --- a/sat_templates/templates/bulma/static/styles.css Thu Sep 17 22:44:37 2020 +0200 +++ b/sat_templates/templates/bulma/static/styles.css Mon Sep 28 17:25:26 2020 +0200 @@ -5,6 +5,14 @@ --grey-light: hsl(0, 0%, 71%); } +body.body--fullscreen { + display: flex; + flex-direction: column; + height: 100vh; + width: 100vw; + overflow: hidden; +} + .has-whitespace-pre-wrap { white-space: pre-wrap; }