[PATCH 3/7] docs: css: Add separation for table of contents generated from RST

Peter Krempa posted 7 patches 5 years, 6 months ago
[PATCH 3/7] docs: css: Add separation for table of contents generated from RST
Posted by Peter Krempa 5 years, 6 months ago
The table of contents of documents generated from RST is quite squeezed
together. Add 2em-s worth of vertical separation on each side.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
---
 docs/libvirt.css | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/docs/libvirt.css b/docs/libvirt.css
index 551adac2f2..6b1e86c7d8 100644
--- a/docs/libvirt.css
+++ b/docs/libvirt.css
@@ -590,3 +590,10 @@ th p, td p {
     margin-top: 0px;
     margin-bottom: 0px;
 }
+
+/* Elements with id 'contents' contain the table of contents generated by docutils */
+
+#contents {
+    margin-top: 2em;
+    margin-bottom: 2em;
+}
-- 
2.26.2

Re: [PATCH 3/7] docs: css: Add separation for table of contents generated from RST
Posted by Ján Tomko 5 years, 6 months ago
On a Monday in 2020, Peter Krempa wrote:
>The table of contents of documents generated from RST is quite squeezed
>together. Add 2em-s worth of vertical separation on each side.
>
>Signed-off-by: Peter Krempa <pkrempa@redhat.com>
>---
> docs/libvirt.css | 7 +++++++
> 1 file changed, 7 insertions(+)
>

Reviewed-by: Ján Tomko <jtomko@redhat.com>

Jano