Skip to content

Commit c92336b

Browse files
Merge pull request #116 from borgbackup/fix-mobile-navbar-overlap
index2.html: fix fixed navbar overlapping hero content on mobile
2 parents 8f9d219 + 8d735ab commit c92336b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

index2.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,10 @@
161161
align-items: center;
162162
justify-content: center;
163163
text-align: center;
164-
padding: 6rem 1.5rem 4rem;
164+
/* clear the fixed header: on mobile it wraps to several rows and grows
165+
well past 6rem, so offset by its measured height (--header-h, set in JS)
166+
to keep the logo/title from hiding behind it. Desktop keeps the 6rem look. */
167+
padding: max(6rem, calc(var(--header-h, 62px) + 1.5rem)) 1.5rem 4rem;
165168
}
166169

167170
.hero .logo svg {

0 commit comments

Comments
 (0)