Skip to content

Commit

Permalink
Auto merge of #64994 - GuillaumeGomez:fix-rustdoc-display-js-disabled…
Browse files Browse the repository at this point in the history
…, 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
  • Loading branch information
bors committed Oct 4, 2019
2 parents 9e35a28 + de961a7 commit 2e72448
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/librustdoc/html/static/noscript.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,11 @@
.loading-content {
display: none;
}

#main > h2 + div, #main > h3 + div {
display: block;
}

#main > h2 + h3 {
display: flex;
}

0 comments on commit 2e72448

Please sign in to comment.