about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-04-03 07:39:07 +0200
committerGitHub <noreply@github.com>2025-04-03 07:39:07 +0200
commitb5d5b6cd41dcf3495f9936bb6ce14a1922b513c1 (patch)
treee052d13f73d830027fec79edd879885a6087b44b
parent184e4baf1bbd968e58b6df38329a89c7f6a52c00 (diff)
parent33c1ff057983e1b32b7fe9b2eaf0253ddf9bef04 (diff)
downloadrust-b5d5b6cd41dcf3495f9936bb6ce14a1922b513c1.tar.gz
rust-b5d5b6cd41dcf3495f9936bb6ce14a1922b513c1.zip
Rollup merge of #139282 - lolbinarycat:rustdoc-settings-checkbox-noshrink, r=notriddle
rustdoc: make settings checkboxes always square

Previously, checkboxes would flex horizontally on small screens:
![Screenshot 2025-04-02 at 15-45-13 std - Rust](https://github.com/user-attachments/assets/405dc764-3c04-4ba4-b86c-19e9d4fc0bff)

this simple css tweak fixes this.
-rw-r--r--src/librustdoc/html/static/css/rustdoc.css3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css
index 0ea4d8f1e39..aa8df35258d 100644
--- a/src/librustdoc/html/static/css/rustdoc.css
+++ b/src/librustdoc/html/static/css/rustdoc.css
@@ -1446,6 +1446,9 @@ so that we can apply CSS-filters to change the arrow color in themes */
 	align-items: center;
 	cursor: pointer;
 }
+.setting-check input {
+	flex-shrink: 0,
+}
 
 .setting-radio input:checked {
 	box-shadow: inset 0 0 0 3px var(--main-background-color);