diff options
author | Darshan Baral <darshanbaral@gmail.com> | 2019-07-07 05:31:28 +0300 |
---|---|---|
committer | Darshan Baral <darshanbaral@gmail.com> | 2019-07-07 05:31:28 +0300 |
commit | 557ded0910ea267130b54f7fc07ec7be2ee870b8 (patch) | |
tree | 990c19afb53e649ce33cf62605e7533eacd7de4e /layouts | |
parent | f2c1460b458866d5898fc3bac7ebc7c4b71c752b (diff) |
Increased menu margin for small screen
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/header.html | 2 | ||||
-rw-r--r-- | layouts/partials/menu/menu_sections.html | 4 |
2 files changed, 3 insertions, 3 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 }} </div> {{ else }} -<div class="dropdown"> - <span class="dropbtn main-menu" onclick="toggleHeight(this.nextElementSibling)"> +<div class="dropdown main-menu"> + <span class="dropbtn" onclick="toggleHeight(this.nextElementSibling)"> Sections <i class="fas fa-chevron-down"></i> </span> <div class="dropdown-content"> |