From: Kefu Chai Date: Fri, 13 Mar 2020 05:11:49 +0000 (+0800) Subject: doc: overide the default margin for "ul.simple > li" X-Git-Tag: v15.1.1~5^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e2e9de8b4d794db800db099e9dfa1432ded2de7b;p=ceph-ci.git 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 --- diff --git a/doc/_static/css/custom.css b/doc/_static/css/custom.css new file mode 100644 index 00000000000..bb77b4f7253 --- /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 f5fb6ffc975..6ed0f7ee5f6 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 = [