diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-04-14 00:23:42 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-14 00:23:42 +0200 |
| commit | 8af5c8f4cb1dcf52a2ff1d403c06e68775c2b681 (patch) | |
| tree | c93a0fecec545249099dc3daea48e5f230da607d /src/librustdoc/html/static/rustdoc.css | |
| parent | a52fce7ec866ac043955d5cec63fbab6fd9ee943 (diff) | |
| parent | 825a11ea3bb8a4b1a07d4e03a009b2ca4205c6a9 (diff) | |
| download | rust-8af5c8f4cb1dcf52a2ff1d403c06e68775c2b681.tar.gz rust-8af5c8f4cb1dcf52a2ff1d403c06e68775c2b681.zip | |
Rollup merge of #59855 - GuillaumeGomez:fix-attr-position-in-type-decl, r=QuietMisdreavus
Fix attributes position in type declaration Fixes #59797. r? @rust-lang/rustdoc
Diffstat (limited to 'src/librustdoc/html/static/rustdoc.css')
| -rw-r--r-- | src/librustdoc/html/static/rustdoc.css | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css index 5314255ac32..2228e58b0d2 100644 --- a/src/librustdoc/html/static/rustdoc.css +++ b/src/librustdoc/html/static/rustdoc.css @@ -1577,3 +1577,17 @@ div.name.expand::before { left: -15px; top: 2px; } + +/* This part is to fix the "Expand attributes" part in the type declaration. */ +.type-decl > pre > :first-child { + margin-left: 0 !important; +} +.type-decl > pre > :nth-child(2) { + margin-left: 1.8em !important; +} +.type-decl > pre > .toggle-attributes { + margin-left: 2.2em; +} +.type-decl > pre > .docblock.attributes { + margin-left: 4em; +} |
