author | Lars Hjemli <hjemli@gmail.com> | 2007-05-11 22:29:37 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-05-11 22:29:37 (UTC) |
commit | f5af0beb6ab569d64950ca55a52a07923917ce81 (patch) (unidiff) | |
tree | 5116ef68974fd94315e5b186c6e9eecb6b572f6e | |
parent | 9f48df63f6d8d9a8abcc02cd2f08293da7081520 (diff) | |
download | cgit-f5af0beb6ab569d64950ca55a52a07923917ce81.zip cgit-f5af0beb6ab569d64950ca55a52a07923917ce81.tar.gz cgit-f5af0beb6ab569d64950ca55a52a07923917ce81.tar.bz2 |
css: fix bad rendering in Internet Explorer
The layout-tables used border-collapse:separate, which maked all pages look
really bad in IE. Fix it.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | cgit.css | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1,100 +1,105 @@ | |||
1 | body { | 1 | body { |
2 | font-family: arial; | 2 | font-family: arial; |
3 | font-size: 11pt; | 3 | font-size: 11pt; |
4 | background: white; | 4 | background: white; |
5 | } | ||
6 | |||
7 | body, table { | ||
5 | padding: 0em; | 8 | padding: 0em; |
6 | margin: 0em; | 9 | margin: 0em; |
7 | } | 10 | } |
8 | 11 | ||
12 | table { | ||
13 | border-collapse: collapse; | ||
14 | } | ||
9 | 15 | ||
10 | h2 { | 16 | h2 { |
11 | font-size: 120%; | 17 | font-size: 120%; |
12 | font-weight: bold; | 18 | font-weight: bold; |
13 | margin-top: 0em; | 19 | margin-top: 0em; |
14 | margin-bottom: 0.25em; | 20 | margin-bottom: 0.25em; |
15 | } | 21 | } |
16 | 22 | ||
17 | h3 { | 23 | h3 { |
18 | margin-top: 0em; | 24 | margin-top: 0em; |
19 | font-size: 100%; | 25 | font-size: 100%; |
20 | font-weight: normal; | 26 | font-weight: normal; |
21 | } | 27 | } |
22 | 28 | ||
23 | a { | 29 | a { |
24 | color: blue; | 30 | color: blue; |
25 | text-decoration: none; | 31 | text-decoration: none; |
26 | } | 32 | } |
27 | 33 | ||
28 | a:hover { | 34 | a:hover { |
29 | text-decoration: underline; | 35 | text-decoration: underline; |
30 | } | 36 | } |
31 | 37 | ||
32 | table.list { | 38 | table.list { |
33 | border: none; | 39 | border: none; |
34 | border-collapse: collapse; | 40 | border-collapse: collapse; |
35 | } | 41 | } |
36 | 42 | ||
37 | table.list tr { | 43 | table.list tr { |
38 | background: white; | 44 | background: white; |
39 | } | 45 | } |
40 | 46 | ||
41 | table.list tr:hover { | 47 | table.list tr:hover { |
42 | background: #eee; | 48 | background: #eee; |
43 | } | 49 | } |
44 | 50 | ||
45 | table.list tr.nohover:hover { | 51 | table.list tr.nohover:hover { |
46 | background: white; | 52 | background: white; |
47 | } | 53 | } |
48 | 54 | ||
49 | table.list th { | 55 | table.list th { |
50 | font-weight: normal; | 56 | font-weight: normal; |
51 | border-bottom: solid 1px #777; | 57 | border-bottom: solid 1px #777; |
52 | padding: 0.1em 0.5em 0.1em 0.5em; | 58 | padding: 0.1em 0.5em 0.1em 0.5em; |
53 | vertical-align: baseline; | 59 | vertical-align: baseline; |
54 | } | 60 | } |
55 | 61 | ||
56 | table.list td { | 62 | table.list td { |
57 | border: none; | 63 | border: none; |
58 | padding: 0.1em 0.5em 0.1em 0.5em; | 64 | padding: 0.1em 0.5em 0.1em 0.5em; |
59 | } | 65 | } |
60 | 66 | ||
61 | img { | 67 | img { |
62 | border: none; | 68 | border: none; |
63 | } | 69 | } |
64 | 70 | ||
65 | table#layout { | 71 | table#layout { |
66 | width: 100%; | 72 | width: 100%; |
67 | border-collapse: separate; | 73 | border-collapse: collapse; |
68 | border-spacing: 0px; | ||
69 | margin: 0px; | 74 | margin: 0px; |
70 | } | 75 | } |
71 | 76 | ||
72 | td#header, td#logo { | 77 | td#header, td#logo { |
73 | color: #666; | 78 | color: #666; |
74 | background-color: #ddd; | 79 | background-color: #ddd; |
75 | border-bottom: solid 1px #000; | 80 | border-bottom: solid 1px #000; |
76 | } | 81 | } |
77 | 82 | ||
78 | td#header { | 83 | td#header { |
79 | font-size: 150%; | 84 | font-size: 150%; |
80 | font-weight: bold; | 85 | font-weight: bold; |
81 | padding: 0.2em 0.5em; | 86 | padding: 0.2em 0.5em; |
82 | vertical-align: text-bottom; | 87 | vertical-align: text-bottom; |
83 | } | 88 | } |
84 | 89 | ||
85 | td#logo { | 90 | td#logo { |
86 | text-align: right; | 91 | text-align: right; |
87 | vertical-align: middle; | 92 | vertical-align: middle; |
88 | padding-right: 0.5em; | 93 | padding-right: 0.5em; |
89 | } | 94 | } |
90 | 95 | ||
91 | td#crumb, td#search { | 96 | td#crumb, td#search { |
92 | color: #ccc; | 97 | color: #ccc; |
93 | border-top: solid 3px #555; | 98 | border-top: solid 3px #555; |
94 | background-color: #666; | 99 | background-color: #666; |
95 | border-bottom: solid 1px #333; | 100 | border-bottom: solid 1px #333; |
96 | padding: 2px 1em; | 101 | padding: 2px 1em; |
97 | } | 102 | } |
98 | 103 | ||
99 | td#crumb { | 104 | td#crumb { |
100 | font-weight: bold; | 105 | font-weight: bold; |