]> git.lizzy.rs Git - rust.git/commitdiff
Fix display of `<details>`/`<summary>` in doc blocks
authorGuillaume Gomez <guillaume.gomez@huawei.com>
Sat, 21 May 2022 13:05:19 +0000 (15:05 +0200)
committerGuillaume Gomez <guillaume.gomez@huawei.com>
Mon, 30 May 2022 14:30:59 +0000 (16:30 +0200)
src/librustdoc/html/static/css/rustdoc.css

index ed22a1a353e46ca1c2abd387396b351b303b4f45..c7e1330e86acf558e4aa99a64bcdee176c3c1c44 100644 (file)
@@ -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 */