]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
css: Add style for '.. note:' and '.. warning:' rST roles
authorPeter Krempa <pkrempa@redhat.com>
Wed, 27 Aug 2025 13:13:36 +0000 (15:13 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 28 Aug 2025 06:42:05 +0000 (08:42 +0200)
One of our kbase docs already uses '.. note:' and we could use e.g.
'.. warning:' to replace some of emphasiszed paragraphs to make them
more prominent.

Introduce style for the generated HTML to add some hilight for them.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
docs/css/generic.css

index df37ceea376260e5d126d45ddcc8d5d2515c619b..87cd94d9f478cb3b475c0f235368f79b04644cb5 100644 (file)
@@ -91,6 +91,32 @@ pre {
     padding: 1em;
 }
 
+.admonition-title {
+    font-size: 110%;
+    font-weight: bold;
+}
+
+div.admonition,
+aside.admonition {
+    border: 1px solid #999999;
+}
+
+.admonition p {
+    padding: 0 1em 0 1em;
+}
+
+.note .admonition-title  {
+    margin: 0;
+    padding: 0.5em 1em 0.5em 1em;
+    background: #6cb5ac;
+}
+
+.warning .admonition-title {
+    margin: 0;
+    padding: 0.5em 1em 0.5em 1em;
+    background: #ffcc44;
+}
+
 a {
     color: rgb(0, 95, 97);
 }