diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2025-01-24 23:25:46 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-24 23:25:46 +0100 |
| commit | d15cf36f0c2abdc1ebde9d00d8e0f3aef3f1e530 (patch) | |
| tree | 5974a4a7cc9fa51594108a2b77fe2fb3b2a456a7 /src | |
| parent | 99e34a4ea0592d53496900ec9918018e16f67992 (diff) | |
| parent | caacb048303bfef39a2c89baccccad8e79e5a8d2 (diff) | |
| download | rust-d15cf36f0c2abdc1ebde9d00d8e0f3aef3f1e530.tar.gz rust-d15cf36f0c2abdc1ebde9d00d8e0f3aef3f1e530.zip | |
Rollup merge of #135998 - GuillaumeGomez:fix-trait-items-mobile-indent, r=notriddle
[rustdoc] Fix indent of trait items on mobile Before:  After:  Seems like we forgot them when we did #131718. Can be tested [here](https://rustdoc.crud.net/imperio/fix-trait-items-mobile-indent/foo/trait.T.html). r? `@notriddle`
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustdoc/html/static/css/rustdoc.css | 10 |
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; } |
