1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-12-13 00:25:30 +03:00
Files
libvirt/docs/css/generic.css
Peter Krempa e627b91a41 css: Add style for '.. note:' and '.. warning:' rST roles
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>
2025-08-28 08:42:05 +02:00

171 lines
2.1 KiB
CSS

body {
margin: 0em;
padding: 0px;
color: rgb(0,0,0);
background: #ffffff;
font-family: LibvirtOverpass;
}
p, ul, ol, dl {
padding: 0px;
margin: 0px;
}
p {
margin-top: 1em;
margin-bottom: 1em;
}
ul, ol {
margin-left: 2em;
}
dt {
margin-left: 1em;
margin-right: 2em;
}
dt code, dt .literal {
font-weight: bold;
}
dl dd {
margin-left: 2em;
margin-right: 2em;
margin-bottom: 0.5em;
}
h1, h2, h3, h4, h5, h6 {
font-weight: bold;
margin: 0px;
padding: 0px;
margin-bottom: 0.25em;
}
h1 {
margin-top: 0em;
font-size: 1.6em;
}
h2 {
margin-top: 1.0em;
font-size: 1.4em;
}
h3 {
margin-top: 1.0em;
font-size: 1.2em;
}
h4 {
margin-top: 1.0em;
font-size: 1.1em;
}
h5 {
margin-top: 0.75em;
font-size: 1em;
}
h6 {
margin-top: 0.75em;
font-size: 0.8em;
}
code, pre, tt {
font-family: LibvirtOverpassMono;
}
dd code, p code, tt {
background-color: #eeeeee;
}
pre {
font-size: 90%;
}
pre {
border: 1px solid #999999;
background: #eeeeee;
color: black;
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);
}
table {
border-collapse: collapse;
min-width: 60%;
margin-left: auto;
margin-right: auto;
}
table th {
background: rgb(0, 95, 97);
color: rgb(255, 255, 255);
padding: 0.5em;
}
table th a {
color: inherit;
text-decoration: inherit;
}
table td, table th {
border: 1px solid rgb(60, 133, 124);
}
table td {
padding: 4px;
}
table tr:hover td, table col:hover td {
background: #eeeeee;
}
table tr td:hover {
background: #c5dbd8;
}
.literal, code {
font-family: monospace;
background: #eeeeee;
}
th p, td p {
margin-top: 0px;
margin-bottom: 0px;
}
span.del {
text-decoration: line-through;
}