From d3b336dd4811476432deeb999b58779e22bb26a3 Mon Sep 17 00:00:00 2001 From: Silvan Verhoeven Date: Thu, 22 Feb 2024 12:48:59 +0100 Subject: [PATCH] chore: Improve print layout --- myhpi/core/templates/core/minutes.html | 146 +++++++++++++------------ myhpi/settings.py | 4 +- myhpi/static/scss/myHPI.scss | 10 ++ myhpi/templates/base.html | 2 +- 4 files changed, 88 insertions(+), 74 deletions(-) diff --git a/myhpi/core/templates/core/minutes.html b/myhpi/core/templates/core/minutes.html index 6d6ddfd5..2d5fb297 100644 --- a/myhpi/core/templates/core/minutes.html +++ b/myhpi/core/templates/core/minutes.html @@ -6,82 +6,86 @@ {% load bootstrap_icons %} {% block content %} -
- {% with page.body|markdown as parsed_md %} -
-

{{ page.title }}

-
-
- {{ parsed_md.0|touchify_abbreviations|tag_external_links }} -
-
- - - - - - {% if page.location %} - +
+ {% with page.body|markdown as parsed_md %} +

+ + {{ page.title }} + +

+
+ {{ parsed_md.0|touchify_abbreviations|tag_external_links }} +
+
+ + + + + + {% if page.location %} + + {% endif %} + + {% include "core/sidebar.html" %} +
+ +
+
+ {% prev_minutes page as prev %} + {% if prev %} + {% bs_icon 'arrow-left' + extra_classes='minutes-navigation-icon' %} {% translate "Previous minutes" %} {% endif %} - - {% include "core/sidebar.html" %}
- -
-
- {% prev_minutes page as prev %} - {% if prev %} - {% bs_icon 'arrow-left' extra_classes='minutes-navigation-icon' %} {% translate "Previous minutes" %} - {% endif %} -
-
- {% next_minutes page as next %} - {% if next %} - {% translate "Next minutes" %} {% bs_icon 'arrow-right' extra_classes='minutes-navigation-icon' %} - {% endif %} -
+ - {% endwith %}
+ {% endwith %} +
{% endblock %} {% block extra_js %} -{% endblock %} +{% endblock %} \ No newline at end of file diff --git a/myhpi/settings.py b/myhpi/settings.py index 54b5cba5..63948f2c 100644 --- a/myhpi/settings.py +++ b/myhpi/settings.py @@ -276,9 +276,9 @@ "extension_configs": { "toc": { "permalink": "#", - "permalink_class": "toc-permalink ms-2", + "permalink_class": "toc-permalink ms-2 d-print-none", } - } + }, } ENABLE_MAILING_LISTS = env.bool("ENABLE_MAILING_LISTS", False) diff --git a/myhpi/static/scss/myHPI.scss b/myhpi/static/scss/myHPI.scss index a6bdcec2..094f79ab 100644 --- a/myhpi/static/scss/myHPI.scss +++ b/myhpi/static/scss/myHPI.scss @@ -340,12 +340,22 @@ img { flex-direction: column; } + .page-title .underline { + border-bottom: none; + } + + .side-panel { + border: none !important; + padding: 0; + } + .minutes-title { order: 0 } .minutes-meta { order: 1; + margin-bottom: 2rem; } .minutes-text { diff --git a/myhpi/templates/base.html b/myhpi/templates/base.html index 2f7598e2..9c511bd0 100644 --- a/myhpi/templates/base.html +++ b/myhpi/templates/base.html @@ -150,7 +150,7 @@ {% endif %} -