about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2025-01-24 15:36:38 +0100
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2025-01-24 15:36:38 +0100
commit530f8bb3dbf90ff1dd65e6ef59f717cd6de66b12 (patch)
tree6dcd507c71178e2d4d64562678ed3ee1dc4c4921 /src
parent9a1d156f38c51441ee51e5a068f1d0caf4bb0f27 (diff)
downloadrust-530f8bb3dbf90ff1dd65e6ef59f717cd6de66b12.tar.gz
rust-530f8bb3dbf90ff1dd65e6ef59f717cd6de66b12.zip
Fix indent of trait items on mobile
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/html/static/css/rustdoc.css10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css
index b994a43868c..a7b462936cc 100644
--- a/src/librustdoc/html/static/css/rustdoc.css
+++ b/src/librustdoc/html/static/css/rustdoc.css
@@ -2166,7 +2166,8 @@ details.toggle > summary:not(.hideme)::before {
 	top: 4px;
 }
 
-.impl-items > details.toggle > summary:not(.hideme)::before {
+.impl-items > details.toggle > summary:not(.hideme)::before,
+#main-content > .methods > details.toggle > summary:not(.hideme)::before {
 	position: absolute;
 	left: -24px;
 }
@@ -2176,7 +2177,9 @@ details.toggle > summary:not(.hideme)::before {
 .impl-items > *:not(.item-info),
 /* We also indent the first top doc comment the same to still keep an indent on the
 	doc block while aligning it with the impl block items. */
-.implementors-toggle > .docblock {
+.implementors-toggle > .docblock,
+/* We indent trait items as well. */
+#main-content > .methods > :not(.item-info) {
 	margin-left: var(--impl-items-indent);
 }
 
@@ -2508,7 +2511,8 @@ in src-script.js and main.js
 		margin-left: 10px;
 	}
 
-	.impl-items > details.toggle > summary:not(.hideme)::before {
+	.impl-items > details.toggle > summary:not(.hideme)::before,
+	#main-content > .methods > details.toggle > summary:not(.hideme)::before {
 		left: -20px;
 	}