Skip to content

Commit 188bfbf

Browse files
committed
rollup merge of #20703: barosl/rustdoc-z-index-fallout
Due to the CSS changes done by the previous patch to make the line numbers clickable (#20092), the sidebar became unclickable. This PR reverts the changes and adopts an alternative approach. I'm very sorry for having broken things.
2 parents f257848 + 29ff43b commit 188bfbf

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)