From 611d0e6ccef8b60fa86ff5aa8fe3571cd36c444a Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Mon, 4 Dec 2017 22:11:21 +0100 Subject: [PATCH] Improve search style --- src/librustdoc/html/static/rustdoc.css | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css index 679f5f6e3fd..f32252b726c 100644 --- a/src/librustdoc/html/static/rustdoc.css +++ b/src/librustdoc/html/static/rustdoc.css @@ -179,7 +179,6 @@ nav.sub { top: 0; height: 100vh; overflow: auto; - z-index: 1; } .sidebar .current { @@ -273,9 +272,19 @@ nav.sub { overflow: auto; padding-left: 0; } + #search { margin-left: 230px; + position: relative; +} + +#results { + position: absolute; + right: 0; + left: 0; + overflow: auto; } + .content pre.line-numbers { float: left; border: none; -- GitLab