projects
/
working
/
eg-antora.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee44a66
)
assign explicit height to navigation menu div
author
Dan Allen
<dan@opendevise.com>
Thu, 8 Feb 2018 03:07:15 +0000
(20:07 -0700)
committer
Dan Allen
<dan@opendevise.com>
Thu, 8 Feb 2018 03:07:15 +0000
(20:07 -0700)
src/css/navigation-menu.css
patch
|
blob
|
history
diff --git
a/src/css/navigation-menu.css
b/src/css/navigation-menu.css
index
ddcd2bb
..
2da0ac0
100644
(file)
--- a/
src/css/navigation-menu.css
+++ b/
src/css/navigation-menu.css
@@
-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;
}