From d27625f602d8def792a2001a34b06197b4b1216e Mon Sep 17 00:00:00 2001 From: Christoph Bartschat Date: Mon, 27 Apr 2026 17:43:47 -0700 Subject: [PATCH] Show search box on 404 page --- src/css/custom.css | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/css/custom.css b/src/css/custom.css index a710be6..dc6c8e9 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -143,9 +143,10 @@ html.plugin-id-legacy-policies .navbar-download-btn { } } -/* Hide search bar on non-docs pages */ -body .DocSearch-Button { display: none; } -html.docs-doc-page:not(.plugin-id-legacy-policies) body .DocSearch-Button { display: flex; } +/* Only show the search box on docs pages and not on the legacy policies section */ +html:not(.plugin-docs) .DocSearch-Button, html.plugin-id-legacy-policies .DocSearch-Button { + display: none; +} /* DocSearch button styling */ body .DocSearch-Button {