From a1b5d9b0df9b3a753060cb940debbf9564cfcf3b Mon Sep 17 00:00:00 2001 From: Anaïs Amato Date: Wed, 28 Apr 2021 11:48:24 +0200 Subject: [PATCH] Add responsive menu (sidebar with hamburger button) --- app/static/css/style.css | 8 ++++++++ app/templates/base_page.html | 17 +++++++---------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/app/static/css/style.css b/app/static/css/style.css index 5eb1b20..07eded6 100644 --- a/app/static/css/style.css +++ b/app/static/css/style.css @@ -80,3 +80,11 @@ nav.sidebar a.disabled { .dev2-icon { filter: hue-rotate(100deg) saturate(1000%); } + +/* Update the navbar for small screens. Replace bootstrap css for small screens only */ +@media (max-width: 600px) { + .sidebar { + position: static !important; + margin-top: 0px !important; + } +} diff --git a/app/templates/base_page.html b/app/templates/base_page.html index 9449d9a..e902ec3 100644 --- a/app/templates/base_page.html +++ b/app/templates/base_page.html @@ -12,7 +12,7 @@ {{config.PDC_APP_NAME}} - {{config.PDC_SITE_NAME}} -