Skip to content

Commit 9cd238e

Browse files
Merge pull request #289 from jonathanhefner/content-tweak-li-top-margin
Increase top margin for long list items
2 parents 3f0fee5 + 3e59512 commit 9cd238e

File tree

1 file changed

+5
-0
lines changed
  • lib/rdoc/generator/template/rails/resources/css

1 file changed

+5
-0
lines changed

lib/rdoc/generator/template/rails/resources/css/main.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,11 @@ html {
382382
margin-top: var(--space-sm);
383383
}
384384

385+
/* Increase top margin for list items when any item has more than one paragraph */
386+
:where(#content :is(ol, ul):has(> li > p:not(:only-child))) * + li {
387+
margin-top: var(--space);
388+
}
389+
385390
:where(#content) code {
386391
font-style: normal;
387392
}

0 commit comments

Comments
 (0)