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