assign explicit height to navigation menu div
authorDan Allen <dan@opendevise.com>
Thu, 8 Feb 2018 03:07:15 +0000 (20:07 -0700)
committerDan Allen <dan@opendevise.com>
Thu, 8 Feb 2018 03:07:15 +0000 (20:07 -0700)
src/css/navigation-menu.css

index ddcd2bb..2da0ac0 100644 (file)
@@ -9,6 +9,17 @@ html.is-clipped--nav {
   flex-direction: column;
 }
 
+/* help Chrome calculate the height correctly; must match .navigation value minus height of drawer */
+.navigation-menu {
+  height: calc(100vh - var(--navbar-height) - var(--toolbar-height) - var(--drawer-height));
+}
+
+@media (min-width: 1024px) {
+  .navigation-menu {
+    height: calc(100vh - var(--navbar-height) - var(--drawer-height));
+  }
+}
+
 .navigation-menu:not(.is-active) {
   display: none;
 }