]> sipb.mit.edu Git - ikiwiki.git/blob - doc/todo/stylesheet_suggestion_for_verbatim_content.mdwn
web commit by http://joey.kitenet.net/
[ikiwiki.git] / doc / todo / stylesheet_suggestion_for_verbatim_content.mdwn
1 I suggest the attached change for verbatim contents.  Paddings/margins are
2 optional, but IMHO, we should at least define a monospace font.
3
4 -- Recai (via email)
5
6 AFAICS, my web browser already has a built-in monospace font, which I can
7 see in action in the preformatted patch below. So I don't see why the
8 default style sheet should do this. --[[Joey]]
9
10 [[tag patch]]
11
12 <pre>
13 diff --git a/basewiki/style.css b/basewiki/style.css
14 index 6ec6f89..1970561 100644
15 --- a/basewiki/style.css
16 +++ b/basewiki/style.css
17 @@ -198,3 +198,15 @@ li.L7 {
18  li.L8 {
19         list-style: upper-alpha;
20  }
21 +
22 +/* verbatim content */
23 +pre, tt, code {
24 +       font-family: "Courier", monospace;
25 +       color: black;
26 +}
27 +
28 +pre {
29 +       margin-left: 1.5em;
30 +       padding: 0.5em;
31 +       overflow: hidden;
32 +}
33 </pre>