diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-04-16 05:14:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-16 05:14:22 +0200 |
| commit | 9014cfcee4717c6309044bea1831eb4f35f4cb8a (patch) | |
| tree | 412155bfbfe12617829b85b1942f8d3908945b61 /src/librustdoc/html | |
| parent | bdf24732897e17120753244f76dceba04a027e7d (diff) | |
| parent | 9e171937b64f513f7848593257364cd8495399d5 (diff) | |
| download | rust-9014cfcee4717c6309044bea1831eb4f35f4cb8a.tar.gz rust-9014cfcee4717c6309044bea1831eb4f35f4cb8a.zip | |
Rollup merge of #59973 - Enity:fix-rustdoc-sidebar, r=GuillaumeGomez
Fix rustdoc sidebar z-index I think the screenshot will say everything:  live example: https://docs.rs/nom/4.2.3/nom/ I chose the smallest z-index to avoid problems with other blocks.
Diffstat (limited to 'src/librustdoc/html')
| -rw-r--r-- | src/librustdoc/html/static/rustdoc.css | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css index 2228e58b0d2..8cf70b9a995 100644 --- a/src/librustdoc/html/static/rustdoc.css +++ b/src/librustdoc/html/static/rustdoc.css @@ -166,6 +166,7 @@ nav.sub { top: 0; height: 100vh; overflow: auto; + z-index: 1; } .sidebar .block > ul > li { @@ -345,7 +346,7 @@ nav.sub { margin: 0; } .docblock-short code { - white-space: nowrap; + white-space: pre-wrap; } .docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 { |
