File tree 2 files changed +27
-15
lines changed
2 files changed +27
-15
lines changed Original file line number Diff line number Diff line change @@ -4098,12 +4098,13 @@ impl<'a> fmt::Display for Sidebar<'a> {
4098
4098
</div>",
4099
4099
version) ?;
4100
4100
}
4101
+ }
4101
4102
4103
+ write ! ( fmt, "<div class=\" sidebar-elems\" >" ) ?;
4104
+ if it. is_crate ( ) {
4102
4105
write ! ( fmt, "<a id='all-types' href='all.html'><p>See all {}'s items</p></a>" ,
4103
4106
it. name. as_ref( ) . expect( "crates always have a name" ) ) ?;
4104
4107
}
4105
-
4106
- write ! ( fmt, "<div class=\" sidebar-elems\" >" ) ?;
4107
4108
match it. inner {
4108
4109
clean:: StructItem ( ref s) => sidebar_struct ( fmt, it, s) ?,
4109
4110
clean:: TraitItem ( ref t) => sidebar_trait ( fmt, it, t) ?,
Original file line number Diff line number Diff line change @@ -909,10 +909,9 @@ span.since {
909
909
padding-top : 0px ;
910
910
}
911
911
912
- .sidebar {
912
+ body > .sidebar {
913
913
height : 45px ;
914
914
min-height : 40px ;
915
- width : calc (100% + 30px );
916
915
margin : 0 ;
917
916
margin-left : -15px ;
918
917
padding : 0 15px ;
@@ -1014,6 +1013,10 @@ span.since {
1014
1013
.anchor {
1015
1014
display : none !important ;
1016
1015
}
1016
+
1017
+ h1 .fqn {
1018
+ overflow : initial;
1019
+ }
1017
1020
}
1018
1021
1019
1022
@media print {
@@ -1113,6 +1116,18 @@ h4 > .important-traits {
1113
1116
top : 2px ;
1114
1117
}
1115
1118
1119
+ # all-types {
1120
+ text-align : center;
1121
+ border : 1px solid;
1122
+ margin : 0 10px ;
1123
+ margin-bottom : 10px ;
1124
+ display : block;
1125
+ border-radius : 7px ;
1126
+ }
1127
+ # all-types > p {
1128
+ margin : 5px 0 ;
1129
+ }
1130
+
1116
1131
@media (max-width : 700px ) {
1117
1132
h4 > .important-traits {
1118
1133
position : absolute;
@@ -1136,6 +1151,9 @@ h4 > .important-traits {
1136
1151
background-color : rgba (0 , 0 , 0 , 0 );
1137
1152
height : 100% ;
1138
1153
}
1154
+ .sidebar {
1155
+ width : calc (100% + 30px );
1156
+ }
1139
1157
1140
1158
.show-it {
1141
1159
display : block;
@@ -1181,6 +1199,10 @@ h4 > .important-traits {
1181
1199
.impl > .collapse-toggle {
1182
1200
left : -10px ;
1183
1201
}
1202
+
1203
+ # all-types {
1204
+ margin : 10px ;
1205
+ }
1184
1206
}
1185
1207
1186
1208
@@ -1384,17 +1406,6 @@ kbd {
1384
1406
# main > ul > li {
1385
1407
list-style : none;
1386
1408
}
1387
- # all-types {
1388
- text-align : center;
1389
- border : 1px solid;
1390
- margin : 0 10px ;
1391
- margin-bottom : 10px ;
1392
- display : block;
1393
- border-radius : 7px ;
1394
- }
1395
- # all-types > p {
1396
- margin : 5px 0 ;
1397
- }
1398
1409
1399
1410
.non-exhaustive {
1400
1411
margin-bottom : 1em ;
You can’t perform that action at this time.
0 commit comments