about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-01-20 21:33:24 -0500
committerGitHub <noreply@github.com>2023-01-20 21:33:24 -0500
commit34d4df5bd5e6efccbcf7b191ac5c7ed2e8ae67cd (patch)
tree692147c003bcc60e957f3c3f0d21ca9575122d8b
parenta4f0126bfa943bf946f3130a606d56141e245fa7 (diff)
parent112d85c1ec8d5294ece4850bec306df4a2ed6dab (diff)
downloadrust-34d4df5bd5e6efccbcf7b191ac5c7ed2e8ae67cd.tar.gz
rust-34d4df5bd5e6efccbcf7b191ac5c7ed2e8ae67cd.zip
Rollup merge of #107131 - notriddle:notriddle/rustdoc-radio-display-inline-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
-rw-r--r--src/librustdoc/html/static/css/settings.css7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/librustdoc/html/static/css/settings.css b/src/librustdoc/html/static/css/settings.css
index 7211ffb7795..4e9803fe236 100644
--- a/src/librustdoc/html/static/css/settings.css
+++ b/src/librustdoc/html/static/css/settings.css
@@ -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;
@@ -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;
 }