Skip to content

Commit af1313f

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

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
@@ -457,11 +457,26 @@ ol li:last-child {
457457
.sidebar,
458458
.header__product-selector,
459459
.header__sidebar__panel,
460+
.header__control--sidebar,
460461
.header__logo-small {
461462
display: none;
462463
}
463464
}
464465

466+
/* 404 Page Handling */
467+
.grid-container:has(.not-found-container) {
468+
grid-template-columns: 1fr;
469+
grid-template-areas:
470+
"header"
471+
"content"
472+
"footer";
473+
474+
.sidebar,
475+
.header__control--sidebar {
476+
display: none;
477+
}
478+
}
479+
465480
/* Search specific layout */
466481
.grid-container:has(.search) {
467482
grid-template-columns: 1fr;
@@ -470,7 +485,8 @@ ol li:last-child {
470485
"content"
471486
"footer";
472487

473-
.sidebar {
488+
.sidebar,
489+
.header__control--sidebar {
474490
display: none;
475491
}
476492
}

0 commit comments

Comments
 (0)