diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-11-24 14:13:04 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-11-24 14:13:04 +0100 |
| commit | 9b09dc05794faf13f580bc7cc57788dfa32e28de (patch) | |
| tree | f8d0cd031ef196368f006299e3e853aab57f7285 /src/librustdoc/html/static/noscript.css | |
| parent | 068320b39e3e4839d832b3aa71fa910ba170673b (diff) | |
| download | rust-9b09dc05794faf13f580bc7cc57788dfa32e28de.tar.gz rust-9b09dc05794faf13f580bc7cc57788dfa32e28de.zip | |
Show hidden elements by default when JS is disabled
Diffstat (limited to 'src/librustdoc/html/static/noscript.css')
| -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; +} |
