no-sidebar: hide the sidebar column on pages without one
A page without a sidebar (a login page) sets BodyAttrs to class="no-sidebar"; the layout always renders the sidebar column, so style.css now hides it and gives <main> the full width. yaiam-web had the rule in its own stylesheet, so yaiam-authd's login pages, which only load this one, showed an empty column. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e4f88485f2
commit
8774ef62ce
2 files changed
+18
-2
No files matched your search
@@ -508,6 +508,19 @@ a.navbar-subtitle:hover {
|
||||
border-left: 2px solid var(--yw-accent);
|
||||
}
|
||||
|
||||
/* A page without a sidebar (a login page): BodyAttrs ` class="no-sidebar"`.
|
||||
The layout always renders the sidebar column; this hides it and gives
|
||||
<main> the full width. !important: Bootstrap's d-md-block, column and
|
||||
ms-sm-auto classes on those elements are !important or more specific. */
|
||||
body.no-sidebar .sidebar {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
body.no-sidebar main {
|
||||
width: 100% !important;
|
||||
margin-left: 0 !important;
|
||||
}
|
||||
|
||||
/* --- Alerts (flash banners) ---------------------------------------- */
|
||||
.alert-success { background: var(--yw-success-bg); border-color: var(--yw-success-border); color: var(--yw-success-text); }
|
||||
.alert-danger { background: var(--yw-danger-bg); border-color: var(--yw-danger-border); color: var(--yw-danger-text); }
|
||||
|
||||
Reference in new issue
Block a user