about summary refs log tree commit diff
path: root/src/librustdoc/html
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-04-16 05:14:22 +0200
committerGitHub <noreply@github.com>2019-04-16 05:14:22 +0200
commit9014cfcee4717c6309044bea1831eb4f35f4cb8a (patch)
tree412155bfbfe12617829b85b1942f8d3908945b61 /src/librustdoc/html
parentbdf24732897e17120753244f76dceba04a027e7d (diff)
parent9e171937b64f513f7848593257364cd8495399d5 (diff)
downloadrust-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:
![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.
Diffstat (limited to 'src/librustdoc/html')
-rw-r--r--src/librustdoc/html/static/rustdoc.css3
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 {