File tree 1 file changed +17
-7
lines changed
src/librustdoc/html/static/css
1 file changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -1508,24 +1508,29 @@ details.rustdoc-toggle > summary.hideme > span {
1508
1508
}
1509
1509
1510
1510
details .rustdoc-toggle > summary ::before {
1511
- content : "Expand" ;
1512
- font-weight : 300 ;
1513
- font-size : 0.8em ;
1514
- letter-spacing : 1px ;
1511
+ content : " " ;
1515
1512
cursor : pointer;
1516
1513
width : 17px ;
1517
1514
height : max (17px , 1.1em );
1518
1515
background : data-url (plus-17x17.png) no-repeat top left;
1519
1516
display : inline-block;
1520
1517
vertical-align : middle;
1521
1518
opacity : .5 ;
1522
- text-indent : 17px ;
1519
+ }
1520
+
1521
+ /* Screen readers see the text version at the end the line.
1522
+ Visual readers see the icon at the start of the line, but small and transparent. */
1523
+ details .rustdoc-toggle > summary ::after {
1524
+ content : "Expand" ;
1523
1525
overflow : hidden;
1526
+ width : 0 ;
1527
+ height : 0 ;
1528
+ position : absolute;
1524
1529
}
1525
1530
1526
- details .rustdoc-toggle > summary .hideme ::before {
1531
+ details .rustdoc-toggle > summary .hideme ::after {
1527
1532
/* "hideme" toggles already have a description when they're contracted */
1528
- content : " " ;
1533
+ content : "" ;
1529
1534
}
1530
1535
1531
1536
details .rustdoc-toggle > summary : focus ::before {
@@ -1588,6 +1593,11 @@ details.rustdoc-toggle[open] > summary.hideme::before {
1588
1593
height : max (17px , 1.1em );
1589
1594
background : data-url (minus-17x17.png) no-repeat top left;
1590
1595
display : inline-block;
1596
+ content : " " ;
1597
+ }
1598
+
1599
+ details .rustdoc-toggle [open ] > summary ::after ,
1600
+ details .rustdoc-toggle [open ] > summary .hideme ::after {
1591
1601
content : "Collapse" ;
1592
1602
}
1593
1603
You can’t perform that action at this time.
0 commit comments