diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2021-03-09 21:02:56 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2021-03-09 21:40:04 +0100 |
| commit | 3d9aceb2381e6c8c7066f7477bf407d00239e07c (patch) | |
| tree | 6ae814ee64fd74a25f70ddae05bda7292812fc16 /src/librustdoc/html/static/noscript.css | |
| parent | 4b9f5cc4c10a161047475cb9bbe02c4fda57fb07 (diff) | |
| download | rust-3d9aceb2381e6c8c7066f7477bf407d00239e07c.tar.gz rust-3d9aceb2381e6c8c7066f7477bf407d00239e07c.zip | |
Fix CSS issues when javascript 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 ffa1a7639ab..c9fed989ec0 100644 --- a/src/librustdoc/html/static/noscript.css +++ b/src/librustdoc/html/static/noscript.css @@ -23,3 +23,13 @@ rules. #main .impl-items .hidden { display: block !important; } + +#main .impl-items h4.hidden { + /* Without this rule, the version and the "[src]" span aren't on the same line as the header. */ + display: flex !important; +} + +#main .attributes { + /* Since there is no toggle (the "[-]") when JS is disabled, no need for this margin either. */ + margin-left: 0 !important; +} |
