Skip to content

Commit 872c7b3

Browse files
authored
resolves #88 assign height to nav container in desktop view and configure nav to inherit height (PR #89)
1 parent 0b23ca5 commit 872c7b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/css/nav.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
font-size: calc(15.5 / var(--rem-base) * 1rem);
3434
flex: none;
3535
position: static;
36-
top: 0;
3736
visibility: visible;
37+
height: var(--nav-height--desktop);
3838
}
3939
}
4040

@@ -57,11 +57,11 @@
5757

5858
@media screen and (min-width: 1024px) {
5959
.nav {
60-
top: var(--navbar-height);
60+
top: var(--navbar-height); /* fixed position is relative to viewport */
6161
box-shadow: none;
6262
position: fixed;
63-
height: var(--nav-height--desktop);
6463
width: inherit;
64+
height: inherit;
6565
}
6666
}
6767

0 commit comments

Comments
 (0)