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>
This commit is contained in:
Kefu Chai 2021-03-10 11:08:47 +08:00
parent 51192ca3f9
commit a042c5b659

View 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;