Skip to content

Commit

Permalink
Rollup merge of #102380 - notriddle:notriddle/rustdoc-source-sidebar,…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
JohnTitor authored Sep 28, 2022
2 parents ae20288 + c0245b1 commit ce15514
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -1776,9 +1776,6 @@ in storage.js plus the media query with (min-width: 701px)
}

.rustdoc.source > .sidebar {
position: fixed;
margin: 0;
z-index: 11;
width: 0;
}

Expand Down

0 comments on commit ce15514

Please sign in to comment.