Fix list margins

This commit is contained in:
Guillaume Gomez 2024-10-04 17:53:44 +02:00
parent 3002af6cb6
commit cc36e0d983

View File

@ -961,10 +961,13 @@ pre, .rustdoc.src .example-wrap, .example-wrap .src-line-numbers {
} }
.docblock li { .docblock li {
margin-bottom: .8em; margin-bottom: .4em;
} }
.docblock li p { .docblock li p:not(:last-child) {
margin-bottom: .1em; /* This margin is voluntarily smaller than `.docblock li` to keep the visual
list element items separated while also having a visual separation (although
smaller) for paragraphs. */
margin-bottom: .3em;
} }
/* "where ..." clauses with block display are also smaller */ /* "where ..." clauses with block display are also smaller */