From a042c5b6594e3c9b8093f4dce6cf8da788ef7c56 Mon Sep 17 00:00:00 2001
From: Kefu Chai <kchai@redhat.com>
Date: Wed, 10 Mar 2021 11:08:47 +0800
Subject: [PATCH] doc/_themes: fine tune styling

* 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 | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/doc/_themes/ceph/static/ceph.css_t b/doc/_themes/ceph/static/ceph.css_t
index 029bfae2186..3f7c0afb07c 100644
--- a/doc/_themes/ceph/static/ceph.css_t
+++ b/doc/_themes/ceph/static/ceph.css_t
@@ -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;