From 2c279d6341edea49e5a56ac63fee562a8eedce7d Mon Sep 17 00:00:00 2001 From: Djamil Legato Date: Fri, 11 Mar 2016 10:44:36 -0800 Subject: [PATCH] Wrapped admin menu to a div --- themes/grav/scss/template/_admin.scss | 11 +- themes/grav/templates/partials/nav.html.twig | 102 ++++++++++--------- 2 files changed, 61 insertions(+), 52 deletions(-) diff --git a/themes/grav/scss/template/_admin.scss b/themes/grav/scss/template/_admin.scss index 8c11f3c6..076411da 100644 --- a/themes/grav/scss/template/_admin.scss +++ b/themes/grav/scss/template/_admin.scss @@ -314,13 +314,20 @@ $sidebar-padding: 2rem; } } +.admin-menu-wrapper { + height: calc(100vh - 180px); + overflow: hidden; + + @include breakpoint(mini-nav-range) { + height: calc(100vh - 136px); + } +} + #admin-menu { display: block; margin: 0; padding: 0; list-style: none; - overflow: hidden; - height: calc(100vh - 180px); em { font-style: normal; diff --git a/themes/grav/templates/partials/nav.html.twig b/themes/grav/templates/partials/nav.html.twig index 7d44ae47..e342bbbf 100644 --- a/themes/grav/templates/partials/nav.html.twig +++ b/themes/grav/templates/partials/nav.html.twig @@ -17,67 +17,69 @@ {#{% endif %}#} - +