From: Peter Krempa Date: Wed, 27 Aug 2025 13:13:36 +0000 (+0200) Subject: css: Add style for '.. note:' and '.. warning:' rST roles X-Git-Tag: v11.7.0-rc2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e627b91a4128b9465e058324260e0b583898da48;p=thirdparty%2Flibvirt.git 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 Reviewed-by: Ján Tomko --- diff --git a/docs/css/generic.css b/docs/css/generic.css index df37ceea37..87cd94d9f4 100644 --- a/docs/css/generic.css +++ b/docs/css/generic.css @@ -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); }