Skip to content

Commit 530f8bb

Browse files
Fix indent of trait items on mobile
1 parent 9a1d156 commit 530f8bb

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Diff for: src/librustdoc/html/static/css/rustdoc.css

+7-3
Original file line numberDiff line numberDiff line change
@@ -2166,7 +2166,8 @@ details.toggle > summary:not(.hideme)::before {
21662166
top: 4px;
21672167
}
21682168

2169-
.impl-items > details.toggle > summary:not(.hideme)::before {
2169+
.impl-items > details.toggle > summary:not(.hideme)::before,
2170+
#main-content > .methods > details.toggle > summary:not(.hideme)::before {
21702171
position: absolute;
21712172
left: -24px;
21722173
}
@@ -2176,7 +2177,9 @@ details.toggle > summary:not(.hideme)::before {
21762177
.impl-items > *:not(.item-info),
21772178
/* We also indent the first top doc comment the same to still keep an indent on the
21782179
doc block while aligning it with the impl block items. */
2179-
.implementors-toggle > .docblock {
2180+
.implementors-toggle > .docblock,
2181+
/* We indent trait items as well. */
2182+
#main-content > .methods > :not(.item-info) {
21802183
margin-left: var(--impl-items-indent);
21812184
}
21822185

@@ -2508,7 +2511,8 @@ in src-script.js and main.js
25082511
margin-left: 10px;
25092512
}
25102513

2511-
.impl-items > details.toggle > summary:not(.hideme)::before {
2514+
.impl-items > details.toggle > summary:not(.hideme)::before,
2515+
#main-content > .methods > details.toggle > summary:not(.hideme)::before {
25122516
left: -20px;
25132517
}
25142518

0 commit comments

Comments
 (0)