]> git.lizzy.rs Git - rust.git/blob - src/librustdoc/html/static/noscript.css
rustdoc: remove explicit boolean comparisons.
[rust.git] / src / librustdoc / html / static / noscript.css
1 /*
2 This whole CSS file is used only in case rustdoc is rendered with javascript disabled. Since a lot
3 of content is hidden by default (depending on the settings too), we have to overwrite some of the
4 rules.
5 */
6
7 #main > h2 + div, #main > h2 + h3, #main > h3 + div {
8         display: block;
9 }
10
11 .loading-content {
12         display: none;
13 }
14
15 #main > h2 + div, #main > h3 + div {
16         display: block;
17 }
18
19 #main > h2 + h3 {
20         display: flex;
21 }
22
23 #main .impl-items .hidden {
24         display: block !important;
25 }
26
27 #main .impl-items h4.hidden {
28         /* Without this rule, the version and the "[src]" span aren't on the same line as the header. */
29         display: flex !important;
30 }
31
32 #main .attributes {
33         /* Since there is no toggle (the "[-]") when JS is disabled, no need for this margin either. */
34         margin-left: 0 !important;
35 }
36
37 #copy-path {
38         /* It requires JS to work so no need to display it in this case. */
39         display: none;
40 }