@@ -2141,8 +2141,8 @@ fn item_trait(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
2141
2141
2142
2142
if !types. is_empty ( ) {
2143
2143
write ! ( w, "
2144
- <h2 id='associated-types' class='section-header'>
2145
- <a href='#associated-types'>Associated Types </a>
2144
+ <h2 id='associated-types' class='small- section-header'>
2145
+ Associated Types <a href='#associated-types' class='anchor'> </a>
2146
2146
</h2>
2147
2147
<div class='methods'>
2148
2148
" ) ?;
@@ -2154,8 +2154,8 @@ fn item_trait(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
2154
2154
2155
2155
if !consts. is_empty ( ) {
2156
2156
write ! ( w, "
2157
- <h2 id='associated-const' class='section-header'>
2158
- <a href='#associated-const'>Associated Constants </a>
2157
+ <h2 id='associated-const' class='small- section-header'>
2158
+ Associated Constants <a href='#associated-const' class='anchor'> </a>
2159
2159
</h2>
2160
2160
<div class='methods'>
2161
2161
" ) ?;
@@ -2168,8 +2168,8 @@ fn item_trait(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
2168
2168
// Output the documentation for each function individually
2169
2169
if !required. is_empty ( ) {
2170
2170
write ! ( w, "
2171
- <h2 id='required-methods' class='section-header'>
2172
- <a href='#required-methods'>Required Methods </a>
2171
+ <h2 id='required-methods' class='small- section-header'>
2172
+ Required Methods <a href='#required-methods' class='anchor'> </a>
2173
2173
</h2>
2174
2174
<div class='methods'>
2175
2175
" ) ?;
@@ -2180,8 +2180,8 @@ fn item_trait(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
2180
2180
}
2181
2181
if !provided. is_empty ( ) {
2182
2182
write ! ( w, "
2183
- <h2 id='provided-methods' class='section-header'>
2184
- <a href='#provided-methods'>Provided Methods </a>
2183
+ <h2 id='provided-methods' class='small- section-header'>
2184
+ Provided Methods <a href='#provided-methods' class='anchor'> </a>
2185
2185
</h2>
2186
2186
<div class='methods'>
2187
2187
" ) ?;
@@ -2196,8 +2196,8 @@ fn item_trait(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
2196
2196
2197
2197
let cache = cache ( ) ;
2198
2198
write ! ( w, "
2199
- <h2 id='implementors' class='section-header'>
2200
- <a href='#implementors'>Implementors </a>
2199
+ <h2 id='implementors' class='small- section-header'>
2200
+ Implementors <a href='#implementors' class='anchor'> </a>
2201
2201
</h2>
2202
2202
<ul class='item-list' id='implementors-list'>
2203
2203
" ) ?;
@@ -2436,8 +2436,8 @@ fn item_struct(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
2436
2436
} ) . peekable ( ) ;
2437
2437
if let doctree:: Plain = s. struct_type {
2438
2438
if fields. peek ( ) . is_some ( ) {
2439
- write ! ( w, "<h2 id='fields' class='fields section-header'>
2440
- <a href='#fields'>Fields </a></h2>" ) ?;
2439
+ write ! ( w, "<h2 id='fields' class='fields small- section-header'>
2440
+ Fields <a href='#fields' class='anchor'> </a></h2>" ) ?;
2441
2441
for ( field, ty) in fields {
2442
2442
let id = derive_id ( format ! ( "{}.{}" ,
2443
2443
ItemType :: StructField ,
@@ -2485,8 +2485,8 @@ fn item_union(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
2485
2485
}
2486
2486
} ) . peekable ( ) ;
2487
2487
if fields. peek ( ) . is_some ( ) {
2488
- write ! ( w, "<h2 id='fields' class='fields section-header'>
2489
- <a href='#fields'>Fields </a></h2>" ) ?;
2488
+ write ! ( w, "<h2 id='fields' class='fields small- section-header'>
2489
+ Fields <a href='#fields' class='anchor'> </a></h2>" ) ?;
2490
2490
for ( field, ty) in fields {
2491
2491
write ! ( w, "<span id='{shortty}.{name}' class=\" {shortty}\" ><code>{name}: {ty}</code>
2492
2492
</span>" ,
@@ -2558,8 +2558,8 @@ fn item_enum(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
2558
2558
2559
2559
document ( w, cx, it) ?;
2560
2560
if !e. variants . is_empty ( ) {
2561
- write ! ( w, "<h2 id='variants' class='variants section-header'>
2562
- <a href='#variants'>Variants </a></h2>\n " ) ?;
2561
+ write ! ( w, "<h2 id='variants' class='variants small- section-header'>
2562
+ Variants <a href='#variants' class='anchor'> </a></h2>\n " ) ?;
2563
2563
for variant in & e. variants {
2564
2564
let id = derive_id ( format ! ( "{}.{}" ,
2565
2565
ItemType :: Variant ,
@@ -2831,16 +2831,16 @@ fn render_assoc_items(w: &mut fmt::Formatter,
2831
2831
let render_mode = match what {
2832
2832
AssocItemRender :: All => {
2833
2833
write ! ( w, "
2834
- <h2 id='methods' class='section-header'>
2835
- <a href='#methods'>Methods </a>
2834
+ <h2 id='methods' class='small- section-header'>
2835
+ Methods <a href='#methods' class='anchor'> </a>
2836
2836
</h2>
2837
2837
" ) ?;
2838
2838
RenderMode :: Normal
2839
2839
}
2840
2840
AssocItemRender :: DerefFor { trait_, type_, deref_mut_ } => {
2841
2841
write ! ( w, "
2842
- <h2 id='deref-methods' class='section-header'>
2843
- <a href='#deref-methods'> Methods from {}<Target = {}></a>
2842
+ <h2 id='deref-methods' class='small- section-header'>
2843
+ Methods from {}<Target = {}><a href='#deref-methods' class='anchor'> </a>
2844
2844
</h2>
2845
2845
" , trait_, type_) ?;
2846
2846
RenderMode :: ForDeref { mut_ : deref_mut_ }
@@ -2865,8 +2865,8 @@ fn render_assoc_items(w: &mut fmt::Formatter,
2865
2865
render_deref_methods ( w, cx, impl_, containing_item, has_deref_mut) ?;
2866
2866
}
2867
2867
write ! ( w, "
2868
- <h2 id='implementations' class='section-header'>
2869
- <a href='#implementations'>Trait Implementations </a>
2868
+ <h2 id='implementations' class='small- section-header'>
2869
+ Trait Implementations <a href='#implementations' class='anchor'> </a>
2870
2870
</h2>
2871
2871
" ) ?;
2872
2872
for i in & traits {
0 commit comments