Skip to content

Commit 9aec3a0

Browse files
committed
Remove border-bottom from most docblocks.
Headings in the top-doc docblock still get a border-bottom due to a rule that covers all h2, h3, and h4. Method docblocks are generally h5, and so don't get a border-bottom anymore. This fixes a problem where a sub-sub-heading within a method would have a line that went all the way across the page, creating a division that made that sub-sub-heading look much more important than it really is.
1 parent ec724ac commit 9aec3a0

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

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

-4
Original file line numberDiff line numberDiff line change
@@ -502,10 +502,6 @@ nav.sub {
502502
white-space: pre-wrap;
503503
}
504504

505-
.docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5, .docblock h6 {
506-
border-bottom: 1px solid;
507-
}
508-
509505
.top-doc .docblock h2 { font-size: 1.3em; }
510506
.top-doc .docblock h3 { font-size: 1.15em; }
511507
.top-doc .docblock h4,

0 commit comments

Comments
 (0)