Skip to content

Commit 2e72448

Browse files
committed
Auto merge of #64994 - GuillaumeGomez:fix-rustdoc-display-js-disabled, r=Mark-Simulacrum
Fix rustdoc display with js disabled Fixes #64988. Currently, all sections are collapsed when the page is loading, and then is displayed once done. However, if js is disabled, they never get expanded. Therefore, they need to be shown by default. r? @Mark-Simulacrum
2 parents 9e35a28 + de961a7 commit 2e72448

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/librustdoc/html/static/noscript.css

+8
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,11 @@
55
.loading-content {
66
display: none;
77
}
8+
9+
#main > h2 + div, #main > h3 + div {
10+
display: block;
11+
}
12+
13+
#main > h2 + h3 {
14+
display: flex;
15+
}

0 commit comments

Comments
 (0)