Skip to content

Commit

Permalink
Rollup merge of #101397 - notriddle:notriddle/source-nav-not-sidebar-…
Browse files Browse the repository at this point in the history
…sub, r=GuillaumeGomez

rustdoc: remove redundant mobile-sized `.source nav:not(.sidebar).sub`

It's redundant because there's already a selector `.source nav.sub` with exactly the same margin-left at [line 796].

[line 796]: https://github.com/rust-lang/rust/blob/84f0c3f79a85329dd79a54694ff8a7f427c842e9/src/librustdoc/html/static/css/rustdoc.css#L796

This selector was added in 1e98fb1, along with an identical desktop selector, but that desktop selector was removed in 6a5f8b1 as part of a larger simplification.
  • Loading branch information
matthiaskrgr authored Sep 4, 2022
2 parents 723f0c4 + 3e743a0 commit 43a7438
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -1883,10 +1883,6 @@ in storage.js plus the media query with (min-width: 701px)
background-color: var(--sidebar-background-color);
}

.source nav:not(.sidebar).sub {
margin-left: 32px;
}

.content {
margin-left: 0px;
}
Expand Down

0 comments on commit 43a7438

Please sign in to comment.