@@ -317,7 +317,7 @@ main {
317317 margin-right : auto;
318318}
319319
320- details : not (.rustdoc- toggle ) summary {
320+ details : not (.toggle ) summary {
321321 margin-bottom : .6em ;
322322}
323323
@@ -1401,34 +1401,34 @@ details.dir-entry a {
14011401 Unfortunately we can't yet specify contain: content or contain: strict
14021402 because the [-]/[+] toggles extend past the boundaries of the <details>
14031403 https://developer.mozilla.org/en-US/docs/Web/CSS/contain */
1404- details .rustdoc- toggle {
1404+ details .toggle {
14051405 contain : layout;
14061406 position : relative;
14071407}
14081408
14091409/* The hideme class is used on summary tags that contain a span with
14101410 placeholder text shown only when the toggle is closed. For instance,
14111411 "Expand description" or "Show methods". */
1412- details .rustdoc- toggle > summary .hideme {
1412+ details .toggle > summary .hideme {
14131413 cursor : pointer;
14141414 font-size : 1rem ;
14151415}
14161416
1417- details .rustdoc- toggle > summary {
1417+ details .toggle > summary {
14181418 list-style : none;
14191419 /* focus outline is shown on `::before` instead of this */
14201420 outline : none;
14211421}
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 {
14241424 display : none;
14251425}
14261426
1427- details .rustdoc- toggle > summary .hideme > span {
1427+ details .toggle > summary .hideme > span {
14281428 margin-left : 9px ;
14291429}
14301430
1431- details .rustdoc- toggle > summary ::before {
1431+ details .toggle > summary ::before {
14321432 background : url ("toggle-plus-1092eb4930d581b0.svg" ) no-repeat top left;
14331433 content : "" ;
14341434 cursor : pointer;
@@ -1440,32 +1440,32 @@ details.rustdoc-toggle > summary::before {
14401440 filter : var (--toggle-filter );
14411441}
14421442
1443- details .rustdoc- toggle > summary .hideme > span ,
1443+ details .toggle > summary .hideme > span ,
14441444.more-examples-toggle summary , .more-examples-toggle .hide-more {
14451445 color : var (--toggles-color );
14461446}
14471447
14481448/* Screen readers see the text version at the end the line.
14491449 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 {
14511451 content : "Expand" ;
14521452 overflow : hidden;
14531453 width : 0 ;
14541454 height : 0 ;
14551455 position : absolute;
14561456}
14571457
1458- details .rustdoc- toggle > summary .hideme ::after {
1458+ details .toggle > summary .hideme ::after {
14591459 /* "hideme" toggles already have a description when they're contracted */
14601460 content : "" ;
14611461}
14621462
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 {
14651465 opacity : 1 ;
14661466}
14671467
1468- details .rustdoc- toggle > summary : focus-visible ::before {
1468+ details .toggle > summary : focus-visible ::before {
14691469 /* The SVG is black, and gets turned white using a filter in the dark themes.
14701470 Do the same with the outline.
14711471 The dotted 1px style is copied from Firefox's focus ring style.
@@ -1478,17 +1478,17 @@ details.non-exhaustive {
14781478 margin-bottom : 8px ;
14791479}
14801480
1481- details .rustdoc- toggle > summary .hideme ::before {
1481+ details .toggle > summary .hideme ::before {
14821482 position : relative;
14831483}
14841484
1485- details .rustdoc- toggle > summary : not (.hideme )::before {
1485+ details .toggle > summary : not (.hideme )::before {
14861486 position : absolute;
14871487 left : -24px ;
14881488 top : 4px ;
14891489}
14901490
1491- .impl-items > details .rustdoc- toggle > summary : not (.hideme )::before {
1491+ .impl-items > details .toggle > summary : not (.hideme )::before {
14921492 position : absolute;
14931493 left : -24px ;
14941494}
@@ -1498,19 +1498,19 @@ details.rustdoc-toggle > summary:not(.hideme)::before {
14981498 affect the layout of the items to its right. To do that, we use
14991499 absolute positioning. Note that we also set position: relative
15001500 on the parent <details> to make this work properly. */
1501- details .rustdoc- toggle [open ] > summary .hideme {
1501+ details .toggle [open ] > summary .hideme {
15021502 position : absolute;
15031503}
15041504
1505- details .rustdoc- toggle [open ] > summary .hideme > span {
1505+ details .toggle [open ] > summary .hideme > span {
15061506 display : none;
15071507}
15081508
1509- details .rustdoc- toggle [open ] > summary ::before {
1509+ details .toggle [open ] > summary ::before {
15101510 background : url ("toggle-minus-31bbd6e4c77f5c96.svg" ) no-repeat top left;
15111511}
15121512
1513- details .rustdoc- toggle [open ] > summary ::after {
1513+ details .toggle [open ] > summary ::after {
15141514 content : "Collapse" ;
15151515}
15161516
@@ -1660,8 +1660,8 @@ in storage.js
16601660 display : block;
16611661 }
16621662
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 {
16651665 left : -11px ;
16661666 }
16671667
@@ -1715,12 +1715,12 @@ in storage.js
17151715 }
17161716
17171717 /* Position of the "[-]" element. */
1718- details .rustdoc- toggle: not (.top-doc ) > summary {
1718+ details .toggle : not (.top-doc ) > summary {
17191719 margin-left : 10px ;
17201720 }
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 {
17241724 left : -11px ;
17251725 }
17261726
@@ -1753,8 +1753,8 @@ in storage.js
17531753
17541754@media print {
17551755 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 {
17581758 display : none;
17591759 }
17601760
@@ -1796,24 +1796,24 @@ in storage.js
17961796.impl ,
17971797# implementors-list > .docblock ,
17981798.impl-items > section ,
1799- .impl-items > .rustdoc- toggle > summary ,
1799+ .impl-items > .toggle > summary ,
18001800.methods > section ,
1801- .methods > .rustdoc- toggle > summary
1801+ .methods > .toggle > summary
18021802{
18031803 margin-bottom : 0.75em ;
18041804}
18051805
18061806.variants > .docblock ,
18071807.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 ),
18101810.implementors-toggle [open ]: not (: last-child ) {
18111811 margin-bottom : 2em ;
18121812}
18131813
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 ) {
18171817 margin-bottom : 1em ;
18181818}
18191819
0 commit comments