Skip to content

Commit bd5ee83

Browse files
authored
Rollup merge of #130933 - lolbinarycat:rustdoc-li-p, r=GuillaumeGomez,notriddle
rustdoc: lists items that contain multiple paragraphs are more clear fixes #130622 before: ![before](https://github.com/user-attachments/assets/fe54d8ee-8a1a-45fc-9434-2737c5c6f4d5) after: ![after](https://github.com/user-attachments/assets/095be365-1bfc-4001-8664-59bc4125bb05)
2 parents a5820b4 + 94a3f96 commit bd5ee83

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

+7
Original file line numberDiff line numberDiff line change
@@ -960,6 +960,13 @@ pre, .rustdoc.src .example-wrap, .example-wrap .src-line-numbers {
960960
display: inline-block;
961961
}
962962

963+
.docblock li {
964+
margin-bottom: .8em;
965+
}
966+
.docblock li p {
967+
margin-bottom: .1em;
968+
}
969+
963970
/* "where ..." clauses with block display are also smaller */
964971
div.where {
965972
white-space: pre-wrap;

0 commit comments

Comments
 (0)