Skip to content

Commit

Permalink
Rollup merge of #105062 - notriddle:notriddle/rustdoc-toggle-backgrou…
Browse files Browse the repository at this point in the history
…nd, r=GuillaumeGomez

rustdoc: use shorthand background for rustdoc toggle CSS
  • Loading branch information
matthiaskrgr authored Nov 29, 2022
2 parents 776e4a3 + edf5cce commit 5726f1f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -1511,13 +1511,11 @@ details.rustdoc-toggle > summary.hideme > span {
}

details.rustdoc-toggle > summary::before {
background-image: url("toggle-plus-1092eb4930d581b0.svg");
background: url("toggle-plus-1092eb4930d581b0.svg") no-repeat top left;
content: "";
cursor: pointer;
width: 16px;
height: 16px;
background-repeat: no-repeat;
background-position: top left;
display: inline-block;
vertical-align: middle;
opacity: .5;
Expand Down Expand Up @@ -1598,11 +1596,9 @@ details.rustdoc-toggle[open] > summary.hideme > span {

details.rustdoc-toggle[open] > summary::before,
details.rustdoc-toggle[open] > summary.hideme::before {
background-image: url("toggle-minus-31bbd6e4c77f5c96.svg");
background: url("toggle-minus-31bbd6e4c77f5c96.svg") no-repeat top left;
width: 16px;
height: 16px;
background-repeat: no-repeat;
background-position: top left;
display: inline-block;
content: "";
}
Expand Down

0 comments on commit 5726f1f

Please sign in to comment.