Skip to content

Commit 29ff43b

Browse files
committed
Fix rustdoc fallout from #20092
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.
1 parent 2a8cb67 commit 29ff43b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/static/main.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ nav.sub {
157157
left: 0;
158158
top: 0;
159159
min-height: 100%;
160-
z-index: -1;
161160
}
162161

163162
.content, nav { max-width: 960px; }
@@ -221,6 +220,7 @@ nav.sub {
221220
.content pre.line-numbers {
222221
float: left;
223222
border: none;
223+
position: relative;
224224

225225
-webkit-user-select: none;
226226
-moz-user-select: none;

0 commit comments

Comments
 (0)