Wire settings-driven sidebar visibility and body site-layout classes, replace content-layout CSS grid with Zibll float geometry, move sidebar DOM to content-wrap sibling across single/archive/page/home, and add post meta show_layout overrides.
38 lines
1.1 KiB
CSS
38 lines
1.1 KiB
CSS
/* Single page shell — relies on body.site-layout-1/2/3 float dual-column
|
|
* defined in layout.css (Zibll 1:1). Page-owned overrides stay minimal. */
|
|
|
|
/* Single article stack lives inside .content-layout as direct children;
|
|
* do not re-enable the legacy primary/aside grid here. */
|
|
body.single main.container .content-layout {
|
|
display: block;
|
|
min-width: 0;
|
|
}
|
|
|
|
body.single main.container .content-layout > * {
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
}
|
|
|
|
/* Breadcrumb sits under fixed header (body.nav-fixed already pads top). */
|
|
body.single main.container .content-layout > .breadcrumb,
|
|
body.single main.container .content-layout > ul.breadcrumb,
|
|
body.single main.container .content-layout > .breadcrumb-nav,
|
|
body.single main.container .content-layout > .breadcrumbs-wrap {
|
|
position: relative;
|
|
z-index: 1;
|
|
margin-top: 0;
|
|
margin-bottom: 12px;
|
|
padding-top: 2px;
|
|
}
|
|
|
|
/* Sticky TOC widget in sidebar */
|
|
body.single .sidebar .posts-nav-box.toc-widget {
|
|
position: sticky;
|
|
top: calc(var(--nav-height, 60px) + 16px);
|
|
}
|
|
|
|
body.single .sidebar .zib-widget,
|
|
body.single .sidebar .widget {
|
|
margin-bottom: 15px;
|
|
}
|