Skip to content

Commit

Permalink
rustdoc: make toggle buttons a bit bigger
Browse files Browse the repository at this point in the history
  • Loading branch information
notriddle committed Dec 6, 2023
1 parent 73d8119 commit e930ab3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -1594,13 +1594,13 @@ details.toggle > summary.hideme > span {

details.toggle > summary::before {
/* toggle plus */
background: url('data:image/svg+xml,<svg width="17" height="17" stroke="black" fill="none" \
xmlns="http://www.w3.org/2000/svg"><path d="M2.5 2.5h12v12h-12v-12.5" \
shape-rendering="crispEdges"/><path d="M6 8.5h5M8.5 11.5V5.5"/></svg>') no-repeat top left;
background: url('data:image/svg+xml,<svg width="19" height="19" stroke="black" fill="none" \
xmlns="http://www.w3.org/2000/svg"><path d="M2.5 2.5h14v14h-14v-14.5" \
shape-rendering="crispEdges"/><path d="M6 9.5h7M9.5 13.5V5.5"/></svg>') no-repeat top left;
content: "";
cursor: pointer;
width: 16px;
height: 16px;
width: 18px;
height: 18px;
display: inline-block;
vertical-align: middle;
opacity: .5;
Expand Down Expand Up @@ -1675,9 +1675,9 @@ details.toggle[open] > summary.hideme > span {

details.toggle[open] > summary::before {
/* toggle minus */
background: url('data:image/svg+xml,<svg width="17" height="17" \
background: url('data:image/svg+xml,<svg width="19" height="19" \
shape-rendering="crispEdges" stroke="black" fill="none" xmlns="http://www.w3.org/2000/svg"><path \
d="M2.5 2.5h12v12h-12v-12.5"/><path d="M6 8.5h5"/></svg>') no-repeat top left;
d="M2.5 2.5h14v14h-14v-14.5"/><path d="M6 9.5h7"/></svg>') no-repeat top left;
}

details.toggle[open] > summary::after {
Expand Down

0 comments on commit e930ab3

Please sign in to comment.