From c555a4e10df3810a12037a68b104f14af26c7efd Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 16 Mar 2020 17:26:06 +0800 Subject: [PATCH] doc/_static/css: fine tune the spacing * `ul.simple > li` is also used in front page, where the items are too sparse now. so we need to restore the default spacing. * `ul.simple > li > ul > li:last-child` is used to control the spacing between nested unordered list. we need have more spacing there. * `div.section > ul > li > p` is added to decrease the spacing of nested list items. Signed-off-by: Kefu Chai --- doc/_static/css/custom.css | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/_static/css/custom.css b/doc/_static/css/custom.css index bb77b4f725361..c44ccb450b5ec 100644 --- a/doc/_static/css/custom.css +++ b/doc/_static/css/custom.css @@ -1,4 +1,8 @@ -ul.simple > li { - margin-block-begin : 1em; +ul.simple > li > ul > li:last-child { margin-block-end : 1em; } + +div.section > ul > li > p { + margin-block-start : 0.6em; + margin-block-end : 0.6em; +} -- 2.39.5