about summary refs log tree commit diff
path: root/src/librustdoc/html/static/css/noscript.css
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2021-07-07 14:27:54 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2021-07-07 17:52:18 +0200
commite5c24ba400b2744455868c2ac4292d8ee3b1b0be (patch)
tree4b807f806dc7bb5a57c268b2c5b29431701ed0e1 /src/librustdoc/html/static/css/noscript.css
parentc5e344f7747dbd7e7d4b209e3c480deb5979a56f (diff)
downloadrust-e5c24ba400b2744455868c2ac4292d8ee3b1b0be.tar.gz
rust-e5c24ba400b2744455868c2ac4292d8ee3b1b0be.zip
Clean up rustdoc static files
Diffstat (limited to 'src/librustdoc/html/static/css/noscript.css')
-rw-r--r--src/librustdoc/html/static/css/noscript.css15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/css/noscript.css b/src/librustdoc/html/static/css/noscript.css
new file mode 100644
index 00000000000..0a196edd53b
--- /dev/null
+++ b/src/librustdoc/html/static/css/noscript.css
@@ -0,0 +1,15 @@
+/*
+This whole CSS file is used only in case rustdoc is rendered with javascript disabled. Since a lot
+of content is hidden by default (depending on the settings too), we have to overwrite some of the
+rules.
+*/
+
+#main .attributes {
+	/* Since there is no toggle (the "[-]") when JS is disabled, no need for this margin either. */
+	margin-left: 0 !important;
+}
+
+#copy-path {
+	/* It requires JS to work so no need to display it in this case. */
+	display: none;
+}