diff options
| author | Camelid <camelidcamel@gmail.com> | 2020-08-30 13:45:17 -0700 |
|---|---|---|
| committer | Camelid <camelidcamel@gmail.com> | 2020-09-01 13:41:56 -0700 |
| commit | c86d249e94ae45fff1c882c98d85aaf49133f0b6 (patch) | |
| tree | 012cf3b42d92d02cbc592bc0a67cf4ee58ed9f1b /src/librustdoc/html/render | |
| parent | 397db054cb1f3d98e3d2809d25c60f1979cd5a97 (diff) | |
| download | rust-c86d249e94ae45fff1c882c98d85aaf49133f0b6.tar.gz rust-c86d249e94ae45fff1c882c98d85aaf49133f0b6.zip | |
Use "Fira Sans" for crate list font
Fira Sans is what's used for module lists and other item lists. Previously, the default body font, "Source Serif Pro", was used for crate lists, which didn't visually match other item lists.
Diffstat (limited to 'src/librustdoc/html/render')
| -rw-r--r-- | src/librustdoc/html/render/mod.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs index 470e9d5ae76..e4aba8963c7 100644 --- a/src/librustdoc/html/render/mod.rs +++ b/src/librustdoc/html/render/mod.rs @@ -1062,12 +1062,13 @@ themePicker.onblur = handleThemeButtonsBlur; let content = format!( "<h1 class='fqn'>\ <span class='in-band'>List of all crates</span>\ - </h1><ul class='mod'>{}</ul>", + </h1>\ + <ul class='crate mod'>{}</ul>", krates .iter() .map(|s| { format!( - "<li><a class=\"mod\" href=\"{}index.html\">{}</a></li>", + "<li><a class=\"crate mod\" href=\"{}index.html\">{}</a></li>", ensure_trailing_slash(s), s ) |
