Skip to content

Commit

Permalink
Rollup merge of rust-lang#59973 - Enity:fix-rustdoc-sidebar, r=Guilla…
Browse files Browse the repository at this point in the history
…umeGomez

Fix rustdoc sidebar z-index

I think the screenshot will say everything:
![image](https://user-images.githubusercontent.com/2884517/56098429-37fa3680-5f09-11e9-8c54-4e2548aa0818.png)

live example: https://docs.rs/nom/4.2.3/nom/

I chose the smallest z-index to avoid problems with other blocks.
  • Loading branch information
Centril authored Apr 16, 2019
2 parents bdf2473 + 9e17193 commit 9014cfc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/librustdoc/html/static/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ nav.sub {
top: 0;
height: 100vh;
overflow: auto;
z-index: 1;
}

.sidebar .block > ul > li {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 9014cfc

Please sign in to comment.