diff options
| author | bors <bors@rust-lang.org> | 2022-09-29 19:52:48 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-09-29 19:52:48 +0000 |
| commit | 9c56d9d6fec6262bbb1549cfe466a812ae2c6523 (patch) | |
| tree | fece705fa574e50248f1e758d7a04f27ade855da /src/librustdoc/html/static/css/rustdoc.css | |
| parent | 9f1a21ae2bd41b3dd335c44f38f29a1fb8712ddc (diff) | |
| parent | 98075708dde5b75e69d3294783c1f6abf5236dba (diff) | |
| download | rust-9c56d9d6fec6262bbb1549cfe466a812ae2c6523.tar.gz rust-9c56d9d6fec6262bbb1549cfe466a812ae2c6523.zip | |
Auto merge of #102482 - notriddle:rollup-fjm618g, r=notriddle
Rollup of 7 pull requests Successful merges: - #102214 (Fix span of byte-escaped left format args brace) - #102426 (Don't export `__wasm_init_memory` on WebAssembly.) - #102437 (rustdoc: cut margin-top from first header in docblock) - #102442 (rustdoc: remove bad CSS font-weight on `.impl`, `.method`, etc) - #102447 (rustdoc: add method spacing to trait methods) - #102468 (tidy: make rustc dependency error less confusing) - #102476 (Split out the error reporting logic into a separate function) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'src/librustdoc/html/static/css/rustdoc.css')
| -rw-r--r-- | src/librustdoc/html/static/css/rustdoc.css | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index 7bc8fbb1ea7..e92e9137d64 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; @@ -187,7 +194,6 @@ h4.code-header { .impl-items .associatedtype, .methods .associatedtype { flex-basis: 100%; - font-weight: 600; position: relative; } @@ -2008,7 +2014,8 @@ in storage.js plus the media query with (min-width: 701px) .method-toggle summary, .implementors-toggle summary, -.impl { +.impl, +#implementors-list > .docblock { margin-bottom: 0.75em; } |
