about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2023-12-24 19:23:42 +0100
committerGuillaume Gomez <guillaume.gomez@huawei.com>2023-12-24 19:23:42 +0100
commit279b11c4b50236647c1f6cb11329bfd74dba476e (patch)
treeb9608d93c246283d3c5f6dfe447a1a9b72ce477e
parent2378227d73cf35185ec9e32f55520f40891f170b (diff)
downloadrust-279b11c4b50236647c1f6cb11329bfd74dba476e.tar.gz
rust-279b11c4b50236647c1f6cb11329bfd74dba476e.zip
Fix display of warning block if it is first element of the top doc block
-rw-r--r--src/librustdoc/html/static/css/rustdoc.css3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css
index 6e673aa77c5..665bb5d42bc 100644
--- a/src/librustdoc/html/static/css/rustdoc.css
+++ b/src/librustdoc/html/static/css/rustdoc.css
@@ -1367,6 +1367,9 @@ documentation. */
 	font-weight: bold;
 	font-size: 1.25rem;
 }
+.top-doc > .docblock >.warning:first-child::before {
+	top: 20px;
+}
 
 a.test-arrow {
 	visibility: hidden;