117
117
h3 {
118
118
font-size : 1.3em ;
119
119
}
120
- h1 , h2 , h3 : not (.impl ): not (.method ): not (.type ): not (.tymethod ): not (.notable ),
121
- h4 : not (.method ): not (.type ): not (.tymethod ): not (.associatedconstant ): not (.associatedtype ) {
120
+ h1 , h2 , h3 : not (.notable ), h4 {
122
121
font-weight : 500 ;
123
122
margin : 20px 0 15px 0 ;
124
123
padding-bottom : 6px ;
@@ -135,30 +134,38 @@ h1.fqn {
135
134
h1 .fqn > .in-band > a : hover {
136
135
text-decoration : underline;
137
136
}
138
- h2 , h3 : not (.impl ): not (.method ): not (.type ): not (.tymethod ),
139
- h4 : not (.method ): not (.type ): not (.tymethod ): not (.associatedconstant ): not (.associatedtype ) {
137
+ h2 , h3 , h4 {
140
138
border-bottom : 1px solid;
141
139
}
142
- h3 .impl , h3 .method , h4 .method , h3 .type , h4 .type , h4 .associatedconstant , h4 .associatedtype {
140
+ div [aria-level = "3" ].impl , div [aria-level = "3" ].method , div [aria-level = "4" ].method ,
141
+ div [aria-level = "3" ].type , div [aria-level = "4" ].type , div [aria-level = "4" ].associatedconstant ,
142
+ div [aria-level = "4" ].associatedtype {
143
143
flex-basis : 100% ;
144
144
font-weight : 600 ;
145
145
margin-top : 16px ;
146
146
margin-bottom : 10px ;
147
147
position : relative;
148
148
}
149
- h3 .impl , h3 .method , h4 .method .trait-impl , h3 .type ,
150
- h4 .type .trait-impl , h4 .associatedconstant .trait-impl , h4 .associatedtype .trait-impl {
149
+ div [aria-level = "3" ].impl , div [aria-level = "3" ].method , div [aria-level = "4" ].method .trait-impl ,
150
+ div [aria-level = "3" ].type , div [aria-level = "4" ].type .trait-impl ,
151
+ div [aria-level = "4" ].associatedconstant .trait-impl ,
152
+ div [aria-level = "4" ].associatedtype .trait-impl {
151
153
padding-left : 15px ;
152
154
}
153
155
156
+ div .impl-items > div {
157
+ padding-left : 0 ;
158
+ }
159
+
154
160
h1 , h2 , h3 , h4 ,
155
161
.sidebar , a .source , .search-input , .search-results .result-name ,
156
162
.content table td : first-child > a ,
157
- div .item-list .out-of-band ,
163
+ . collapse-toggle , div .item-list .out-of-band , span . since ,
158
164
# source-sidebar , # sidebar-toggle ,
159
165
details .rustdoc-toggle > summary ::before ,
160
166
details .undocumented > summary ::before ,
161
- .content ul .crate a .crate ,
167
+ div .impl-items > div : not (.docblock ): not (.item-info ),
168
+ .content ul .crate a .crate , a .srclink ,
162
169
/* This selector is for the items listed in the "all items" page. */
163
170
# main > ul .docblock > li > a {
164
171
font-family : "Fira Sans" , Arial, sans-serif;
@@ -313,8 +320,6 @@ nav.sub {
313
320
margin-bottom : 14px ;
314
321
}
315
322
.block h2 , .block h3 {
316
- margin-top : 0 ;
317
- margin-bottom : 8px ;
318
323
text-align : center;
319
324
}
320
325
.block ul , .block li {
@@ -462,15 +467,15 @@ nav.sub {
462
467
font-weight : normal;
463
468
}
464
469
465
- h3 .impl > .out-of-band {
470
+ div [ aria-level = "3" ] .impl > .out-of-band {
466
471
font-size : 21px ;
467
472
}
468
473
469
- h4 .method > .out-of-band {
474
+ div [ aria-level = "4" ] .method > .out-of-band {
470
475
font-size : 19px ;
471
476
}
472
477
473
- h4 > code , h3 > code , .invisible > code {
478
+ div [ aria-level = "3" ] > code , div [ aria-level = "4" ] > code , .invisible > code {
474
479
max-width : calc (100% - 41px );
475
480
display : block;
476
481
}
@@ -543,7 +548,7 @@ h4 > code, h3 > code, .invisible > code {
543
548
}
544
549
.content .multi-column li { width : 100% ; display : inline-block; }
545
550
546
- .content .method {
551
+ .content > div . methods > div .method {
547
552
font-size : 1em ;
548
553
position : relative;
549
554
}
@@ -555,7 +560,7 @@ h4 > code, h3 > code, .invisible > code {
555
560
font-size : 0.8em ;
556
561
}
557
562
558
- .content .methods > div : not (.notable-traits ): not (.methods ) {
563
+ .content .methods > div : not (.notable-traits ): not (.method ) {
559
564
margin-left : 40px ;
560
565
margin-bottom : 15px ;
561
566
}
@@ -564,7 +569,7 @@ h4 > code, h3 > code, .invisible > code {
564
569
margin-left : 20px ;
565
570
margin-top : -34px ;
566
571
}
567
- .content .docblock > .impl-items > h4 {
572
+ .content .docblock > .impl-items > div [ aria-level = "4" ] {
568
573
border-bottom : 0 ;
569
574
}
570
575
.content .docblock > .impl-items .table-display {
688
693
text-decoration : underline;
689
694
}
690
695
691
- .invisible > .srclink , h4 > code + .srclink , h3 > code + .srclink {
696
+ .invisible > .srclink ,
697
+ div [aria-level = "3" ] > code + .srclink , div [aria-level = "4" ] > code + .srclink {
692
698
position : absolute;
693
699
top : 0 ;
694
700
right : 0 ;
@@ -923,7 +929,8 @@ body.blur > :not(#help) {
923
929
flex-grow : 1 ;
924
930
}
925
931
926
- .impl-items h4 , h4 .impl , h3 .impl , .methods h3 {
932
+ .impl-items div [aria-level = "4" ], div [aria-level = "4" ].impl , div [aria-level = "3" ].impl ,
933
+ .methods div [aria-level = "3" ] {
927
934
display : flex;
928
935
flex-basis : 100% ;
929
936
font-size : 16px ;
@@ -985,6 +992,45 @@ a.test-arrow:hover{
985
992
font-weight : 300 ;
986
993
}
987
994
995
+ .collapse-toggle {
996
+ font-weight : 300 ;
997
+ position : absolute;
998
+ left : -23px ;
999
+ top : 0 ;
1000
+ }
1001
+
1002
+ div [aria-level = "3" ] > .collapse-toggle , div [aria-level = "4" ] > .collapse-toggle {
1003
+ font-size : 0.8em ;
1004
+ top : 5px ;
1005
+ }
1006
+
1007
+ .toggle-wrapper > .collapse-toggle {
1008
+ left : -24px ;
1009
+ margin-top : 0px ;
1010
+ }
1011
+
1012
+ .toggle-wrapper {
1013
+ position : relative;
1014
+ margin-top : 0 ;
1015
+ }
1016
+
1017
+ .toggle-wrapper .collapsed {
1018
+ height : 25px ;
1019
+ transition : height .2s ;
1020
+ margin-bottom : .6em ;
1021
+ }
1022
+
1023
+ .collapse-toggle > .inner {
1024
+ display : inline-block;
1025
+ width : 1.2ch ;
1026
+ text-align : center;
1027
+ }
1028
+
1029
+ .collapse-toggle .hidden-default {
1030
+ position : relative;
1031
+ margin-left : 20px ;
1032
+ }
1033
+
988
1034
.since + .srclink {
989
1035
display : table-cell;
990
1036
padding-left : 10px ;
@@ -1197,7 +1243,7 @@ pre.rust {
1197
1243
margin-left : 5px ;
1198
1244
}
1199
1245
1200
- h4 > .notable-traits {
1246
+ div [ aria-level = "4" ] > .notable-traits {
1201
1247
position : absolute;
1202
1248
left : -44px ;
1203
1249
top : 2px ;
@@ -1615,7 +1661,7 @@ details.undocumented[open] > summary::before {
1615
1661
padding : 0 ;
1616
1662
}
1617
1663
1618
- .content h4 > .out-of-band {
1664
+ .content div [ aria-level = "4" ] > .out-of-band {
1619
1665
position : inherit;
1620
1666
}
1621
1667
@@ -1638,7 +1684,7 @@ details.undocumented[open] > summary::before {
1638
1684
z-index : 1 ;
1639
1685
}
1640
1686
1641
- h4 > .notable-traits {
1687
+ div [ aria-level = "4" ] > .notable-traits {
1642
1688
position : absolute;
1643
1689
left : -22px ;
1644
1690
top : 24px ;
0 commit comments