[PATCH 6/7] docs: css: Modify appearance of the kbase directory page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Remove the gray background and switch to underlined links.

This change is done by using the fact that docutils name the top level
element based on the pagee name. This means that in the stylesheet we
can apply selectors directly to the specific page.

This removes the need to have a RST 'container' named 'panel' in the
file.

Specific selectors are used only for elements on the directory page.

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 docs/kbase.rst   |  2 +-
 docs/libvirt.css | 20 ++++++++------------
 2 files changed, 9 insertions(+), 13 deletions(-)

diff --git a/docs/kbase.rst b/docs/kbase.rst
index 78daaa5989..8f888c27cd 100644
--- a/docs/kbase.rst
+++ b/docs/kbase.rst
@@ -2,7 +2,7 @@
 Knowledge base
 ==============

-.. container:: panel widepanel
+.. container::

    `Debug logs <kbase/debuglogs.html>`__
      Configuration of logging and tips on how to file a good bug report.
diff --git a/docs/libvirt.css b/docs/libvirt.css
index 3d94029787..01627f2113 100644
--- a/docs/libvirt.css
+++ b/docs/libvirt.css
@@ -402,14 +402,6 @@ div.panel {
     background: rgb(230, 230, 230);
 }

-div.widepanel {
-    width: 70em;
-    max-width: 95%;
-    margin-left: 0px;
-    float: left;
-    background: rgb(230, 230, 230);
-}
-
 div.panel h2 {
     margin-top: 0px;
     padding: 0.5em;
@@ -479,7 +471,8 @@ br.clear {
     font-size: smaller;
 }

-div.panel dd {
+div.panel dd,
+#knowledge-base dd {
     font-size: smaller;
 }

@@ -489,7 +482,8 @@ div.panel a {

 div.panel ul,
 div.panel p,
-div.panel dl {
+div.panel dl,
+#knowledge-base p {
     padding: 0.5em;
     margin: 0px;
 }
@@ -498,10 +492,12 @@ div.panel dl {
 div.panel ul {
     margin-left: 1em;
 }
-div.panel dt {
+div.panel dt,
+#knowledge-base dt {
     margin: 0px;
 }
-div.panel dd {
+div.panel dd,
+#knowledge-base dd {
     margin: 0px;
     margin-bottom: 1em;
 }
-- 
2.26.2




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux