From 8c3df067c40d50e8bf6b8c1dd89c163ce03022f9 Mon Sep 17 00:00:00 2001 From: Yoann Pietri Date: Mon, 16 Nov 2020 19:12:36 +0100 Subject: [PATCH] Add right sidebar for large screenn, remove scroll in navbar, add scroll in left sidebar --- static/css/base.css | 7 +++++++ templates/base.html | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/static/css/base.css b/static/css/base.css index 14032f4e..0e90f8bd 100644 --- a/static/css/base.css +++ b/static/css/base.css @@ -1,3 +1,6 @@ +.navbar-collapse { + overflow-x: hidden; +} /* For the footer to be at the bottom*/ body { padding-top: 50px; @@ -84,11 +87,15 @@ a > i.fa { position: fixed; top:50px; right:0; + overflow-y: auto; + bottom:0px; } .sidenav-left { position: fixed; top:50px; left:0; + overflow-y: auto; + bottom:0px; } .dropdown-menu .dropdown-toggle:after { border-top: .3em solid transparent; diff --git a/templates/base.html b/templates/base.html index d8a2f87b..74d1bb29 100644 --- a/templates/base.html +++ b/templates/base.html @@ -85,11 +85,13 @@ with this program; if not, write to the Free Software Foundation, Inc., {% block sidebar %} {% endblock %} -
+
{# Display django.contrib.messages as Bootstrap alerts #} {% bootstrap_messages %} {% block content %}{% endblock %}
+
+