about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-09-16 11:17:03 +0530
committerGitHub <noreply@github.com>2022-09-16 11:17:03 +0530
commit18d3063350809de08f98fb74479a28d7149a3d14 (patch)
treec70186b88f31e6f1e97a8b30995e774ba46b9983
parent458555dbf6e4847e8b4f19d31f37f45baf7fd128 (diff)
parent7f1734cd94eaeda71af5dc807a8ec58b3209d220 (diff)
downloadrust-18d3063350809de08f98fb74479a28d7149a3d14.tar.gz
rust-18d3063350809de08f98fb74479a28d7149a3d14.zip
Rollup merge of #101864 - notriddle:notriddle/h1-h2-h3-h4, r=GuillaumeGomez
rustdoc: remove no-op CSS `h1-4 { color: --main-color }`

Headers already inherit the font color they need from their parents.

This rule dates back to earlier versions of the rustdoc theme, where headers and body had different text colors.

https://github.com/rust-lang/rust/blob/68c15be8b5a28297ae58ea030adf49f265e41127/src/librustdoc/html/static/main.css#L72-L98

Nowadays, since the two have exactly the same color (specified by the `--main-color` variable), this rule does nothing.
-rw-r--r--src/librustdoc/html/static/css/rustdoc.css1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css
index 8bfaaf21c8e..b0dcd36d6b3 100644
--- a/src/librustdoc/html/static/css/rustdoc.css
+++ b/src/librustdoc/html/static/css/rustdoc.css
@@ -222,7 +222,6 @@ details.rustdoc-toggle.non-exhaustive > summary::before,
 	font-family: "Fira Sans", Arial, NanumBarunGothic, sans-serif;
 }
 
-h1, h2, h3, h4,
 a#toggle-all-docs,
 a.anchor,
 .small-section-header a,