]> xenbits.xensource.com Git - libvirt.git/commitdiff
css: Move styles for the generated API documents to libvirt-api.css
authorPeter Krempa <pkrempa@redhat.com>
Wed, 7 Feb 2024 13:23:24 +0000 (14:23 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 8 Feb 2024 15:48:47 +0000 (16:48 +0100)
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
docs/css/libvirt-api.css [new file with mode: 0644]
docs/css/libvirt.css
docs/css/main.css
docs/css/meson.build

diff --git a/docs/css/libvirt-api.css b/docs/css/libvirt-api.css
new file mode 100644 (file)
index 0000000..ab6d846
--- /dev/null
@@ -0,0 +1,112 @@
+/* CSS styles for the generated API documents */
+
+div.api {
+    border: 1px solid #999999;
+    background: #eeeeee;
+    color: black;
+    padding: 3px;
+}
+
+div.api pre {
+    margin: 0px;
+    border: 0px;
+    background: inherit;
+    padding: inherit;
+}
+
+div.api table {
+    margin: 0px;
+    padding-left: 2em;
+    border-spacing: 0px;
+}
+
+div.api table td, div.variablelist table td {
+    vertical-align: top;
+    padding-left: 1em;
+}
+
+.api {
+    font-family: monospace;
+}
+
+.api .type {
+    font-weight: bold;
+    white-space: nowrap;
+    color: darkslateblue;
+}
+
+.api .keyword {
+    font-weight: bold;
+    color: #A2F;
+}
+
+.api .comment {
+    color: #080;
+    margin-left: 2em;
+    position: relative;
+}
+
+.api .comment:before {
+    content: ": ";
+    position: absolute;
+    left: -1.3em;
+}
+
+.api .undisclosed {
+    font-style: italic;
+    letter-spacing: .3ex;
+    font-weight: bolder;
+    text-transform: uppercase;
+    margin-left: 2em;
+}
+
+.api .directive {
+    color: teal;
+}
+
+.api :link:hover, .api :link:focus {
+    color: blue;
+    border-color: blue;
+}
+
+.api :link {
+    text-decoration: none;
+}
+
+.api table td,.api table th {
+    border: 0px;
+}
+
+.api table tr:hover td, .api table col:hover td {
+    background: inherit;
+}
+
+.api table tr td:hover {
+    background: inherit;
+}
+
+dl.variablelist > dt {
+    display: block;
+    float: left;
+    font-style: italic;
+    font-weight: inherit;
+}
+
+.variablelist dd {
+    padding-left: 10em;
+}
+
+dl.variablelist > dt:after {
+    content: ": ";
+}
+
+div.description pre.code {
+    border: 1px dashed grey;
+    background-color: inherit;
+    padding: 5px 10px 5px 10px;
+    margin-left: 2.5em;
+}
+
+td.enumvalue {
+    white-space: nowrap;
+}
index 2dc127f373a2f28a6778c5e973a4c3c434a19ebb..02942bcf75faefd1593f40901bf100499f85a54c 100644 (file)
@@ -19,31 +19,6 @@ a {
     color: rgb(0, 95, 97);
 }
 
-div.api {
-    border: 1px solid #999999;
-    background: #eeeeee;
-    color: black;
-    padding: 3px;
-}
-
-div.api pre {
-    margin: 0px;
-    border: 0px;
-    background: inherit;
-    padding: inherit;
-}
-
-div.api table {
-    margin: 0px;
-    padding-left: 2em;
-    border-spacing: 0px;
-}
-
-div.api table td, div.variablelist table td {
-    vertical-align: top;
-    padding-left: 1em;
-}
-
 table {
     border-collapse: collapse;
     min-width: 60%;
@@ -99,88 +74,6 @@ img.diagram {
     margin-right: auto;
 }
 
-.api {
-    font-family: monospace;
-}
-
-.api .type {
-    font-weight: bold;
-    white-space: nowrap;
-    color: darkslateblue;
-}
-
-.api .keyword {
-    font-weight: bold;
-    color: #A2F;
-}
-
-.api .comment {
-    color: #080;
-    margin-left: 2em;
-    position: relative;
-}
-
-.api .comment:before {
-    content: ": ";
-    position: absolute;
-    left: -1.3em;
-}
-
-.api .undisclosed {
-    font-style: italic;
-    letter-spacing: .3ex;
-    font-weight: bolder;
-    text-transform: uppercase;
-    margin-left: 2em;
-}
-
-.api .directive {
-    color: teal;
-}
-
-.api :link:hover, .api :link:focus {
-    color: blue;
-    border-color: blue;
-}
-
-.api :link {
-    text-decoration: none;
-}
-
-.api table td,.api table th {
-    border: 0px;
-}
-
-.api table tr:hover td, .api table col:hover td {
-    background: inherit;
-}
-
-.api table tr td:hover {
-    background: inherit;
-}
-
-dl.variablelist > dt {
-    display: block;
-    float: left;
-    font-style: italic;
-    font-weight: inherit;
-}
-
-.variablelist dd {
-    padding-left: 10em;
-}
-
-dl.variablelist > dt:after {
-    content: ": ";
-}
-
-div.description pre.code {
-    border: 1px dashed grey;
-    background-color: inherit;
-    padding: 5px 10px 5px 10px;
-    margin-left: 2.5em;
-}
-
 #the-virtualization-api section,
 #the-virtualization-api .section,
 #documentation section,
@@ -275,10 +168,6 @@ div.description pre.code {
     margin-bottom: 1em;
 }
 
-td.enumvalue {
-    white-space: nowrap;
-}
-
 .removedhv {
     color: darkred;
 }
index d832836f3a4f3a14257ea340ad19aba332eb9516..fdcba2213028dac5590a008c8df6c45be4bc7be1 100644 (file)
@@ -1,6 +1,7 @@
 @import url(fonts.css);
 @import url(generic.css);
 @import url(libvirt.css);
+@import url(libvirt-api.css);
 @import url(libvirt-template.css);
 @import url(mobile-template.css);
 @import url(mobile-libvirt.css);
index 74007c8051fb221a8b5bebe4fd49b0b5a824436b..6f4f140ffcdd1a03698799f333fea1ef71ea3192 100644 (file)
@@ -2,6 +2,7 @@ docs_css_files = [
   'fonts.css',
   'generic.css',
   'libvirt.css',
+  'libvirt-api.css',
   'libvirt-template.css',
   'main.css',
   'mobile-template.css',