Sticky all nav
This commit is contained in:
parent
c912343442
commit
9fd41851bc
1 changed files with 6 additions and 3 deletions
|
@ -74,7 +74,11 @@ main {
|
||||||
nav {
|
nav {
|
||||||
grid-column: 1;
|
grid-column: 1;
|
||||||
grid-row: 1;
|
grid-row: 1;
|
||||||
min-height: 100vh;
|
|
||||||
|
height: 100vh;
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
|
||||||
padding: 2rem;
|
padding: 2rem;
|
||||||
background: var(--bg-01);
|
background: var(--bg-01);
|
||||||
line-height: 2rem;
|
line-height: 2rem;
|
||||||
|
@ -90,8 +94,7 @@ nav h1 img {
|
||||||
nav ul {
|
nav ul {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
position: sticky;
|
position: relative;
|
||||||
top: 2rem;
|
|
||||||
}
|
}
|
||||||
nav .skip-link {
|
nav .skip-link {
|
||||||
opacity: .1;
|
opacity: .1;
|
||||||
|
|
Loading…
Reference in a new issue