summaryrefslogtreecommitdiffstats
path: root/src/librustdoc/html/static/css/noscript.css
blob: 54e8b6561f34f9c3e4cb0b7ba1706e3a3e352b57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
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-content .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;
}

nav.sub {
	/* The search bar and related controls don't work without JS */
	display: none;
}

.source .sidebar {
	display: none;
}

.notable-traits {
	/* layout requires javascript
	    https://github.com/rust-lang/rust/issues/102576 */
	display: none;
}