Skip to content

Commit 9014cfc

Browse files
authored
Rollup merge of #59973 - Enity:fix-rustdoc-sidebar, r=GuillaumeGomez
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.
2 parents bdf2473 + 9e17193 commit 9014cfc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustdoc/html/static/rustdoc.css

+2-1
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ nav.sub {
166166
top: 0;
167167
height: 100vh;
168168
overflow: auto;
169+
z-index: 1;
169170
}
170171

171172
.sidebar .block > ul > li {
@@ -345,7 +346,7 @@ nav.sub {
345346
margin: 0;
346347
}
347348
.docblock-short code {
348-
white-space: nowrap;
349+
white-space: pre-wrap;
349350
}
350351

351352
.docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {

0 commit comments

Comments
 (0)