From 93030fa38125393dda4ef663188e194f98d198fd Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Wed, 7 Feb 2024 14:23:24 +0100 Subject: [PATCH] css: Move styles for the generated API documents to libvirt-api.css MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- docs/css/libvirt-api.css | 112 +++++++++++++++++++++++++++++++++++++++ docs/css/libvirt.css | 111 -------------------------------------- docs/css/main.css | 1 + docs/css/meson.build | 1 + 4 files changed, 114 insertions(+), 111 deletions(-) create mode 100644 docs/css/libvirt-api.css diff --git a/docs/css/libvirt-api.css b/docs/css/libvirt-api.css new file mode 100644 index 0000000000..ab6d846530 --- /dev/null +++ b/docs/css/libvirt-api.css @@ -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; +} diff --git a/docs/css/libvirt.css b/docs/css/libvirt.css index 2dc127f373..02942bcf75 100644 --- a/docs/css/libvirt.css +++ b/docs/css/libvirt.css @@ -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; } diff --git a/docs/css/main.css b/docs/css/main.css index d832836f3a..fdcba22130 100644 --- a/docs/css/main.css +++ b/docs/css/main.css @@ -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); diff --git a/docs/css/meson.build b/docs/css/meson.build index 74007c8051..6f4f140ffc 100644 --- a/docs/css/meson.build +++ b/docs/css/meson.build @@ -2,6 +2,7 @@ docs_css_files = [ 'fonts.css', 'generic.css', 'libvirt.css', + 'libvirt-api.css', 'libvirt-template.css', 'main.css', 'mobile-template.css',