Skip to content

Commit 7f1734c

Browse files
committed
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.
1 parent 294f0ee commit 7f1734c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/librustdoc/html/static/css/rustdoc.css

-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,6 @@ details.rustdoc-toggle.non-exhaustive > summary::before,
222222
font-family: "Fira Sans", Arial, NanumBarunGothic, sans-serif;
223223
}
224224

225-
h1, h2, h3, h4,
226225
a#toggle-all-docs,
227226
a.anchor,
228227
.small-section-header a,

0 commit comments

Comments
 (0)