Skip to content

Commit

Permalink
Unrolled build for rust-lang#130933
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#130933 - lolbinarycat:rustdoc-li-p, r=GuillaumeGomez,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
rust-timer authored Oct 1, 2024
2 parents c817d5d + 94a3f96 commit 9b2daa6
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 9b2daa6

Please sign in to comment.