Skip to content

Commit

Permalink
Docs: fix list spacing
Browse files Browse the repository at this point in the history
Workaround sphinx-rtd-theme regression
on spacing in "open" lists.
  • Loading branch information
medmunds committed Mar 7, 2024
1 parent 5949069 commit e758579
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/_static/anymail-theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,20 @@ table.sticky-left th:first-of-type[colspan] > p {
border-radius: 50px;
padding: 6px 12px;
}

/* Improve list item spacing in "open" lists.
https://github.com/readthedocs/sphinx_rtd_theme/issues/1555
Undoes this rule in non-.simple lists:
https://github.com/readthedocs/sphinx_rtd_theme/blob/2.0.0/src/sass/_theme_rst.sass#L174-L175
*/
.rst-content .section ol:not(.simple) > li > p:only-child,
.rst-content .section ol:not(.simple) > li > p:only-child:last-child,
.rst-content .section ul:not(.simple) > li > p:only-child,
.rst-content .section ul:not(.simple) > li > p:only-child:last-child,
.rst-content section ol:not(.simple) > li > p:only-child,
.rst-content section ol:not(.simple) > li > p:only-child:last-child,
.rst-content section ul:not(.simple) > li > p:only-child,
.rst-content section ul:not(.simple) > li > p:only-child:last-child {
margin-bottom: 12px;
}

0 comments on commit e758579

Please sign in to comment.