in the latest document generated from RtD, the spacing after `ul li p`
elements is set to 24px as the plain `p` elements. but this the lists
more sparse and difficult to read.
in this change, the spacing is restored to 0 as it was in old theme.css
in sphinx_rtd_theme.
Signed-off-by: Kefu Chai <kchai@redhat.com>
margin-left: 24px;
}
+.rst-content section ol li>p,
+.rst-content section ol li>p:last-child,
+.rst-content section ul li>p,
+.rst-content section ul li>p:last-child {
+ margin-bottom: 12px;
+}
+
+.rst-content section ol li>p:only-child,
+.rst-content section ol li>p:only-child:last-child,
+.rst-content section ul li>p:only-child,
+.rst-content section ul li>p:only-child:last-child {
+ margin-bottom: 0;
+}
+
/* versions */
.injected .rst-versions.rst-badge {
left: 0;
.columns-3 > div {
width: 33.33%;
}
+
+div[class*="highlight-"] {
+ margin-bottom: 12px;
+}