Skip to content

Commit edf5cce

Browse files
committed
rustdoc: use shorthand background for rustdoc toggle CSS
1 parent e0098a5 commit edf5cce

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

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

+2-6
Original file line numberDiff line numberDiff line change
@@ -1511,13 +1511,11 @@ details.rustdoc-toggle > summary.hideme > span {
15111511
}
15121512

15131513
details.rustdoc-toggle > summary::before {
1514-
background-image: url("toggle-plus-1092eb4930d581b0.svg");
1514+
background: url("toggle-plus-1092eb4930d581b0.svg") no-repeat top left;
15151515
content: "";
15161516
cursor: pointer;
15171517
width: 16px;
15181518
height: 16px;
1519-
background-repeat: no-repeat;
1520-
background-position: top left;
15211519
display: inline-block;
15221520
vertical-align: middle;
15231521
opacity: .5;
@@ -1598,11 +1596,9 @@ details.rustdoc-toggle[open] > summary.hideme > span {
15981596

15991597
details.rustdoc-toggle[open] > summary::before,
16001598
details.rustdoc-toggle[open] > summary.hideme::before {
1601-
background-image: url("toggle-minus-31bbd6e4c77f5c96.svg");
1599+
background: url("toggle-minus-31bbd6e4c77f5c96.svg") no-repeat top left;
16021600
width: 16px;
16031601
height: 16px;
1604-
background-repeat: no-repeat;
1605-
background-position: top left;
16061602
display: inline-block;
16071603
content: "";
16081604
}

0 commit comments

Comments
 (0)