]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/absolute_sizes_in_default_CSS.mdwn
5cf70d6ee6b2443e2658b64decb7ea1cc9d56eef
[ikiwiki.git] / doc / bugs / absolute_sizes_in_default_CSS.mdwn
1 While toying around with some font sizes on my persona ikiwiki I discovered that some font sizes in the default CSS are fixed rather than relative. Here's a git patch that replaces them with relative font sizes (assuming the default 12pt/16px base font size recommended by the W3C):
2
3 <pre>
4 From 01c14db255bbb727d8dd1e72c3f6f2f25f07e757 Mon Sep 17 00:00:00 2001
5 From: Giuseppe Bilotta &lt;giuseppe.bilotta@gmail.com&gt;
6 Date: Tue, 17 Aug 2010 00:48:24 +0200
7 Subject: [PATCH] Use relative font-sizes
8
9 ---
10  doc/style.css |    4 ++--
11  1 files changed, 2 insertions(+), 2 deletions(-)
12
13 diff --git a/doc/style.css b/doc/style.css
14 index 66d962b..fa4b2a3 100644
15 --- a/doc/style.css
16 +++ b/doc/style.css
17 @@ -14,7 +14,7 @@ nav {
18  
19  .header {
20         margin: 0;
21 -       font-size: 22px;
22 +       font-size: 140%;
23         font-weight: bold;
24         line-height: 1em;
25         display: block;
26 @@ -22,7 +22,7 @@ nav {
27  
28  .inlineheader .author {
29         margin: 0;
30 -       font-size: 18px;
31 +       font-size: 112%;
32         font-weight: bold;
33         display: block;
34  }
35 -- 
36 1.7.2.rc0.231.gc73d
37 </pre>