diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2022-05-21 15:05:19 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2022-05-30 16:30:59 +0200 |
| commit | 07596fefc114335c5f4c8cc3ed5b7361b17cf91b (patch) | |
| tree | 8a9e3672531df60c501f7053bc58f01d8c5fedc7 | |
| parent | 655798558e2ba9801fc055a536a59dbbffa23c88 (diff) | |
| download | rust-07596fefc114335c5f4c8cc3ed5b7361b17cf91b.tar.gz rust-07596fefc114335c5f4c8cc3ed5b7361b17cf91b.zip | |
Fix display of `<details>`/`<summary>` in doc blocks
| -rw-r--r-- | src/librustdoc/html/static/css/rustdoc.css | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index ed22a1a353e..c7e1330e86a 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -1669,16 +1669,9 @@ details.rustdoc-toggle[open] > summary.hideme::after { content: "Collapse"; } -.docblock details summary { - display: flex; - list-style: none; - align-items: center; -} -.docblock details[open] summary::before { - content: "► "; -} -.docblock details[open] summary::before { - content: "▼ "; +/* This is needed in docblocks to have the "▶" element to be on the same line. */ +.docblock summary > * { + display: inline-block; } /* Media Queries */ |
