diff options
| author | bors <bors@rust-lang.org> | 2021-07-16 09:28:22 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-07-16 09:28:22 +0000 |
| commit | 59d92bd0173fb0436b93aa56ff2cb288d4717701 (patch) | |
| tree | 1f19cd5b098ae6b371eba0ae3d8e791fa45b13d8 /src/librustdoc/html/static/css/rustdoc.css | |
| parent | a6470c7fa8a511cfbcf9e9d3e1ab6779ac661edb (diff) | |
| parent | b19f37ca54709761948e3eaea3f86f5cd823e9d2 (diff) | |
| download | rust-59d92bd0173fb0436b93aa56ff2cb288d4717701.tar.gz rust-59d92bd0173fb0436b93aa56ff2cb288d4717701.zip | |
Auto merge of #87182 - GuillaumeGomez:rollup-whwohua, r=GuillaumeGomez
Rollup of 7 pull requests Successful merges: - #86983 (Add or improve natvis definitions for common standard library types) - #87069 (ExprUseVisitor: Treat ByValue use of Copy types as ImmBorrow) - #87138 (Correct invariant documentation for `steps_between`) - #87145 (Make --cap-lints and related options leave crate hash alone) - #87161 (RFC2229: Use the correct place type) - #87162 (Fix type decl layout "overflow") - #87167 (Fix sidebar display on small devices) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'src/librustdoc/html/static/css/rustdoc.css')
| -rw-r--r-- | src/librustdoc/html/static/css/rustdoc.css | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index 208e8f723f4..89dbc4d825f 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -247,6 +247,9 @@ code, pre, a.test-arrow { pre { padding: 14px; } +.type-decl pre { + overflow-x: auto; +} .source .content pre { padding: 20px; @@ -1631,15 +1634,18 @@ details.undocumented[open] > summary::before { display: none; } + /* We do NOT hide this element so that alternative device readers still have this information + available. */ .sidebar-elems { position: fixed; z-index: 1; - left: 0; top: 45px; bottom: 0; + width: 246px; + /* We move the sidebar to the left by its own width so it doesn't appear. */ + left: -246px; overflow-y: auto; border-right: 1px solid; - display: none; } .sidebar > .block.version { @@ -1727,8 +1733,7 @@ details.undocumented[open] > summary::before { } .show-it { - display: block; - width: 246px; + left: 0; } .show-it > .block.items { |
