Skip to content

Commit 275599d

Browse files
Rollup merge of #79379 - GuillaumeGomez:no-js-not-hidden, r=Nemo157
Show hidden elements by default when JS is disabled Fixes #79301. A lot of things are hidden by default which shouldn't when JS is disabled. This PR fixes it. Before: ![Screenshot from 2020-11-24 14-10-16](https://user-images.githubusercontent.com/3050060/100099361-a16d5580-2e5f-11eb-891b-a4c005aeb1d0.png) After: ![after](https://user-images.githubusercontent.com/3050060/100099382-a6caa000-2e5f-11eb-8190-14f330aff9a2.png) r? `@jyn514`
2 parents 99baddb + 9b09dc0 commit 275599d

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)