diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2022-07-01 23:39:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-01 23:39:07 +0200 |
| commit | 194764fdc070d95ce2200548a2e6267d701068bd (patch) | |
| tree | fdb139216bee6c5118e79832241e5dc784eb0301 /src/librustdoc/html/static/css/rustdoc.css | |
| parent | 5018181c79a6fe37913fd931005ad2a63c85be7b (diff) | |
| parent | b8db8cc10f5d3a28d75f89680f2734e24cd1490c (diff) | |
| download | rust-194764fdc070d95ce2200548a2e6267d701068bd.tar.gz rust-194764fdc070d95ce2200548a2e6267d701068bd.zip | |
Rollup merge of #97249 - GuillaumeGomez:details-summary-fixes, r=notriddle
`<details>`/`<summary>` UI fixes With images it's easier to understand:   The headings in `<summary>` should not have bottom border so I removed it as well alongside the other fixes. r? `@jsha`
Diffstat (limited to 'src/librustdoc/html/static/css/rustdoc.css')
| -rw-r--r-- | src/librustdoc/html/static/css/rustdoc.css | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index 532b98d9bb9..0ea954d601b 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -158,8 +158,8 @@ h1.fqn { Underlines elsewhere in the documentation break up visual flow and tend to invert section hierarchies. */ h2, -.top-doc h3, -.top-doc h4 { +.top-doc .docblock > h3, +.top-doc .docblock > h4 { border-bottom: 1px solid; } h3.code-header { @@ -1681,6 +1681,11 @@ details.rustdoc-toggle[open] > summary.hideme::after { content: "Collapse"; } +/* This is needed in docblocks to have the "▶" element to be on the same line. */ +.docblock summary > * { + display: inline-block; +} + /* Media Queries */ @media (min-width: 701px) { |
