about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJonas Schievink <jonasschievink@gmail.com>2020-10-04 15:45:46 +0200
committerGitHub <noreply@github.com>2020-10-04 15:45:46 +0200
commitec9b4d5e6cdc999926b58ccbe397f0bff623cc6e (patch)
tree3042e847a885706f0626e8572b706f9a26190f4a
parent94bd3c981659d93ac6f954baaef3626a889f97b6 (diff)
parentadfba2b694b19e4aa6a99289eeda7b48ae402ab8 (diff)
downloadrust-ec9b4d5e6cdc999926b58ccbe397f0bff623cc6e.tar.gz
rust-ec9b4d5e6cdc999926b58ccbe397f0bff623cc6e.zip
Rollup merge of #77518 - camelid:rustdoc-use-correct-link-font, r=GuillaumeGomez
Only use Fira Sans for the first `td` in item lists

Fixes #77516.

Fixes an issue where links in the one-line version of an item's docs
would be in Fira Sans, while the rest would be in a serifed font.
-rw-r--r--src/librustdoc/html/static/rustdoc.css2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css
index 935b96e51fc..3f4bd2886b1 100644
--- a/src/librustdoc/html/static/rustdoc.css
+++ b/src/librustdoc/html/static/rustdoc.css
@@ -120,7 +120,7 @@ h3.impl, h3.method, h3.type {
 }
 
 h1, h2, h3, h4,
-.sidebar, a.source, .search-input, .content table :not(code)>a,
+.sidebar, a.source, .search-input, .content table td:first-child > a,
 .collapse-toggle, div.item-list .out-of-band,
 #source-sidebar, #sidebar-toggle {
 	font-family: "Fira Sans", sans-serif;