Skip to content

Commit bc634ed

Browse files
author
Felix Hennig
committed
I think I fixed it
1 parent c8910b3 commit bc634ed

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

src/css/nav.css

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
font-size: calc(15.5 / var(--rem-base) * 1rem);
2020
flex: none;
2121
position: static;
22+
/* top: calc(var(--navbar-height) + var(--navbar-sub-height)); */
2223
top: 0;
24+
/* margin-top: var(--navbar-sub-height); */
2325
visibility: visible;
2426
}
2527
}
@@ -32,7 +34,7 @@
3234
background: var(--nav-background);
3335
position: relative;
3436
top: var(--toolbar-height);
35-
height: var(--nav-height);
37+
height: calc(100% - var(--navbar-sub-height));
3638
}
3739

3840
@media screen and (min-width: 769px) {
@@ -43,10 +45,11 @@
4345

4446
@media screen and (min-width: 1024px) {
4547
.nav {
46-
top: var(--navbar-height);
48+
top: calc(var(--navbar-height) + var(--navbar-sub-height));
4749
box-shadow: none;
4850
position: sticky;
49-
height: var(--nav-height--desktop);
51+
height: calc(100vh - var(--navbar-sub-height) - var(--navbar-height));
52+
margin-top: var(--navbar-sub-height);
5053
}
5154
}
5255

@@ -63,7 +66,7 @@ html.is-clipped--nav {
6366
.nav-panel-menu {
6467
overflow-y: scroll;
6568
overscroll-behavior: none;
66-
height: var(--nav-panel-menu-height);
69+
height: 100%;
6770
}
6871

6972
.nav-panel-menu:not(.is-active) .nav-menu {

src/css/toolbar.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
1212
z-index: var(--z-index-toolbar);
1313
}
1414

15+
@media screen and (min-width: 1024px) {
16+
.toolbar {
17+
top: calc(var(--navbar-height) + var(--navbar-sub-height));
18+
}
19+
}
20+
1521
.toolbar a {
1622
color: inherit;
1723
}

0 commit comments

Comments
 (0)