@@ -317,7 +317,7 @@ main {
317
317
margin-right : auto;
318
318
}
319
319
320
- details : not (.rustdoc- toggle ) summary {
320
+ details : not (.toggle ) summary {
321
321
margin-bottom : .6em ;
322
322
}
323
323
@@ -1401,34 +1401,34 @@ details.dir-entry a {
1401
1401
Unfortunately we can't yet specify contain: content or contain: strict
1402
1402
because the [-]/[+] toggles extend past the boundaries of the <details>
1403
1403
https://developer.mozilla.org/en-US/docs/Web/CSS/contain */
1404
- details .rustdoc- toggle {
1404
+ details .toggle {
1405
1405
contain : layout;
1406
1406
position : relative;
1407
1407
}
1408
1408
1409
1409
/* The hideme class is used on summary tags that contain a span with
1410
1410
placeholder text shown only when the toggle is closed. For instance,
1411
1411
"Expand description" or "Show methods". */
1412
- details .rustdoc- toggle > summary .hideme {
1412
+ details .toggle > summary .hideme {
1413
1413
cursor : pointer;
1414
1414
font-size : 1rem ;
1415
1415
}
1416
1416
1417
- details .rustdoc- toggle > summary {
1417
+ details .toggle > summary {
1418
1418
list-style : none;
1419
1419
/* focus outline is shown on `::before` instead of this */
1420
1420
outline : none;
1421
1421
}
1422
- details .rustdoc- toggle > summary ::-webkit-details-marker ,
1423
- details .rustdoc- toggle > summary ::marker {
1422
+ details .toggle > summary ::-webkit-details-marker ,
1423
+ details .toggle > summary ::marker {
1424
1424
display : none;
1425
1425
}
1426
1426
1427
- details .rustdoc- toggle > summary .hideme > span {
1427
+ details .toggle > summary .hideme > span {
1428
1428
margin-left : 9px ;
1429
1429
}
1430
1430
1431
- details .rustdoc- toggle > summary ::before {
1431
+ details .toggle > summary ::before {
1432
1432
background : url ("toggle-plus-1092eb4930d581b0.svg" ) no-repeat top left;
1433
1433
content : "" ;
1434
1434
cursor : pointer;
@@ -1440,32 +1440,32 @@ details.rustdoc-toggle > summary::before {
1440
1440
filter : var (--toggle-filter );
1441
1441
}
1442
1442
1443
- details .rustdoc- toggle > summary .hideme > span ,
1443
+ details .toggle > summary .hideme > span ,
1444
1444
.more-examples-toggle summary , .more-examples-toggle .hide-more {
1445
1445
color : var (--toggles-color );
1446
1446
}
1447
1447
1448
1448
/* Screen readers see the text version at the end the line.
1449
1449
Visual readers see the icon at the start of the line, but small and transparent. */
1450
- details .rustdoc- toggle > summary ::after {
1450
+ details .toggle > summary ::after {
1451
1451
content : "Expand" ;
1452
1452
overflow : hidden;
1453
1453
width : 0 ;
1454
1454
height : 0 ;
1455
1455
position : absolute;
1456
1456
}
1457
1457
1458
- details .rustdoc- toggle > summary .hideme ::after {
1458
+ details .toggle > summary .hideme ::after {
1459
1459
/* "hideme" toggles already have a description when they're contracted */
1460
1460
content : "" ;
1461
1461
}
1462
1462
1463
- details .rustdoc- toggle > summary : focus ::before ,
1464
- details .rustdoc- toggle > summary : hover ::before {
1463
+ details .toggle > summary : focus ::before ,
1464
+ details .toggle > summary : hover ::before {
1465
1465
opacity : 1 ;
1466
1466
}
1467
1467
1468
- details .rustdoc- toggle > summary : focus-visible ::before {
1468
+ details .toggle > summary : focus-visible ::before {
1469
1469
/* The SVG is black, and gets turned white using a filter in the dark themes.
1470
1470
Do the same with the outline.
1471
1471
The dotted 1px style is copied from Firefox's focus ring style.
@@ -1478,17 +1478,17 @@ details.non-exhaustive {
1478
1478
margin-bottom : 8px ;
1479
1479
}
1480
1480
1481
- details .rustdoc- toggle > summary .hideme ::before {
1481
+ details .toggle > summary .hideme ::before {
1482
1482
position : relative;
1483
1483
}
1484
1484
1485
- details .rustdoc- toggle > summary : not (.hideme )::before {
1485
+ details .toggle > summary : not (.hideme )::before {
1486
1486
position : absolute;
1487
1487
left : -24px ;
1488
1488
top : 4px ;
1489
1489
}
1490
1490
1491
- .impl-items > details .rustdoc- toggle > summary : not (.hideme )::before {
1491
+ .impl-items > details .toggle > summary : not (.hideme )::before {
1492
1492
position : absolute;
1493
1493
left : -24px ;
1494
1494
}
@@ -1498,19 +1498,19 @@ details.rustdoc-toggle > summary:not(.hideme)::before {
1498
1498
affect the layout of the items to its right. To do that, we use
1499
1499
absolute positioning. Note that we also set position: relative
1500
1500
on the parent <details> to make this work properly. */
1501
- details .rustdoc- toggle [open ] > summary .hideme {
1501
+ details .toggle [open ] > summary .hideme {
1502
1502
position : absolute;
1503
1503
}
1504
1504
1505
- details .rustdoc- toggle [open ] > summary .hideme > span {
1505
+ details .toggle [open ] > summary .hideme > span {
1506
1506
display : none;
1507
1507
}
1508
1508
1509
- details .rustdoc- toggle [open ] > summary ::before {
1509
+ details .toggle [open ] > summary ::before {
1510
1510
background : url ("toggle-minus-31bbd6e4c77f5c96.svg" ) no-repeat top left;
1511
1511
}
1512
1512
1513
- details .rustdoc- toggle [open ] > summary ::after {
1513
+ details .toggle [open ] > summary ::after {
1514
1514
content : "Collapse" ;
1515
1515
}
1516
1516
@@ -1660,8 +1660,8 @@ in storage.js
1660
1660
display : block;
1661
1661
}
1662
1662
1663
- # main-content > details .rustdoc- toggle > summary ::before ,
1664
- # main-content > div > details .rustdoc- toggle > summary ::before {
1663
+ # main-content > details .toggle > summary ::before ,
1664
+ # main-content > div > details .toggle > summary ::before {
1665
1665
left : -11px ;
1666
1666
}
1667
1667
@@ -1715,12 +1715,12 @@ in storage.js
1715
1715
}
1716
1716
1717
1717
/* Position of the "[-]" element. */
1718
- details .rustdoc- toggle: not (.top-doc ) > summary {
1718
+ details .toggle : not (.top-doc ) > summary {
1719
1719
margin-left : 10px ;
1720
1720
}
1721
- .impl-items > details .rustdoc- toggle > summary : not (.hideme )::before ,
1722
- # main-content > details .rustdoc- toggle: not (.top-doc ) > summary ::before ,
1723
- # main-content > div > details .rustdoc- toggle > summary ::before {
1721
+ .impl-items > details .toggle > summary : not (.hideme )::before ,
1722
+ # main-content > details .toggle : not (.top-doc ) > summary ::before ,
1723
+ # main-content > div > details .toggle > summary ::before {
1724
1724
left : -11px ;
1725
1725
}
1726
1726
@@ -1753,8 +1753,8 @@ in storage.js
1753
1753
1754
1754
@media print {
1755
1755
nav .sidebar , nav .sub , .out-of-band , a .srclink , # copy-path ,
1756
- details .rustdoc- toggle [open ] > summary ::before , details .rustdoc- toggle > summary ::before ,
1757
- details .rustdoc- toggle .top-doc > summary {
1756
+ details .toggle [open ] > summary ::before , details .toggle > summary ::before ,
1757
+ details .toggle .top-doc > summary {
1758
1758
display : none;
1759
1759
}
1760
1760
@@ -1796,24 +1796,24 @@ in storage.js
1796
1796
.impl ,
1797
1797
# implementors-list > .docblock ,
1798
1798
.impl-items > section ,
1799
- .impl-items > .rustdoc- toggle > summary ,
1799
+ .impl-items > .toggle > summary ,
1800
1800
.methods > section ,
1801
- .methods > .rustdoc- toggle > summary
1801
+ .methods > .toggle > summary
1802
1802
{
1803
1803
margin-bottom : 0.75em ;
1804
1804
}
1805
1805
1806
1806
.variants > .docblock ,
1807
1807
.implementors-toggle > .docblock ,
1808
- .impl-items > .rustdoc- toggle [open ]: not (: last-child ),
1809
- .methods > .rustdoc- toggle [open ]: not (: last-child ),
1808
+ .impl-items > .toggle [open ]: not (: last-child ),
1809
+ .methods > .toggle [open ]: not (: last-child ),
1810
1810
.implementors-toggle [open ]: not (: last-child ) {
1811
1811
margin-bottom : 2em ;
1812
1812
}
1813
1813
1814
- # trait-implementations-list .impl-items > .rustdoc- toggle: not (: last-child ),
1815
- # synthetic-implementations-list .impl-items > .rustdoc- toggle: not (: last-child ),
1816
- # blanket-implementations-list .impl-items > .rustdoc- toggle: not (: last-child ) {
1814
+ # trait-implementations-list .impl-items > .toggle : not (: last-child ),
1815
+ # synthetic-implementations-list .impl-items > .toggle : not (: last-child ),
1816
+ # blanket-implementations-list .impl-items > .toggle : not (: last-child ) {
1817
1817
margin-bottom : 1em ;
1818
1818
}
1819
1819
0 commit comments