Skip to content

fix: remove header/hero gap at specific lg widths#424

Open
vitormattos wants to merge 1 commit into
mainfrom
fix/header-hero-gap-specific-width
Open

fix: remove header/hero gap at specific lg widths#424
vitormattos wants to merge 1 commit into
mainfrom
fix/header-hero-gap-specific-width

Conversation

@vitormattos

@vitormattos vitormattos commented Jul 6, 2026

Copy link
Copy Markdown
Member

Summary

  • define a shared --ud-header-height CSS variable in header styles
  • set default header height to 76px and adjust to 72px on the lg breakpoint (992px-1199px)
  • use the shared variable for both hero top offset and collapsed navbar top offset

Why

At a specific intermediate desktop width, the fixed header height became 72px while the hero still used a hardcoded 76px top margin, creating a visible gap between the menu and hero.

Validation

  • verified geometry at affected and nearby widths:
    • 1062px: gap went from 4px to 0px
    • 1200px, 1400px, 900px: no regression (only subpixel rounding where expected)

Scope

  • source-only change in SCSS files:
    • source/_assets/scss/_header.scss
    • source/_assets/scss/_hero.scss
  • no direct/manual edits to build_* artifacts
🏚️ Before 🏡 After
image image

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@vitormattos vitormattos force-pushed the fix/header-hero-gap-specific-width branch from d8d4fac to 8a4c2b1 Compare July 6, 2026 18:13
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://libresign.github.io/site-preview/pr-preview/pr-424/

Built to branch main at 2026-07-06 18:17 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant