]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
doc: overide the default margin for "ul.simple > li"
authorKefu Chai <kchai@redhat.com>
Fri, 13 Mar 2020 05:11:49 +0000 (13:11 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 13 Mar 2020 12:16:18 +0000 (20:16 +0800)
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 <kchai@redhat.com>
doc/_static/css/custom.css [new file with mode: 0644]
doc/conf.py

diff --git a/doc/_static/css/custom.css b/doc/_static/css/custom.css
new file mode 100644 (file)
index 0000000..bb77b4f
--- /dev/null
@@ -0,0 +1,4 @@
+ul.simple > li {
+    margin-block-begin : 1em;
+    margin-block-end : 1em;
+}
index f5fb6ffc9754bc786df2830506cc82225f8ac265..6ed0f7ee5f68eca080c17bc16422b0ca0f2799a7 100644 (file)
@@ -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 = [