Skip to content

Commit 8aec0d4

Browse files
committed
fix: correct main offset when using navbar overlay
Only clears top margin when the first section uses full cover.
1 parent c48a273 commit 8aec0d4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

assets/scss/common/_styles.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ div.rounded, img.rounded {
2828
--max-section-height: 1024px;
2929

3030
min-height: 100vh;
31+
margin-top: var(--navbar-height);
32+
}
33+
34+
main:has(> * > section:first-of-type.section-cover) {
3135
margin-top: var(--overlay-offset);
3236
}
3337

0 commit comments

Comments
 (0)