don't use flexbox for nav menu; style top of sibling list instead of bottom
authorDan Allen <dan@opendevise.com>
Fri, 25 Dec 2020 02:41:24 +0000 (19:41 -0700)
committerDan Allen <dan@opendevise.com>
Fri, 25 Dec 2020 02:41:24 +0000 (19:41 -0700)
src/css/nav.css

index bf837d0..33471c1 100644 (file)
@@ -62,8 +62,6 @@ html.is-clipped--nav {
 
 .nav-panel-menu {
   overflow-y: scroll;
-  display: flex;
-  flex-direction: column;
   height: var(--nav-panel-height);
 }
 
@@ -89,9 +87,7 @@ html.is-clipped--nav {
 }
 
 .nav-menu {
-  flex-grow: 1;
-  min-height: 0;
-  width: 100%;
+  min-height: 100%;
   padding: 0.5rem 0.75rem;
   line-height: var(--nav-line-height);
   position: relative;
@@ -114,8 +110,8 @@ html.is-clipped--nav {
   padding: 0;
 }
 
-.nav-menu > .nav-list {
-  margin-bottom: 0.5rem;
+.nav-menu > .nav-list + .nav-list {
+  margin-top: 0.5rem;
 }
 
 .nav-item {