Skip to content

Commit

Permalink
Rollup merge of #107131 - notriddle:notriddle/rustdoc-radio-display-i…
Browse files Browse the repository at this point in the history
…nline-flex, r=GuillaumeGomez

rustdoc: use CSS inline layout for radio line instead of flexbox

This uses less code to lay them out the same way. Already tested here:

https://github.com/rust-lang/rust/blob/5ce39f42bd2c8bca9c570f0560ebe1fce4eddb14/tests/rustdoc-gui/settings.goml#L123
  • Loading branch information
matthiaskrgr authored Jan 20, 2023
2 parents 2d2e629 + 112d85c commit 4a914c6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/librustdoc/html/static/css/settings.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@
position: relative;
}

.setting-line .choices {
display: flex;
flex-wrap: wrap;
}

.setting-line .radio-line input,
.setting-line .settings-toggle input {
margin-right: 0.3em;
Expand Down Expand Up @@ -38,7 +33,7 @@
margin-bottom: 0.1em;
min-width: 3.8em;
padding: 0.3em;
display: flex;
display: inline-flex;
align-items: center;
cursor: pointer;
}
Expand Down

0 comments on commit 4a914c6

Please sign in to comment.