]> git.lizzy.rs Git - rust.git/commitdiff
Fix rustdoc fallout from #20092
authorBarosl Lee <vcs@barosl.com>
Wed, 7 Jan 2015 18:10:02 +0000 (03:10 +0900)
committerBarosl Lee <vcs@barosl.com>
Wed, 7 Jan 2015 18:10:02 +0000 (03:10 +0900)
Due to the CSS changes done by the previous patch to make the line
numbers clickable (#20092), the sidebar became unclickable. This commit
reverts the changes and adopts an alternative approach.

src/librustdoc/html/static/main.css

index a5a482541410938bcfbbad6ba50cc27d93170ba2..5951ac2bae71a3ea942da23b10cd6d45b462e7b4 100644 (file)
@@ -157,7 +157,6 @@ nav.sub {
     left: 0;
     top: 0;
     min-height: 100%;
-    z-index: -1;
 }
 
 .content, nav { max-width: 960px; }
@@ -221,6 +220,7 @@ nav.sub {
 .content pre.line-numbers {
     float: left;
     border: none;
+    position: relative;
 
     -webkit-user-select: none;
     -moz-user-select: none;