Skip to content

Commit

Permalink
fix: move header height to styles, no longer dependent on lazy-loaded…
Browse files Browse the repository at this point in the history
… header block
  • Loading branch information
fkakatie committed Apr 15, 2024
1 parent 950cfa7 commit 3b59dc3
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,21 @@ body.header-visible main {
padding-top: var(--nav-height-mobile);
}

header {
height: var(--nav-height-mobile);
}

@media (min-width: 1200px) {
/* Add padding-top when Header Nav is visible */
body.header-visible main {
padding-top: var(--nav-height-desktop);
}

header {
height: var(--nav-height-desktop);
}
}

main {
margin: auto;
}
Expand Down Expand Up @@ -1872,11 +1887,6 @@ body.quick-links main .section > div {
letter-spacing: var(--letter-spacing-1);
}

/* Add padding-top when Header Nav is visible */
body.header-visible main {
padding-top: var(--nav-height-desktop);
}

/* Section Container */
main .section > div {
margin: 0 auto;
Expand Down

0 comments on commit 3b59dc3

Please sign in to comment.