Skip to content

Commit cc36e0d

Browse files
Fix list margins
1 parent 3002af6 commit cc36e0d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

+6-3
Original file line numberDiff line numberDiff line change
@@ -961,10 +961,13 @@ pre, .rustdoc.src .example-wrap, .example-wrap .src-line-numbers {
961961
}
962962

963963
.docblock li {
964-
margin-bottom: .8em;
964+
margin-bottom: .4em;
965965
}
966-
.docblock li p {
967-
margin-bottom: .1em;
966+
.docblock li p:not(:last-child) {
967+
/* This margin is voluntarily smaller than `.docblock li` to keep the visual
968+
list element items separated while also having a visual separation (although
969+
smaller) for paragraphs. */
970+
margin-bottom: .3em;
968971
}
969972

970973
/* "where ..." clauses with block display are also smaller */

0 commit comments

Comments
 (0)