diff options
| author | bors <bors@rust-lang.org> | 2021-06-27 22:57:34 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-06-27 22:57:34 +0000 |
| commit | 3e9d7ecf784e5ecaf7437d04be3992ad23fa7cb6 (patch) | |
| tree | 5377a52b46cfdfed4b29f5402af0adb4686940a2 | |
| parent | e8cb1a4a567ce88e459ffd431207eff2e0f0ffa5 (diff) | |
| parent | 14413ad5394766107ed0bf10dd5197f9c9ce8085 (diff) | |
| download | rust-3e9d7ecf784e5ecaf7437d04be3992ad23fa7cb6.tar.gz rust-3e9d7ecf784e5ecaf7437d04be3992ad23fa7cb6.zip | |
Auto merge of #86589 - JohnTitor:add-triangle-to-summary, r=jsha
Show triangle on the "Details" disclosure element in all cases Re-submission of #82805, fixes the style issue by applying the same margin as `<p>`. <details><summary>Before</summary>   </details> <details><summary>After</summary>   </details> r? `@GuillaumeGomez`
| -rw-r--r-- | src/librustdoc/html/static/rustdoc.css | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css index 3b52fd94d27..db200fe7913 100644 --- a/src/librustdoc/html/static/rustdoc.css +++ b/src/librustdoc/html/static/rustdoc.css @@ -200,6 +200,12 @@ summary { outline: none; } +/* FIXME: Remove after normalize.css is either upgraded or removed (#86629) */ +details:not(.rustdoc-toggle) summary { + margin-bottom: .6em; + display: list-item; +} + code, pre, a.test-arrow { font-family: "Source Code Pro", monospace; } @@ -897,10 +903,6 @@ body.blur > :not(#help) { display: inline; } -.stab summary { - display: list-item; -} - .stab .emoji { font-size: 1.5em; } |
