Skip to content

Commit

Permalink
Rollup merge of rust-lang#130933 - lolbinarycat:rustdoc-li-p, r=Guill…
Browse files Browse the repository at this point in the history
…aumeGomez,notriddle

rustdoc: lists items that contain multiple paragraphs are more clear

fixes rust-lang#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)
  • Loading branch information
matthiaskrgr authored Oct 1, 2024
2 parents a5820b4 + 94a3f96 commit bd5ee83
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -960,6 +960,13 @@ pre, .rustdoc.src .example-wrap, .example-wrap .src-line-numbers {
display: inline-block;
}

.docblock li {
margin-bottom: .8em;
}
.docblock li p {
margin-bottom: .1em;
}

/* "where ..." clauses with block display are also smaller */
div.where {
white-space: pre-wrap;
Expand Down

0 comments on commit bd5ee83

Please sign in to comment.