Skip to content

Commit b1d9af3

Browse files
committed
rustdoc: make the toggle buttons look more like the big one
1 parent b3c08a3 commit b1d9af3

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

src/librustdoc/html/static/css/rustdoc.css

+9-10
Original file line numberDiff line numberDiff line change
@@ -1599,16 +1599,15 @@ details.toggle > summary.hideme > span {
15991599

16001600
details.toggle > summary::before {
16011601
/* toggle plus */
1602-
background: url('data:image/svg+xml,<svg width="19" height="19" stroke="black" fill="none" \
1603-
xmlns="http://www.w3.org/2000/svg"><path d="M2.5 2.5h14v14h-14v-14.5" \
1604-
shape-rendering="crispEdges" stroke="grey"/><path d="M6 9.5h7M9.5 13.5V5.5"/></svg>') no-repeat top left;
1602+
background: url('data:image/svg+xml,<svg width="15" height="15" stroke="black" fill="none" \
1603+
xmlns="http://www.w3.org/2000/svg"><path d="M3 6.5h7M6.5 10.5V2.5"/></svg>') no-repeat top left;
16051604
content: "";
16061605
cursor: pointer;
1607-
width: 18px;
1608-
height: 18px;
1606+
width: 13px;
1607+
height: 13px;
1608+
border: solid 1px #CCC;
16091609
display: inline-block;
16101610
vertical-align: middle;
1611-
opacity: .5;
16121611
filter: var(--toggle-filter);
16131612
}
16141613

@@ -1634,7 +1633,7 @@ details.toggle > summary.hideme::after {
16341633

16351634
details.toggle > summary:focus-visible::before,
16361635
details.toggle > summary:hover::before {
1637-
opacity: 1;
1636+
border-color: #666;
16381637
}
16391638

16401639
details.toggle > summary:focus-visible::before {
@@ -1680,9 +1679,9 @@ details.toggle[open] > summary.hideme > span {
16801679

16811680
details.toggle[open] > summary::before {
16821681
/* toggle minus */
1683-
background: url('data:image/svg+xml,<svg width="19" height="19" \
1684-
shape-rendering="crispEdges" stroke="black" fill="none" xmlns="http://www.w3.org/2000/svg"><path \
1685-
d="M2.5 2.5h14v14h-14v-14.5" stroke="grey"/><path d="M6 9.5h7"/></svg>') no-repeat top left;
1682+
background: url('data:image/svg+xml,<svg width="15" height="15" stroke="black" fill="none" \
1683+
xmlns="http://www.w3.org/2000/svg"><path d="M3 6.5h7"/></svg>') no-repeat top left;
1684+
<path d="M6 9.5h7"/></svg>') no-repeat top left;
16861685
}
16871686

16881687
details.toggle[open] > summary::after {

0 commit comments

Comments
 (0)