Skip to content

Commit e0aa2be

Browse files
committed
Add rule to remove double margin inside dl's
1 parent 231afc5 commit e0aa2be

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

sphinx_rtd_theme/static/css/theme.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/sass/_theme_rst.sass

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,12 @@
410410
dd
411411
margin: 0 0 ($base-line-height / 2) $base-line-height
412412
line-height: $base-line-height
413+
dd:last-child
414+
> p:last-child,
415+
> ol:last-child,
416+
> ul:last-child,
417+
> table:last-child
418+
margin-bottom: 0
413419
html.writer-html4 & dl:not(.docutils),
414420
html.writer-html5 & dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple)
415421
margin-bottom: $base-line-height

0 commit comments

Comments
 (0)