Sticky all nav

This commit is contained in:
Edgar P. Burkhart 2023-04-18 14:06:56 +02:00
parent c912343442
commit 9fd41851bc
Signed by: edpibu
GPG Key ID: 9833D3C5A25BD227
1 changed files with 6 additions and 3 deletions

View File

@ -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;