]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/_themes: remove spacing after `ul li p`
authorKefu Chai <kchai@redhat.com>
Sun, 11 Apr 2021 03:09:25 +0000 (11:09 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 14 Apr 2021 01:03:03 +0000 (09:03 +0800)
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>
doc/_themes/ceph/static/ceph.css_t

index cedcce8ea80288055e3b2ff389a896bc2895b41d..cd5ad6090750d91c19eb1b5be7c3f0b1679d7cb4 100644 (file)
@@ -142,6 +142,20 @@ html.writer-html5 .rst-content table.docutils th,
   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;
@@ -174,3 +188,7 @@ html.writer-html5 .rst-content table.docutils th,
 .columns-3 > div {
   width: 33.33%;
 }
+
+div[class*="highlight-"] {
+  margin-bottom: 12px;
+}