about summary refs log tree commit diff
path: root/src/librustdoc/html/static/css/noscript.css
diff options
context:
space:
mode:
authorJacob Hoffman-Andrews <github@hoffman-andrews.com>2021-10-26 18:50:07 -0700
committerJacob Hoffman-Andrews <github@hoffman-andrews.com>2021-10-31 12:41:06 -0700
commita4fe76ff7cd66d4cad19c0f32a5d3c9efd1d4a60 (patch)
treeabd85926c8bc94a93309b740abadbd58d7b1a6e8 /src/librustdoc/html/static/css/noscript.css
parentc7e4740ec18996e082fe6e29ebf7efdc7dda418f (diff)
downloadrust-a4fe76ff7cd66d4cad19c0f32a5d3c9efd1d4a60.tar.gz
rust-a4fe76ff7cd66d4cad19c0f32a5d3c9efd1d4a60.zip
Hide search bar in noscript.css
Also, remove the highlighting of the search bar in disabled state. This
reduces flicker when loading a page.
Diffstat (limited to 'src/librustdoc/html/static/css/noscript.css')
-rw-r--r--src/librustdoc/html/static/css/noscript.css9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/css/noscript.css b/src/librustdoc/html/static/css/noscript.css
index 0a196edd53b..37ea7b00033 100644
--- a/src/librustdoc/html/static/css/noscript.css
+++ b/src/librustdoc/html/static/css/noscript.css
@@ -13,3 +13,12 @@ rules.
 	/* It requires JS to work so no need to display it in this case. */
 	display: none;
 }
+
+.sub {
+	/* The search bar and related controls don't work without JS */
+	display: none;
+}
+
+#theme-picker {
+	display: none;
+}