diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-12-15 16:43:13 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-15 16:43:13 +0100 |
| commit | 275599daa5ff115c85826861ba0114b4b3edf28a (patch) | |
| tree | ace6e8f258145257051d089f5dce128c2f67151f /src | |
| parent | 99baddb57c0a950c1af8d125dc470894ddf052a7 (diff) | |
| parent | 9b09dc05794faf13f580bc7cc57788dfa32e28de (diff) | |
| download | rust-275599daa5ff115c85826861ba0114b4b3edf28a.tar.gz rust-275599daa5ff115c85826861ba0114b4b3edf28a.zip | |
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:  After:  r? `@jyn514`
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustdoc/html/static/noscript.css | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/noscript.css b/src/librustdoc/html/static/noscript.css index 832bd9ba2d6..ffa1a7639ab 100644 --- a/src/librustdoc/html/static/noscript.css +++ b/src/librustdoc/html/static/noscript.css @@ -1,3 +1,9 @@ +/* +This whole CSS file is used only in case rustdoc is rendered with javascript disabled. Since a lot +of content is hidden by default (depending on the settings too), we have to overwrite some of the +rules. +*/ + #main > h2 + div, #main > h2 + h3, #main > h3 + div { display: block; } @@ -13,3 +19,7 @@ #main > h2 + h3 { display: flex; } + +#main .impl-items .hidden { + display: block !important; +} |
