From aed71750dfafc55d9bf0c894b368df7bc4adff8c Mon Sep 17 00:00:00 2001 From: Davide Arcuri Date: Thu, 12 Sep 2024 16:31:02 +0200 Subject: [PATCH] offcanvas left sidebar --- orochi/static/css/style.css | 14 +-- orochi/templates/base.html | 154 +++++++++++++++------------- orochi/templates/website/index.html | 61 ++++++----- orochi/website/views.py | 2 +- 4 files changed, 117 insertions(+), 114 deletions(-) diff --git a/orochi/static/css/style.css b/orochi/static/css/style.css index 65567987..c1bb7c1a 100644 --- a/orochi/static/css/style.css +++ b/orochi/static/css/style.css @@ -32,18 +32,6 @@ a.navbar-brand { ) !important; } -/******************************************************** - MOVE DOWN FROM TITLE [OVVERRIDE DASHBOARD] -********************************************************/ - -.sidebar { - padding: 88px 0 0; /* Height of navbar */ -} - -main { - padding-top: 20px; -} - /******************************************************** COLOR FOR CHECKBOXES ********************************************************/ @@ -287,7 +275,7 @@ div.wunderbaum { DATATABLE MIN HEIGHT ********************************************************/ -.dataTables_scrollBody { +.dt-scroll-body { max-height: unset !important; height: unset !important; } diff --git a/orochi/templates/base.html b/orochi/templates/base.html index 715649d8..a75466bb 100644 --- a/orochi/templates/base.html +++ b/orochi/templates/base.html @@ -28,6 +28,13 @@
+ + {% if dumps %} + + {% trans "Main" %} + + {% endif %} +
{% block fullpage %} -
-
- {% block sidebar %}{% endblock sidebar %} -
-
- {% block content %}{% endblock content %} -
+
+ {% block sidebar %}{% endblock sidebar %} +
+
+ {% block content %}{% endblock content %} +
+
+ {% block offcanvas %} {% endblock offcanvas %}
- {% endblock fullpage %} - {% block modal %} - {% endblock modal %} +
+ {% endblock fullpage %} - {% block javascript %} - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - {% endblock javascript %} + }); + + {% endblock javascript %} diff --git a/orochi/templates/website/index.html b/orochi/templates/website/index.html index 2d5faea2..2dd6ae9e 100644 --- a/orochi/templates/website/index.html +++ b/orochi/templates/website/index.html @@ -11,7 +11,13 @@ {% endblock %} {% block sidebar %} - + {% include "website/partial_indices.html" %} +
+ +
+ +
{% endblock sidebar %} @@ -45,23 +52,21 @@