diff options
| author | bors <bors@rust-lang.org> | 2019-10-04 12:17:13 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-10-04 12:17:13 +0000 |
| commit | 2e7244807a7878f6eca3eb7d97ae9b413aa49014 (patch) | |
| tree | 6ea9a6b182816a2b05e5d82d64f03bee1208e938 | |
| parent | 9e35a2811d8c65e9473176b8656a3201b7e152c7 (diff) | |
| parent | de961a7e1200d8d352d19f72aa8090cfb97ee9e9 (diff) | |
| download | rust-2e7244807a7878f6eca3eb7d97ae9b413aa49014.tar.gz rust-2e7244807a7878f6eca3eb7d97ae9b413aa49014.zip | |
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
| -rw-r--r-- | src/librustdoc/html/static/noscript.css | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/noscript.css b/src/librustdoc/html/static/noscript.css index 4a434d49e4d..832bd9ba2d6 100644 --- a/src/librustdoc/html/static/noscript.css +++ b/src/librustdoc/html/static/noscript.css @@ -5,3 +5,11 @@ .loading-content { display: none; } + +#main > h2 + div, #main > h3 + div { + display: block; +} + +#main > h2 + h3 { + display: flex; +} |
