Skip to content

Commit

Permalink
Moves up header @supports rule
Browse files Browse the repository at this point in the history
  • Loading branch information
helenclx committed Jul 24, 2024
1 parent 4fe6287 commit 6d537ce
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/_includes/global/header.njk
Original file line number Diff line number Diff line change
Expand Up @@ -129,20 +129,22 @@
outline-offset: 0.1em;
}

/* For larger screen sizes */
@media (min-width: 640px) {
.header__title { margin-bottom: 0; }
}

@supports selector([popover]) {
.header__toggle { display: flex; }
.header__links { display: none; }
.header__navmenu { margin: 0; }
.header { position: sticky; }
}

/* For larger screen sizes */
@media (min-width: 640px) {
.header__title { margin-bottom: 0; }
}

/* Tablet screen size */
@media only screen and (min-width: 43.75rem) {
.header { position: sticky; }
.header__navmenu { margin: 0; }
.header__toggle, .header__popover { display: none; }
.header__links { display: flex; }
}
Expand Down

0 comments on commit 6d537ce

Please sign in to comment.