[PATCH 5/7] docs: css: Add a gray box around table of contents of RST based docs

Peter Krempa posted 7 patches 5 years, 6 months ago
[PATCH 5/7] docs: css: Add a gray box around table of contents of RST based docs
Posted by Peter Krempa 5 years, 6 months ago
Emphasise the table of contents visually.

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

diff --git a/docs/libvirt.css b/docs/libvirt.css
index 4dc9d3ac76..3d94029787 100644
--- a/docs/libvirt.css
+++ b/docs/libvirt.css
@@ -594,8 +594,12 @@ th p, td p {
 /* Elements with id 'contents' contain the table of contents generated by docutils */

 #contents {
-    margin-top: 2em;
-    margin-bottom: 2em;
+    margin-top: 1em;
+    margin-bottom: 1em;
+    background: rgb(230, 230, 230);
+    padding: 0.5em;
+    padding-left: 0px;
+    display: inline-block;
 }

 #contents p.topic-title {
-- 
2.26.2

Re: [PATCH 5/7] docs: css: Add a gray box around table of contents of RST based docs
Posted by Ján Tomko 5 years, 6 months ago
On a Monday in 2020, Peter Krempa wrote:
>Emphasise the table of contents visually.
>
>Signed-off-by: Peter Krempa <pkrempa@redhat.com>
>---
> docs/libvirt.css | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>

test $(( $RANDOM % 2 )) == 0 || echo "Reviewed-by: Ján Tomko <jtomko@redhat.com>"

Jano