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 {
|
||||
grid-column: 1;
|
||||
grid-row: 1;
|
||||
min-height: 100vh;
|
||||
|
||||
height: 100vh;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
|
||||
padding: 2rem;
|
||||
background: var(--bg-01);
|
||||
line-height: 2rem;
|
||||
|
@ -90,8 +94,7 @@ nav h1 img {
|
|||
nav ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
position: sticky;
|
||||
top: 2rem;
|
||||
position: relative;
|
||||
}
|
||||
nav .skip-link {
|
||||
opacity: .1;
|
||||
|
|
Loading…
Reference in a new issue