From e2e9de8b4d794db800db099e9dfa1432ded2de7b Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 13 Mar 2020 13:11:49 +0800 Subject: [PATCH] doc: overide the default margin for "ul.simple > li" by default, the user agent's css sets `margin-block-end` of "ul ul" to "0", which renders the unordered lists in release notes cluttered. as we are using nested unordered list to present the changes in different components. in this change a customized css is added to reset the begin and end margin of ul to 1em, which is the default value of top level ul. Signed-off-by: Kefu Chai --- doc/_static/css/custom.css | 4 ++++ doc/conf.py | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 doc/_static/css/custom.css diff --git a/doc/_static/css/custom.css b/doc/_static/css/custom.css new file mode 100644 index 000000000000..bb77b4f72536 --- /dev/null +++ b/doc/_static/css/custom.css @@ -0,0 +1,4 @@ +ul.simple > li { + margin-block-begin : 1em; + margin-block-end : 1em; +} diff --git a/doc/conf.py b/doc/conf.py index f5fb6ffc9754..6ed0f7ee5f68 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -43,7 +43,9 @@ html_static_path = ["_static"] html_sidebars = { '**': ['smarttoc.html', 'searchbox.html'], } - +html_css_files = [ + 'css/custom.css', +] sys.path.insert(0, os.path.abspath('_ext')) extensions = [ -- 2.47.3