diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-12-08 23:18:05 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-08 23:18:05 +0100 |
| commit | d748c1ddbbbf118240653608f4d7d01307bfaa83 (patch) | |
| tree | cf87840ff2a53dc3e8ad8bcb28a6964525a5efdc /src/librustdoc/html/render | |
| parent | d26fc45e5bf170907cefcaa83c5b8e6cf6cb1351 (diff) | |
| parent | e1ff02bb818fc85b0820bc989cd7fa64dd1e4300 (diff) | |
| download | rust-d748c1ddbbbf118240653608f4d7d01307bfaa83.tar.gz rust-d748c1ddbbbf118240653608f4d7d01307bfaa83.zip | |
Rollup merge of #91534 - jsha:heading-color, r=GuillaumeGomez
Make rustdoc headings black, and markdown blue Demo: https://rustdoc.crud.net/jsha/heading-color/std/string/index.html#structs https://rustdoc.crud.net/jsha/heading-color/std/string/struct.String.html#examples Fixes #91304 r? ```@camelid``` /cc ```@GuillaumeGomez``` (Note: we may want to make rustdoc headings and markdown headings the same color -- #90245 -- but we would want to do that intentionally; this is fixing up a change that did so accidentally)
Diffstat (limited to 'src/librustdoc/html/render')
| -rw-r--r-- | src/librustdoc/html/render/print_item.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/render/print_item.rs b/src/librustdoc/html/render/print_item.rs index e139ac8581e..1691de93bdd 100644 --- a/src/librustdoc/html/render/print_item.rs +++ b/src/librustdoc/html/render/print_item.rs @@ -296,7 +296,7 @@ fn item_module(w: &mut Buffer, cx: &Context<'_>, item: &clean::Item, items: &[cl let (short, name) = item_ty_to_strs(myty.unwrap()); write!( w, - "<h2 id=\"{id}\" class=\"section-header\">\ + "<h2 id=\"{id}\" class=\"small-section-header\">\ <a href=\"#{id}\">{name}</a>\ </h2>\n{}", ITEM_TABLE_OPEN, |
