Skip to content

Commit 59fe0f1

Browse files
authored
Show search box on 404 page (#29)
1 parent b768d47 commit 59fe0f1

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/css/custom.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,10 @@ html.plugin-id-legacy-policies .navbar-download-btn {
143143
}
144144
}
145145

146-
/* Hide search bar on non-docs pages */
147-
body .DocSearch-Button { display: none; }
148-
html.docs-doc-page:not(.plugin-id-legacy-policies) body .DocSearch-Button { display: flex; }
146+
/* Only show the search box on docs pages and not on the legacy policies section */
147+
html:not(.plugin-docs) .DocSearch-Button, html.plugin-id-legacy-policies .DocSearch-Button {
148+
display: none;
149+
}
149150

150151
/* DocSearch button styling */
151152
body .DocSearch-Button {

0 commit comments

Comments
 (0)