Skip to content

Commit 548d47b

Browse files
committed
Header: Hide sidebar controls on pages without a sidebar
Applies to 404, search, and homepage
1 parent ffbd32c commit 548d47b

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

assets/css/v2/style.css

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,11 +464,26 @@ ol li:last-child {
464464
.sidebar,
465465
.header__product-selector,
466466
.header__sidebar__panel,
467+
.header__control--sidebar,
467468
.header__logo-small {
468469
display: none;
469470
}
470471
}
471472

473+
/* 404 Page Handling */
474+
.grid-container:has(.not-found-container) {
475+
grid-template-columns: 1fr;
476+
grid-template-areas:
477+
"header"
478+
"content"
479+
"footer";
480+
481+
.sidebar,
482+
.header__control--sidebar {
483+
display: none;
484+
}
485+
}
486+
472487
/* Search specific layout */
473488
.grid-container:has(.search) {
474489
grid-template-columns: 1fr;
@@ -477,7 +492,8 @@ ol li:last-child {
477492
"content"
478493
"footer";
479494

480-
.sidebar {
495+
.sidebar,
496+
.header__control--sidebar {
481497
display: none;
482498
}
483499
}

0 commit comments

Comments
 (0)