]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/_static/css: fine tune the spacing
authorKefu Chai <kchai@redhat.com>
Mon, 16 Mar 2020 09:26:06 +0000 (17:26 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 16 Mar 2020 12:12:38 +0000 (20:12 +0800)
* `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 <kchai@redhat.com>
doc/_static/css/custom.css

index bb77b4f725361dc2d5cd534a39ef4e19ed7b967a..c44ccb450b5ec6a3a1ecbe697f91f6cd14f23583 100644 (file)
@@ -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;
+}