Skip to content

Commit ce15514

Browse files
authored
Rollup merge of #102380 - notriddle:notriddle/rustdoc-source-sidebar, r=camelid
rustdoc: remove redundant mobile `.source > .sidebar` CSS When the source sidebar and standard sidebar had most of their code merged in 07e3f99, the properties `z-index: 11`, `margin: 0`, and `position: fixed` were already being set on the `.sidebar` class, so no need to repeat them. https://github.com/rust-lang/rust/blob/57ee5cf5a93923dae9c98bffb11545fc3a31368d/src/librustdoc/html/static/css/rustdoc.css#L1742-L1754
2 parents ae20288 + c0245b1 commit ce15514

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Diff for: src/librustdoc/html/static/css/rustdoc.css

-3
Original file line numberDiff line numberDiff line change
@@ -1776,9 +1776,6 @@ in storage.js plus the media query with (min-width: 701px)
17761776
}
17771777

17781778
.rustdoc.source > .sidebar {
1779-
position: fixed;
1780-
margin: 0;
1781-
z-index: 11;
17821779
width: 0;
17831780
}
17841781

0 commit comments

Comments
 (0)