Skip to content

Commit

Permalink
Rollup merge of #101584 - notriddle:notriddle/settings-menu, r=Guilla…
Browse files Browse the repository at this point in the history
…umeGomez

rustdoc: remove no-op CSS `#settings-menu { padding: 0 }`

This CSS was added in 5e01ba3, and served to override CSS right above it that set a 5px padding for several kinds of buttons in the same toolbar:

https://github.com/rust-lang/rust/blob/5e01ba36c9f1037c4cf3e7421413fc6c41f85d05/src/librustdoc/html/static/css/rustdoc.css#L1400-L1409

The CSS that it overrode is still there, but now it only applies to `#settings-menu > a`, so there's nothing to override.

https://github.com/rust-lang/rust/blob/24d69920201563f0ee7b530f1cda0f171b205cc2/src/librustdoc/html/static/css/rustdoc.css#L1445-L1454
  • Loading branch information
compiler-errors authored Sep 8, 2022
2 parents b300123 + b9093f4 commit 7300e4d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -1444,9 +1444,7 @@ pre.rust {
border-radius: 2px;
cursor: pointer;
}
#settings-menu {
padding: 0;
}

#settings-menu > a, #help-button > button {
padding: 5px;
height: 100%;
Expand Down

0 comments on commit 7300e4d

Please sign in to comment.