From 557ded0910ea267130b54f7fc07ec7be2ee870b8 Mon Sep 17 00:00:00 2001 From: Darshan Baral Date: Sat, 6 Jul 2019 19:31:28 -0700 Subject: Increased menu margin for small screen --- layouts/partials/header.html | 2 +- layouts/partials/menu/menu_sections.html | 4 ++-- static/css/khata.css | 30 +++++++++++++++++++----------- static/js/khata.js | 2 +- 4 files changed, 23 insertions(+), 15 deletions(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 92c3f66..9c399f4 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -21,7 +21,7 @@ if (x.matches) { allMenu.classList.add("d-none"); allMenu.style.flexDirection = "column"; - dropDown.style.width = "calc(100% - 5px)"; + dropDown.style.width = "calc(90vw - 5px)"; dropDown.style.maxHeight = "0px"; dropDown.style.position = "static"; } else { diff --git a/layouts/partials/menu/menu_sections.html b/layouts/partials/menu/menu_sections.html index 77143f8..01d86f7 100644 --- a/layouts/partials/menu/menu_sections.html +++ b/layouts/partials/menu/menu_sections.html @@ -5,8 +5,8 @@ {{ end }} {{ else }} -