Skip to content

Commit 3f84092

Browse files
authored
Rollup merge of rust-lang#102203 - notriddle:notriddle/source-sidebar, r=GuillaumeGomez
rustdoc: remove no-op CSS `#source-sidebar { z-index }` This rule became redundant in 07e3f99. When `#source-sidebar` became nested below `.sidebar`, it went from being `position: fixed` to `position: static`, and according to MDN's [z-index] documentation, this means it has no effect. [z-index]: https://developer.mozilla.org/en-US/docs/Web/CSS/z-index
2 parents e556f44 + f570d31 commit 3f84092

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/librustdoc/html/static/css/rustdoc.css

-5
Original file line numberDiff line numberDiff line change
@@ -1412,7 +1412,6 @@ pre.rust {
14121412
}
14131413
#source-sidebar {
14141414
width: 100%;
1415-
z-index: 1;
14161415
overflow: auto;
14171416
}
14181417
#source-sidebar > .title {
@@ -1918,10 +1917,6 @@ in storage.js plus the media query with (min-width: 701px)
19181917
border-bottom: 1px solid;
19191918
}
19201919

1921-
#source-sidebar {
1922-
z-index: 11;
1923-
}
1924-
19251920
#main-content > .line-numbers {
19261921
margin-top: 0;
19271922
}

0 commit comments

Comments
 (0)