fix(frontend): stop single sidebar float overlap under fixed nav

Replace the fragile content-wrap float + negative-margin sidebar with a
main.container grid, add fixed-nav top breathing room so the breadcrumb
stays below the header, and mark the aside as content-layout__aside.
This commit is contained in:
2026-07-15 00:03:15 +08:00
parent 8041d91a7b
commit 4d2dba47f9
3 changed files with 82 additions and 36 deletions
+10
View File
@@ -21,6 +21,16 @@ body.nav-fixed .header:not(.show-slide) .navbar.navbar-top {
top: auto;
}
/*
* Non-home pages have no hero under the fixed header. Keep the first content
* (breadcrumb / article) clearly below the bar even if a fluid widget zone is
* empty or a child uses negative margin.
*/
body.nav-fixed:not(:has(.header.show-slide)) .fluid-widget-wrap:first-of-type:empty + main.container,
body.nav-fixed:not(:has(.header.show-slide)) main.container:first-of-type {
scroll-margin-top: calc(var(--nav-height, 60px) + 8px);
}
/* Hero sits under transparent fixed/absolute header (zibll slide-header) */
body.nav-fixed .header-slider-container,
body.nav-fixed .header-components-container,