about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-10-01 21:09:20 +0200
committerGitHub <noreply@github.com>2024-10-01 21:09:20 +0200
commitbd5ee830c437d89e97c573978ba045d965b1327f (patch)
treec7d26b2bd5b3e63fe890752a9d2e21cd12c4a9bb
parenta5820b47d15baddd2ea9a4579bd290999eb4f02b (diff)
parent94a3f96f71e78e74c1fdf76ed6dad5b042accfaf (diff)
downloadrust-bd5ee830c437d89e97c573978ba045d965b1327f.tar.gz
rust-bd5ee830c437d89e97c573978ba045d965b1327f.zip
Rollup merge of #130933 - lolbinarycat:rustdoc-li-p, r=GuillaumeGomez,notriddle
rustdoc: lists items that contain multiple paragraphs are more clear

fixes https://github.com/rust-lang/rust/issues/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)
-rw-r--r--src/librustdoc/html/static/css/rustdoc.css7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css
index 3367e863c6f..beac7e73c62 100644
--- a/src/librustdoc/html/static/css/rustdoc.css
+++ b/src/librustdoc/html/static/css/rustdoc.css
@@ -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;