ikiwiki/doc/todo/stylesheet_suggestion_for_v...

34 lines
754 B
Markdown

I suggest the attached change for verbatim contents. Paddings/margins are
optional, but IMHO, we should at least define a monospace font.
-- Recai (via email)
AFAICS, my web browser already has a built-in monospace font, which I can
see in action in the preformatted patch below. So I don't see why the
default style sheet should do this. --[[Joey]]
[[tag patch]]
<pre>
diff --git a/basewiki/style.css b/basewiki/style.css
index 6ec6f89..1970561 100644
--- a/basewiki/style.css
+++ b/basewiki/style.css
@@ -198,3 +198,15 @@ li.L7 {
li.L8 {
list-style: upper-alpha;
}
+
+/* verbatim content */
+pre, tt, code {
+ font-family: "Courier", monospace;
+ color: black;
+}
+
+pre {
+ margin-left: 1.5em;
+ padding: 0.5em;
+ overflow: hidden;
+}
</pre>