Make main menu stick to top

This commit is contained in:
Luca 2023-03-12 20:34:30 +01:00
parent 66c692af84
commit 0bd29fdf4f
1 changed files with 11 additions and 12 deletions

View File

@ -31,15 +31,18 @@ body {
} }
header, footer { header, footer {
padding: 0 1rem; padding: 1rem;
} }
header { header {
align-items: center; align-items: center;
background: $color-background;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: space-between; justify-content: space-between;
margin-top: 1rem; position: sticky;
top: 0;
z-index: 1;
a img { a img {
display: block; display: block;
@ -89,7 +92,7 @@ header {
} }
main { main {
padding: 1rem; padding: 0 1rem;
& > :last-child { & > :last-child {
margin-bottom: 0 !important; margin-bottom: 0 !important;
@ -100,10 +103,7 @@ main {
} }
} }
footer { footer nav {
margin-bottom: 1rem;
nav {
align-items: end; align-items: end;
@media screen and (min-width: $small) { @media screen and (min-width: $small) {
@ -111,7 +111,6 @@ footer {
justify-content: end; justify-content: end;
} }
} }
}
nav { nav {
display: flex; display: flex;