Skip to content

Commit

Permalink
Rollup merge of rust-lang#105309 - notriddle:notriddle/sidebar-margin…
Browse files Browse the repository at this point in the history
…-padding, r=GuillaumeGomez

rustdoc: remove no-op mobile CSS `.sidebar { margin: 0; padding: 0 }`

This isn't overriding anything, because the sidebar never has a margin or padding on it.
  • Loading branch information
matthiaskrgr authored Dec 5, 2022
2 parents fbf5d8e + 65072ee commit e8a29dd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -1660,8 +1660,6 @@ in storage.js
/* Hide the sidebar offscreen while not in use. Doing this instead of display: none means
the sidebar stays visible for screen readers, which is useful for navigation. */
left: -1000px;
margin: 0;
padding: 0;
z-index: 11;
/* Reduce height slightly to account for mobile topbar. */
height: calc(100vh - 45px);
Expand Down

0 comments on commit e8a29dd

Please sign in to comment.