author | Lars Hjemli <hjemli@gmail.com> | 2007-11-16 08:52:03 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-11-16 08:52:03 (UTC) |
commit | 6ef637e0908ca5a14675b3513f48cd390d3757fe (patch) (unidiff) | |
tree | e9e74f73e3d52d5b1fb931ac92a99476d09130af /cgit.css | |
parent | fd90d2826a979f3844312718ad130880cf19d52c (diff) | |
download | cgit-6ef637e0908ca5a14675b3513f48cd390d3757fe.zip cgit-6ef637e0908ca5a14675b3513f48cd390d3757fe.tar.gz cgit-6ef637e0908ca5a14675b3513f48cd390d3757fe.tar.bz2 |
Use tables for page layout
It feels like the Right Thing, and it fixes some rendering problems in a
much used webbrowser.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | cgit.css | 49 |
1 files changed, 29 insertions, 20 deletions
@@ -1,438 +1,447 @@ | |||
1 | body, table { | 1 | body, table { |
2 | padding: 0em; | 2 | padding: 0em; |
3 | margin: 0em; | 3 | margin: 0em; |
4 | } | 4 | } |
5 | 5 | ||
6 | body { | 6 | body { |
7 | font-family: sans; | 7 | font-family: sans; |
8 | font-size: 10pt; | 8 | font-size: 10pt; |
9 | color: #333; | 9 | color: #333; |
10 | background: white; | 10 | background: white; |
11 | padding-left: 4px; | 11 | padding: 4px; |
12 | } | 12 | } |
13 | 13 | ||
14 | table { | 14 | table { |
15 | border-collapse: collapse; | 15 | border-collapse: collapse; |
16 | } | 16 | } |
17 | 17 | ||
18 | h2 { | 18 | h2 { |
19 | font-size: 120%; | 19 | font-size: 120%; |
20 | font-weight: bold; | 20 | font-weight: bold; |
21 | margin-top: 0em; | 21 | margin-top: 0em; |
22 | margin-bottom: 0.25em; | 22 | margin-bottom: 0.25em; |
23 | } | 23 | } |
24 | 24 | ||
25 | h3 { | 25 | h3 { |
26 | margin-top: 0em; | 26 | margin-top: 0em; |
27 | font-size: 100%; | 27 | font-size: 100%; |
28 | font-weight: normal; | 28 | font-weight: normal; |
29 | } | 29 | } |
30 | 30 | ||
31 | h4 { | 31 | h4 { |
32 | margin-top: 1.5em; | 32 | margin-top: 1.5em; |
33 | margin-bottom: 0.1em; | 33 | margin-bottom: 0.1em; |
34 | font-size: 100%; | 34 | font-size: 100%; |
35 | font-weight: bold; | 35 | font-weight: bold; |
36 | } | 36 | } |
37 | 37 | ||
38 | a { | 38 | a { |
39 | color: #600; | 39 | color: #600; |
40 | text-decoration: none; | 40 | text-decoration: none; |
41 | } | 41 | } |
42 | 42 | ||
43 | a:hover { | 43 | a:hover { |
44 | background-color: #ddd; | 44 | background-color: #ddd; |
45 | text-decoration: none; | 45 | text-decoration: none; |
46 | } | 46 | } |
47 | 47 | ||
48 | table.list { | 48 | table.list { |
49 | border: none; | 49 | border: none; |
50 | border-collapse: collapse; | 50 | border-collapse: collapse; |
51 | } | 51 | } |
52 | 52 | ||
53 | table.list tr { | 53 | table.list tr { |
54 | background: white; | 54 | background: white; |
55 | } | 55 | } |
56 | 56 | ||
57 | table.list tr:hover { | 57 | table.list tr:hover { |
58 | background: #f8f8f8; | 58 | background: #f8f8f8; |
59 | } | 59 | } |
60 | 60 | ||
61 | table.list tr.nohover:hover { | 61 | table.list tr.nohover:hover { |
62 | background: white; | 62 | background: white; |
63 | } | 63 | } |
64 | 64 | ||
65 | table.list th { | 65 | table.list th { |
66 | font-weight: bold; | 66 | font-weight: bold; |
67 | border-bottom: solid 1px #777; | 67 | border-bottom: solid 1px #777; |
68 | padding: 0.1em 0.5em 0.1em 0.5em; | 68 | padding: 0.1em 0.5em 0.1em 0.5em; |
69 | vertical-align: baseline; | 69 | vertical-align: baseline; |
70 | } | 70 | } |
71 | 71 | ||
72 | table.list td { | 72 | table.list td { |
73 | border: none; | 73 | border: none; |
74 | padding: 0.1em 0.5em 0.1em 0.5em; | 74 | padding: 0.1em 0.5em 0.1em 0.5em; |
75 | } | 75 | } |
76 | 76 | ||
77 | img { | 77 | img { |
78 | border: none; | 78 | border: none; |
79 | } | 79 | } |
80 | 80 | ||
81 | div#sidebar { | 81 | table#layout { |
82 | border-collapse: collapse; | ||
83 | border: none; | ||
84 | margin: 0px; | ||
85 | } | ||
86 | |||
87 | td#sidebar { | ||
82 | vertical-align: top; | 88 | vertical-align: top; |
83 | width: 162px; | 89 | width: 162px; |
84 | padding: 0px 0px 0px 0px; | 90 | padding: 0px 0px 0px 0px; |
85 | margin: 4px; | 91 | margin: 0px; |
86 | float: left; | ||
87 | } | 92 | } |
88 | 93 | ||
89 | div#logo { | 94 | td#sidebar table { |
95 | border-collapse: separate; | ||
96 | border-spacing: 0px; | ||
90 | margin: 0px; | 97 | margin: 0px; |
91 | padding: 4px 0px 4px 0px; | 98 | padding: 0px; |
92 | text-align: center; | ||
93 | background-color: #ccc; | 99 | background-color: #ccc; |
100 | } | ||
101 | |||
102 | td#sidebar table.sidebar td.sidebar { | ||
103 | padding: 4px; | ||
94 | border-top: solid 1px #eee; | 104 | border-top: solid 1px #eee; |
95 | border-left: solid 1px #eee; | 105 | border-left: solid 1px #eee; |
96 | border-right: solid 1px #aaa; | 106 | border-right: solid 1px #aaa; |
97 | border-bottom: solid 1px #aaa; | 107 | border-bottom: solid 1px #aaa; |
98 | } | 108 | } |
99 | 109 | ||
100 | div#sidebar div.infobox { | 110 | div#logo { |
101 | margin: 0px 0px 0px 0px; | 111 | margin: 0px; |
102 | padding: 0.5em; | 112 | padding: 4px 0px 4px 0px; |
103 | text-align: left; | 113 | text-align: center; |
104 | background-color: #ccc; | 114 | background-color: #ccc; |
105 | border-top: solid 1px #eee; | 115 | border-top: solid 1px #eee; |
106 | border-left: solid 1px #eee; | 116 | border-left: solid 1px #eee; |
107 | border-right: solid 1px #aaa; | 117 | border-right: solid 1px #aaa; |
108 | border-bottom: solid 1px #aaa; | 118 | border-bottom: solid 1px #aaa; |
109 | } | 119 | } |
110 | 120 | ||
111 | div#sidebar div.infobox h1 { | 121 | td#sidebar h1 { |
112 | font-size: 10pt; | 122 | font-size: 10pt; |
113 | font-weight: bold; | 123 | font-weight: bold; |
114 | margin: 8px 0px 0px 0px; | 124 | margin: 8px 0px 0px 0px; |
115 | } | 125 | } |
116 | 126 | ||
117 | div#sidebar div.infobox h1.first { | 127 | td#sidebar h1.first { |
118 | margin-top: 0px; | 128 | margin-top: 0px; |
119 | } | 129 | } |
120 | 130 | ||
121 | div#sidebar div.infobox a.menu { | 131 | td#sidebar a.menu { |
122 | display: block; | 132 | display: block; |
123 | background-color: #ccc; | 133 | background-color: #ccc; |
124 | padding: 0.1em 0.5em; | 134 | padding: 0.1em 0.5em; |
125 | text-decoration: none; | 135 | text-decoration: none; |
126 | } | 136 | } |
127 | 137 | ||
128 | div#sidebar div.infobox a.menu:hover { | 138 | td#sidebar a.menu:hover { |
129 | background-color: #bbb; | 139 | background-color: #bbb; |
130 | text-decoration: none; | 140 | text-decoration: none; |
131 | } | 141 | } |
132 | 142 | ||
133 | div#sidebar div.infobox select { | 143 | td#sidebar select { |
134 | width: 100%; | 144 | width: 100%; |
135 | margin: 2px 0px 0px 0px; | 145 | margin: 2px 0px 0px 0px; |
136 | } | 146 | } |
137 | 147 | ||
138 | td#branch-dropdown-cell { | 148 | td#sidebar form { |
139 | width: 99%; | 149 | text-align: right; |
140 | } | 150 | } |
141 | 151 | ||
142 | input#switch-btn { | 152 | input#switch-btn { |
143 | width: 20px; | ||
144 | margin: 2px 0px 0px 0px; | 153 | margin: 2px 0px 0px 0px; |
145 | } | 154 | } |
146 | 155 | ||
147 | div#sidebar div.infobox input.txt { | 156 | td#sidebar input.txt { |
148 | width: 100%; | 157 | width: 100%; |
149 | margin: 2px 0px 0px 0px; | 158 | margin: 2px 0px 0px 0px; |
150 | } | 159 | } |
151 | 160 | ||
152 | table#grid { | 161 | table#grid { |
153 | margin: 0px; | 162 | margin: 0px; |
154 | } | 163 | } |
155 | 164 | ||
156 | td#content { | 165 | td#content { |
157 | vertical-align: top; | 166 | vertical-align: top; |
158 | padding: 1em 2em 1em 1em; | 167 | padding: 1em 2em 1em 1em; |
159 | border: none; | 168 | border: none; |
160 | } | 169 | } |
161 | 170 | ||
162 | div#summary { | 171 | div#summary { |
163 | vertical-align: top; | 172 | vertical-align: top; |
164 | margin-bottom: 1em; | 173 | margin-bottom: 1em; |
165 | } | 174 | } |
166 | 175 | ||
167 | table#downloads { | 176 | table#downloads { |
168 | float: right; | 177 | float: right; |
169 | border-collapse: collapse; | 178 | border-collapse: collapse; |
170 | border: solid 1px #777; | 179 | border: solid 1px #777; |
171 | margin-left: 0.5em; | 180 | margin-left: 0.5em; |
172 | margin-bottom: 0.5em; | 181 | margin-bottom: 0.5em; |
173 | } | 182 | } |
174 | 183 | ||
175 | table#downloads th { | 184 | table#downloads th { |
176 | background-color: #ccc; | 185 | background-color: #ccc; |
177 | } | 186 | } |
178 | 187 | ||
179 | div#blob { | 188 | div#blob { |
180 | border: solid 1px black; | 189 | border: solid 1px black; |
181 | } | 190 | } |
182 | 191 | ||
183 | div.error { | 192 | div.error { |
184 | color: red; | 193 | color: red; |
185 | font-weight: bold; | 194 | font-weight: bold; |
186 | margin: 1em 2em; | 195 | margin: 1em 2em; |
187 | } | 196 | } |
188 | 197 | ||
189 | a.ls-blob, a.ls-dir, a.ls-mod { | 198 | a.ls-blob, a.ls-dir, a.ls-mod { |
190 | font-family: monospace; | 199 | font-family: monospace; |
191 | } | 200 | } |
192 | 201 | ||
193 | td.ls-size { | 202 | td.ls-size { |
194 | text-align: right; | 203 | text-align: right; |
195 | } | 204 | } |
196 | 205 | ||
197 | td.ls-size { | 206 | td.ls-size { |
198 | font-family: monospace; | 207 | font-family: monospace; |
199 | } | 208 | } |
200 | 209 | ||
201 | td.ls-mode { | 210 | td.ls-mode { |
202 | font-family: monospace; | 211 | font-family: monospace; |
203 | } | 212 | } |
204 | 213 | ||
205 | table.blob { | 214 | table.blob { |
206 | margin-top: 0.5em; | 215 | margin-top: 0.5em; |
207 | border-top: solid 1px black; | 216 | border-top: solid 1px black; |
208 | } | 217 | } |
209 | 218 | ||
210 | table.blob td.no { | 219 | table.blob td.no { |
211 | border-right: solid 1px black; | 220 | border-right: solid 1px black; |
212 | color: black; | 221 | color: black; |
213 | background-color: #eee; | 222 | background-color: #eee; |
214 | text-align: right; | 223 | text-align: right; |
215 | } | 224 | } |
216 | 225 | ||
217 | table.blob td.no a { | 226 | table.blob td.no a { |
218 | color: black; | 227 | color: black; |
219 | } | 228 | } |
220 | 229 | ||
221 | table.blob td.no a:hover { | 230 | table.blob td.no a:hover { |
222 | color: black; | 231 | color: black; |
223 | text-decoration: none; | 232 | text-decoration: none; |
224 | } | 233 | } |
225 | 234 | ||
226 | table.blob td.txt { | 235 | table.blob td.txt { |
227 | white-space: pre; | 236 | white-space: pre; |
228 | font-family: monospace; | 237 | font-family: monospace; |
229 | padding-left: 0.5em; | 238 | padding-left: 0.5em; |
230 | } | 239 | } |
231 | 240 | ||
232 | table.nowrap td { | 241 | table.nowrap td { |
233 | white-space: nowrap; | 242 | white-space: nowrap; |
234 | } | 243 | } |
235 | 244 | ||
236 | table.commit-info { | 245 | table.commit-info { |
237 | border-collapse: collapse; | 246 | border-collapse: collapse; |
238 | margin-top: 1.5em; | 247 | margin-top: 1.5em; |
239 | } | 248 | } |
240 | 249 | ||
241 | table.commit-info th { | 250 | table.commit-info th { |
242 | text-align: left; | 251 | text-align: left; |
243 | font-weight: normal; | 252 | font-weight: normal; |
244 | padding: 0.1em 1em 0.1em 0.1em; | 253 | padding: 0.1em 1em 0.1em 0.1em; |
245 | vertical-align: top; | 254 | vertical-align: top; |
246 | } | 255 | } |
247 | 256 | ||
248 | table.commit-info td { | 257 | table.commit-info td { |
249 | font-weight: normal; | 258 | font-weight: normal; |
250 | padding: 0.1em 1em 0.1em 0.1em; | 259 | padding: 0.1em 1em 0.1em 0.1em; |
251 | } | 260 | } |
252 | 261 | ||
253 | div.commit-subject { | 262 | div.commit-subject { |
254 | font-weight: bold; | 263 | font-weight: bold; |
255 | font-size: 125%; | 264 | font-size: 125%; |
256 | margin: 1.5em 0em 0.5em 0em; | 265 | margin: 1.5em 0em 0.5em 0em; |
257 | padding: 0em; | 266 | padding: 0em; |
258 | } | 267 | } |
259 | 268 | ||
260 | div.commit-msg { | 269 | div.commit-msg { |
261 | white-space: pre; | 270 | white-space: pre; |
262 | font-family: monospace; | 271 | font-family: monospace; |
263 | } | 272 | } |
264 | 273 | ||
265 | div.diffstat-header { | 274 | div.diffstat-header { |
266 | font-weight: bold; | 275 | font-weight: bold; |
267 | padding-top: 1.5em; | 276 | padding-top: 1.5em; |
268 | } | 277 | } |
269 | 278 | ||
270 | table.diffstat { | 279 | table.diffstat { |
271 | border-collapse: collapse; | 280 | border-collapse: collapse; |
272 | border: solid 1px #aaa; | 281 | border: solid 1px #aaa; |
273 | background-color: #eee; | 282 | background-color: #eee; |
274 | } | 283 | } |
275 | 284 | ||
276 | table.diffstat th { | 285 | table.diffstat th { |
277 | font-weight: normal; | 286 | font-weight: normal; |
278 | text-align: left; | 287 | text-align: left; |
279 | text-decoration: underline; | 288 | text-decoration: underline; |
280 | padding: 0.1em 1em 0.1em 0.1em; | 289 | padding: 0.1em 1em 0.1em 0.1em; |
281 | font-size: 100%; | 290 | font-size: 100%; |
282 | } | 291 | } |
283 | 292 | ||
284 | table.diffstat td { | 293 | table.diffstat td { |
285 | padding: 0.2em 0.2em 0.1em 0.1em; | 294 | padding: 0.2em 0.2em 0.1em 0.1em; |
286 | font-size: 100%; | 295 | font-size: 100%; |
287 | border: none; | 296 | border: none; |
288 | } | 297 | } |
289 | 298 | ||
290 | table.diffstat td.mode { | 299 | table.diffstat td.mode { |
291 | white-space: nowrap; | 300 | white-space: nowrap; |
292 | } | 301 | } |
293 | 302 | ||
294 | table.diffstat td span.modechange { | 303 | table.diffstat td span.modechange { |
295 | padding-left: 1em; | 304 | padding-left: 1em; |
296 | color: red; | 305 | color: red; |
297 | } | 306 | } |
298 | 307 | ||
299 | table.diffstat td.add a { | 308 | table.diffstat td.add a { |
300 | color: green; | 309 | color: green; |
301 | } | 310 | } |
302 | 311 | ||
303 | table.diffstat td.del a { | 312 | table.diffstat td.del a { |
304 | color: red; | 313 | color: red; |
305 | } | 314 | } |
306 | 315 | ||
307 | table.diffstat td.upd a { | 316 | table.diffstat td.upd a { |
308 | color: blue; | 317 | color: blue; |
309 | } | 318 | } |
310 | 319 | ||
311 | table.diffstat td.graph { | 320 | table.diffstat td.graph { |
312 | width: 500px; | 321 | width: 500px; |
313 | vertical-align: middle; | 322 | vertical-align: middle; |
314 | } | 323 | } |
315 | 324 | ||
316 | table.diffstat td.graph table { | 325 | table.diffstat td.graph table { |
317 | border: none; | 326 | border: none; |
318 | } | 327 | } |
319 | 328 | ||
320 | table.diffstat td.graph td { | 329 | table.diffstat td.graph td { |
321 | padding: 0px; | 330 | padding: 0px; |
322 | border: 0px; | 331 | border: 0px; |
323 | height: 7pt; | 332 | height: 7pt; |
324 | } | 333 | } |
325 | 334 | ||
326 | table.diffstat td.graph td.add { | 335 | table.diffstat td.graph td.add { |
327 | background-color: #5c5; | 336 | background-color: #5c5; |
328 | } | 337 | } |
329 | 338 | ||
330 | table.diffstat td.graph td.rem { | 339 | table.diffstat td.graph td.rem { |
331 | background-color: #c55; | 340 | background-color: #c55; |
332 | } | 341 | } |
333 | 342 | ||
334 | div.diffstat-summary { | 343 | div.diffstat-summary { |
335 | color: #888; | 344 | color: #888; |
336 | padding-top: 0.5em; | 345 | padding-top: 0.5em; |
337 | } | 346 | } |
338 | 347 | ||
339 | table.diff { | 348 | table.diff { |
340 | width: 100%; | 349 | width: 100%; |
341 | } | 350 | } |
342 | 351 | ||
343 | table.diff td { | 352 | table.diff td { |
344 | font-family: monospace; | 353 | font-family: monospace; |
345 | white-space: pre; | 354 | white-space: pre; |
346 | } | 355 | } |
347 | 356 | ||
348 | table.diff td div.head { | 357 | table.diff td div.head { |
349 | font-weight: bold; | 358 | font-weight: bold; |
350 | margin-top: 1em; | 359 | margin-top: 1em; |
351 | background-color: #eee; | 360 | background-color: #eee; |
352 | } | 361 | } |
353 | 362 | ||
354 | table.diff td div.hunk { | 363 | table.diff td div.hunk { |
355 | color: #009; | 364 | color: #009; |
356 | } | 365 | } |
357 | 366 | ||
358 | table.diff td div.add { | 367 | table.diff td div.add { |
359 | color: green; | 368 | color: green; |
360 | } | 369 | } |
361 | 370 | ||
362 | table.diff td div.del { | 371 | table.diff td div.del { |
363 | color: red; | 372 | color: red; |
364 | } | 373 | } |
365 | 374 | ||
366 | .sha1 { | 375 | .sha1 { |
367 | font-family: monospace; | 376 | font-family: monospace; |
368 | font-size: 90%; | 377 | font-size: 90%; |
369 | } | 378 | } |
370 | 379 | ||
371 | .left { | 380 | .left { |
372 | text-align: left; | 381 | text-align: left; |
373 | } | 382 | } |
374 | 383 | ||
375 | .right { | 384 | .right { |
376 | text-align: right; | 385 | text-align: right; |
377 | } | 386 | } |
378 | 387 | ||
379 | table.list td.repogroup { | 388 | table.list td.repogroup { |
380 | font-style: italic; | 389 | font-style: italic; |
381 | color: #888; | 390 | color: #888; |
382 | } | 391 | } |
383 | 392 | ||
384 | a.button { | 393 | a.button { |
385 | font-size: 80%; | 394 | font-size: 80%; |
386 | color: #aaa; | 395 | color: #aaa; |
387 | background-color: #eee; | 396 | background-color: #eee; |
388 | border: solid 1px #aaa; | 397 | border: solid 1px #aaa; |
389 | padding: 0em 0.5em; | 398 | padding: 0em 0.5em; |
390 | margin: 0.1em 0.25em; | 399 | margin: 0.1em 0.25em; |
391 | } | 400 | } |
392 | 401 | ||
393 | a.button:hover { | 402 | a.button:hover { |
394 | text-decoration: none; | 403 | text-decoration: none; |
395 | color: #333; | 404 | color: #333; |
396 | background-color: #ccc; | 405 | background-color: #ccc; |
397 | } | 406 | } |
398 | 407 | ||
399 | a.primary { | 408 | a.primary { |
400 | font-size: 100%; | 409 | font-size: 100%; |
401 | } | 410 | } |
402 | 411 | ||
403 | a.secondary { | 412 | a.secondary { |
404 | font-size: 90%; | 413 | font-size: 90%; |
405 | } | 414 | } |
406 | 415 | ||
407 | td.toplevel-repo { | 416 | td.toplevel-repo { |
408 | 417 | ||
409 | } | 418 | } |
410 | 419 | ||
411 | table.list td.sublevel-repo { | 420 | table.list td.sublevel-repo { |
412 | padding-left: 1.5em; | 421 | padding-left: 1.5em; |
413 | } | 422 | } |
414 | 423 | ||
415 | span.age-mins { | 424 | span.age-mins { |
416 | font-weight: bold; | 425 | font-weight: bold; |
417 | color: #080; | 426 | color: #080; |
418 | } | 427 | } |
419 | 428 | ||
420 | span.age-hours { | 429 | span.age-hours { |
421 | color: #080; | 430 | color: #080; |
422 | } | 431 | } |
423 | 432 | ||
424 | span.age-days { | 433 | span.age-days { |
425 | color: #040; | 434 | color: #040; |
426 | } | 435 | } |
427 | 436 | ||
428 | span.age-weeks { | 437 | span.age-weeks { |
429 | color: #444; | 438 | color: #444; |
430 | } | 439 | } |
431 | 440 | ||
432 | span.age-months { | 441 | span.age-months { |
433 | color: #888; | 442 | color: #888; |
434 | } | 443 | } |
435 | 444 | ||
436 | span.age-years { | 445 | span.age-years { |
437 | color: #bbb; | 446 | color: #bbb; |
438 | } | 447 | } |