Skip to content

Commit 766de3a

Browse files
Fix toggle position on mobile
1 parent 69b352e commit 766de3a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/librustdoc/html/static/rustdoc.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1586,6 +1586,10 @@ h4 > .notable-traits {
15861586
.docblock {
15871587
margin-left: 12px;
15881588
}
1589+
1590+
details.rustdoc-toggle > summary.hideme::before {
1591+
left: -11px;
1592+
}
15891593
}
15901594

15911595
h3.notable {
@@ -1697,6 +1701,9 @@ details.rustdoc-toggle > summary.hideme {
16971701
cursor: pointer;
16981702
}
16991703

1704+
details.rustdoc-toggle > summary, details.undocumented > summary {
1705+
list-style: none;
1706+
}
17001707
details.rustdoc-toggle > summary::-webkit-details-marker,
17011708
details.rustdoc-toggle > summary::marker,
17021709
details.undocumented > summary::-webkit-details-marker,
@@ -1763,7 +1770,7 @@ details.rustdoc-toggle[open] > summary.hideme > span {
17631770
}
17641771

17651772
details.rustdoc-toggle[open] > summary::before {
1766-
content: "[]";
1773+
content: "[-]";
17671774
display: inline;
17681775
}
17691776

0 commit comments

Comments
 (0)