]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/_themes: fine tune styling
authorKefu Chai <kchai@redhat.com>
Wed, 10 Mar 2021 03:08:47 +0000 (11:08 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 10 Mar 2021 04:28:28 +0000 (12:28 +0800)
* fix the "dl" (definition list) display in manpage. before this
  change, if an item in dl is composed of strings with different fonts,
  it is cluttered into a single string. after this change, they are
  separated with proper spacing as before. see the "WORKLOAD" section in
  https://docs.ceph.com/en/latest/man/8/ceph-syn/ and
  https://docs.ceph.com/en/octopus/man/8/ceph-syn/
* reduce the spacing in "ul" (unordered list) in table. before
  this change, we have large spacing at end of a list in table. after
  this change, the spacing is reduced. see
  https://docs.ceph.com/en/latest/start/hardware-recommendations/#ram
  https://docs.ceph.com/en/octopus/start/hardware-recommendations/#ram
* increase the spacing between two "ul"s in table. see
  https://docs.ceph.com/en/latest/start/hardware-recommendations/#Processor
  https://docs.ceph.com/en/octopus/start/hardware-recommendations/#ram

Signed-off-by: Kefu Chai <kchai@redhat.com>
doc/_themes/ceph/static/ceph.css_t

index 029bfae218618e05a16f3537f204cdb8f1d82bd4..3f7c0afb07c674ab7779e32535bcaef8aa0ca324 100644 (file)
@@ -128,6 +128,19 @@ html.writer-html5 .rst-content table.docutils th,
   white-space: normal;
 }
 
+.rst-content table.docutils ul {
+  margin-bottom: inherit;
+}
+
+/* lists */
+.rst-content .section dl:not(.docutils) dt {
+  display: table-cell;
+}
+
+.rst-content table.docutils ul + ul {
+  margin-top: 1em;
+}
+
 /* versions */
 .injected .rst-versions.rst-badge {
   left: 0;