From: Kefu Chai Date: Sun, 11 Apr 2021 03:09:25 +0000 (+0800) Subject: doc/_themes: remove spacing after `ul li p` X-Git-Tag: v17.1.0~2267^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=aa66a4950b745800bda580e2c65cfac7e4e0af4a;p=ceph.git doc/_themes: remove spacing after `ul li p` 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 --- diff --git a/doc/_themes/ceph/static/ceph.css_t b/doc/_themes/ceph/static/ceph.css_t index cedcce8ea802..cd5ad6090750 100644 --- a/doc/_themes/ceph/static/ceph.css_t +++ b/doc/_themes/ceph/static/ceph.css_t @@ -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; +}