[PATCH] docs: render <span class="literal"> with monospace font
Daniel P. Berrangé
berrange at redhat.com
Thu Feb 6 13:05:18 UTC 2020
When using ``....`` in RST, this results in <span class="literal">...</span>
instead of <code>...</code>. We thus need an extra rule to render it
with a monospace font. Colouring a light gray also helps the text
stand out a little more and matches background of <pre> blocks.
Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
---
docs/libvirt.css | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/docs/libvirt.css b/docs/libvirt.css
index d2e1842b62..50cf02e348 100644
--- a/docs/libvirt.css
+++ b/docs/libvirt.css
@@ -574,3 +574,8 @@ ul.news-section-content li dl dd {
margin-top: 0.5em;
margin-bottom: 0.5em;
}
+
+span.literal, code {
+ font-family: monospace;
+ background: #eeeeee;
+}
--
2.24.1
More information about the libvir-list
mailing list