Skip to content

Commit 2178429

Browse files
committed
correctly clear top margin from first child in admonition content
1 parent 1b4229c commit 2178429

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/css/doc.css

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,8 @@
300300
font-size: calc(16 / var(--rem-base) * 1rem);
301301
}
302302

303-
.doc .admonitionblock td.content > :first-child {
303+
.doc .admonitionblock td.content > :not(.title):first-child,
304+
.doc .admonitionblock td.content > .title + * {
304305
margin-top: 0;
305306
}
306307

@@ -563,10 +564,6 @@
563564
padding-bottom: 0;
564565
}
565566

566-
.doc .admonitionblock .title + .paragraph {
567-
margin-top: 0;
568-
}
569-
570567
.doc .exampleblock > .content,
571568
.doc details.result > .content {
572569
background: var(--example-background);

0 commit comments

Comments
 (0)