fix(header): stop homepage-only pull of header-slider-container

Align nav-fixed geometry with zibll: only .slide-header pulls under the bar; restore card container gutters so home overlay cards match other page types.
This commit is contained in:
2026-07-24 11:32:31 +08:00
parent a25feb4161
commit b8d6f70af3
4 changed files with 105 additions and 26 deletions
@@ -11,15 +11,15 @@
}
}
/* CMS freeform modules only: hero as first module under nav.
* Prefer --nav-fixed-reserve when body.nav-fixed is present so the pull-up
* matches body padding-top (88/72/60), not just the 60px bar height. */
/* CMS freeform: do NOT pull the whole container — nav pull is only on .slide-header
* (zibll body.nav-fixed .slide-header). Whole-container pull made homepage cards
* differ from other page types that share the same component. */
.home-modules > .header-components-container:first-child,
.home-modules--fullbleed > .header-components-container:first-child {
margin-top: calc(var(--nav-fixed-reserve, var(--nav-height, 60px)) * -1);
margin-top: 0;
}
/* Fixed homepage hero under-nav is owned by nav/base.css (body.nav-fixed). */
/* Fixed homepage hero under-nav is owned by nav/zib-navbar-fixed.css (body.nav-fixed .slide-header). */
/* ============================================================
* Layer 1: Swiper shell — zibll .new-swiper.slide-header