diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-09-03 14:20:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-03 14:20:49 +0200 |
| commit | 5e34b79c29f40faa6e29fb3374cd1a4c94aaa4b5 (patch) | |
| tree | b76718a37881f58f156a284a0ab8c85819f9db14 /src/librustdoc/html/static/css | |
| parent | 06b72b06a2734a3997abe12dded7c19d49a18cc2 (diff) | |
| parent | 0f29824760eefd74aba742fc2c287c2d3901bd63 (diff) | |
| download | rust-5e34b79c29f40faa6e29fb3374cd1a4c94aaa4b5.tar.gz rust-5e34b79c29f40faa6e29fb3374cd1a4c94aaa4b5.zip | |
Rollup merge of #101335 - notriddle:notriddle/methods-stability, r=notriddle
rustdoc: remove old CSS selector that causes weird spacing It was added with e08a84a0c18739417a50c3e46917ced5037244eb (actually, it was called `.methods > .stability` at the time) and was directly nested that way. **EDIT**: It is technically reachable code still, but it seems wrong. ## With the old CSS rule still present https://notriddle.com/notriddle-rustdoc-test/weird-spacing/lib/struct.Foo.html  ## Version 2 (an older version of this PR) https://notriddle.com/notriddle-rustdoc-test/normal-spacing-2/lib/struct.Foo.html  ## Version 3 (with alignment fix for mobile) https://notriddle.com/notriddle-rustdoc-test/normal-spacing-3/lib/struct.Foo.html 
Diffstat (limited to 'src/librustdoc/html/static/css')
| -rw-r--r-- | src/librustdoc/html/static/css/rustdoc.css | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index fc8fde3c8ec..38b6ebd66d3 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -778,14 +778,6 @@ pre, .rustdoc.source .example-wrap { margin-bottom: .6em; } -.content .impl-items > .item-info { - margin-left: 40px; -} - -.methods > .item-info, .content .impl-items > .item-info { - margin-top: -8px; -} - .impl-items { flex-basis: 100%; } @@ -2035,6 +2027,11 @@ in storage.js plus the media query with (min-width: 701px) #main-content > div > details.rustdoc-toggle > summary::before { left: -11px; } + + /* Align summary-nested and unnested item-info gizmos. */ + .content .impl-items > .item-info { + margin-left: 34px; + } } @media print { |
