Skip to content

Commit 9b09dc0

Browse files
Show hidden elements by default when JS is disabled
1 parent 068320b commit 9b09dc0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/librustdoc/html/static/noscript.css

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
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+
17
#main > h2 + div, #main > h2 + h3, #main > h3 + div {
28
display: block;
39
}
@@ -13,3 +19,7 @@
1319
#main > h2 + h3 {
1420
display: flex;
1521
}
22+
23+
#main .impl-items .hidden {
24+
display: block !important;
25+
}

0 commit comments

Comments
 (0)