From aa66a4950b745800bda580e2c65cfac7e4e0af4a Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sun, 11 Apr 2021 11:09:25 +0800 Subject: [PATCH] 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 --- doc/_themes/ceph/static/ceph.css_t | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/doc/_themes/ceph/static/ceph.css_t b/doc/_themes/ceph/static/ceph.css_t index cedcce8ea80..cd5ad609075 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; +} -- 2.47.3