@@ -1508,11 +1508,33 @@ details.rustdoc-toggle > summary.hideme > span {
15081508}
15091509
15101510details .rustdoc-toggle > summary ::before {
1511- content : "[+] " ;
1511+ content : "Expand " ;
15121512 font-weight : 300 ;
15131513 font-size : 0.8em ;
15141514 letter-spacing : 1px ;
15151515 cursor : pointer;
1516+ width : 17px ;
1517+ height : max (17px , 1.1em );
1518+ background : data-url (plus-17x17.png) no-repeat top left;
1519+ display : inline-block;
1520+ vertical-align : middle;
1521+ opacity : .5 ;
1522+ text-indent : 17px ;
1523+ overflow : hidden;
1524+ }
1525+
1526+ details .rustdoc-toggle > summary .hideme ::before {
1527+ /* "hideme" toggles already have a description when they're contracted */
1528+ content : " " ;
1529+ }
1530+
1531+ details .rustdoc-toggle > summary : focus ::before {
1532+ outline : dotted 1px ;
1533+ }
1534+
1535+ details .rustdoc-toggle > summary : focus ::before ,
1536+ details .rustdoc-toggle > summary : hover ::before {
1537+ opacity : 1 ;
15161538}
15171539
15181540details .rustdoc-toggle .top-doc > summary ,
@@ -1560,20 +1582,40 @@ details.rustdoc-toggle[open] > summary.hideme > span {
15601582 display : none;
15611583}
15621584
1563- details .rustdoc-toggle [open ] > summary ::before {
1564- content : "[−]" ;
1565- display : inline;
1585+ details .rustdoc-toggle [open ] > summary ::before ,
1586+ details .rustdoc-toggle [open ] > summary .hideme ::before {
1587+ width : 17px ;
1588+ height : max (17px , 1.1em );
1589+ background : data-url (minus-17x17.png) no-repeat top left;
1590+ display : inline-block;
1591+ content : "Collapse" ;
15661592}
15671593
15681594details .undocumented > summary ::before {
1569- content : "[+] Show hidden undocumented items" ;
1595+ padding-left : 17px ;
1596+ height : max (17px , 1.1em );
1597+ background : data-url (plus-17x17.png) no-repeat top left;
1598+ content : "Show hidden undocumented items" ;
15701599 cursor : pointer;
15711600 font-size : 16px ;
15721601 font-weight : 300 ;
1602+ opacity : .5 ;
1603+ }
1604+
1605+ details .undocumented > summary : focus ::before {
1606+ outline : dotted 1px ;
1607+ }
1608+
1609+ details .undocumented > summary : focus ::before ,
1610+ details .undocumented > summary : hover ::before {
1611+ opacity : 1 ;
15731612}
15741613
15751614details .undocumented [open ] > summary ::before {
1576- content : "[−] Hide undocumented items" ;
1615+ padding-left : 17px ;
1616+ height : max (17px , 1.1em );
1617+ background : data-url (minus-17x17.png) no-repeat top left;
1618+ content : "Hide undocumented items" ;
15771619}
15781620
15791621/* Media Queries */
0 commit comments