Merge pull request 'fix(frontend): remove blank gap above nav on non-home pages' (#137) from worktree-fix-nav-fixed-blank-gap into main
Reviewed-on: CYL/wordpress-theme-aksrt#137
This commit is contained in:
commit
8041d91a7b
1 file changed
+18
@@ -3,6 +3,24 @@ body.nav-fixed {
|
|||||||
padding-top: var(--nav-height, 60px);
|
padding-top: var(--nav-height, 60px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Fixed nav without hero overlay: take header out of flow.
|
||||||
|
body.nav-fixed already reserves --nav-height via padding-top. */
|
||||||
|
body.nav-fixed .header:not(.show-slide) {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
width: 100%;
|
||||||
|
z-index: 1000;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Nav lives inside the fixed header — don't keep sticky (double offset). */
|
||||||
|
body.nav-fixed .header:not(.show-slide) .site-nav,
|
||||||
|
body.nav-fixed .header:not(.show-slide) .navbar.navbar-top {
|
||||||
|
position: relative;
|
||||||
|
top: auto;
|
||||||
|
}
|
||||||
|
|
||||||
/* Hero sits under transparent fixed/absolute header (zibll slide-header) */
|
/* Hero sits under transparent fixed/absolute header (zibll slide-header) */
|
||||||
body.nav-fixed .header-slider-container,
|
body.nav-fixed .header-slider-container,
|
||||||
body.nav-fixed .header-components-container,
|
body.nav-fixed .header-components-container,
|
||||||
|
|||||||
Reference in new issue
Block a user