Skip to content

Commit 78d8ce3

Browse files
committed
rustdoc: remove no-op CSS h1-6 { border-bottom-color }
For this rule to have an actual effect, the border-bottom width needs specified, elsewhere, without also specifying the color. This doesn't happen. Ever since 88b137d, every spot where headers get a border assigned to them also assigns the color.
1 parent a37499a commit 78d8ce3

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

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

-7
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,6 @@ h1, h2, h3, h4 {
141141
h1.fqn {
142142
margin: 0;
143143
padding: 0;
144-
border-bottom-color: var(--headings-border-bottom-color);
145-
}
146-
h2, h3, h4 {
147-
border-bottom-color: var(--headings-border-bottom-color);
148144
}
149145
.main-heading {
150146
display: flex;
@@ -662,9 +658,6 @@ h2.location a {
662658

663659
.docblock h5 { font-size: 1rem; }
664660
.docblock h6 { font-size: 0.875rem; }
665-
.docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5, .docblock h6 {
666-
border-bottom-color: var(--headings-border-bottom-color);
667-
}
668661

669662
.docblock {
670663
margin-left: 24px;

0 commit comments

Comments
 (0)