about summary refs log tree commit diff
path: root/src/librustdoc/html/static/css/noscript.css
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-07-08 04:05:41 +0000
committerbors <bors@rust-lang.org>2021-07-08 04:05:41 +0000
commitac8c3bfffb2829d0af075a5d4020fb7e9e86c3a2 (patch)
tree7ed177e41caaf762288a5e899f18a027fa12e320 /src/librustdoc/html/static/css/noscript.css
parentd2b04f075c0ce010758c4c8674152ff89d1d73f3 (diff)
parent01474ad92cc025ac7e16a9d70c76c2d030d414d7 (diff)
downloadrust-ac8c3bfffb2829d0af075a5d4020fb7e9e86c3a2.tar.gz
rust-ac8c3bfffb2829d0af075a5d4020fb7e9e86c3a2.zip
Auto merge of #86966 - JohnTitor:rollup-uiqj2vc, r=JohnTitor
Rollup of 9 pull requests

Successful merges:

 - #86639 (Support lint tool names in rustc command line options)
 - #86812 (Recover from `&dyn mut ...` parse errors)
 - #86917 (Add doc comment for `impl From<LayoutError> for TryReserveError`)
 - #86925 (Add self to mailmap)
 - #86927 (Sync rustc_codegen_cranelift)
 - #86932 (Fix ICE when misplaced visibility cannot be properly parsed)
 - #86933 (Clean up rustdoc static files)
 - #86955 (Fix typo in `ops::Drop` docs)
 - #86956 (Revert "Add "every" as a doc alias for "all".")

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
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;
+}