diff options
| author | Michael Howell <michael@notriddle.com> | 2022-09-28 14:33:56 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2022-09-28 14:33:56 -0700 |
| commit | b707eff5cc8780b535b0d2f170fe886f927c5082 (patch) | |
| tree | 804f7f01be1f112c3e6a16c76c22081233761982 | |
| parent | 307dd938d7937c93dc7a880e81a2383b82f30ad0 (diff) | |
| download | rust-b707eff5cc8780b535b0d2f170fe886f927c5082.tar.gz rust-b707eff5cc8780b535b0d2f170fe886f927c5082.zip | |
rustdoc: cut margin-top from first header in docblock
Fixes a regression caused by 8846c0853d8687fda0e5f23f6687b03b243980ee, where a header's top margin used to be collapsed, but isn't any more.
| -rw-r--r-- | src/librustdoc/html/static/css/rustdoc.css | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index 0ea6d9c38b6..6e0fe9fb48e 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -138,6 +138,13 @@ h1, h2, h3, h4 { .docblock h3, .docblock h4, h5, h6 { margin: 15px 0 5px 0; } +.docblock > h2:first-child, +.docblock > h3:first-child, +.docblock > h4:first-child, +.docblock > h5:first-child, +.docblock > h6:first-child { + margin-top: 0; +} h1.fqn { margin: 0; padding: 0; |
