summaryrefslogtreecommitdiffabout
path: root/cgit.css
authorLars Hjemli <hjemli@gmail.com>2008-12-06 16:38:19 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2008-12-06 16:38:19 (UTC)
commitf86a23ff537258d36bf8f1876fa7a4bede6673d8 (patch) (unidiff)
tree8328d415416058cdc5b0fd2c6564ddcab5766c7a /cgit.css
parent140012d7a8e51df5a9f9c556696778b86ade4fc9 (diff)
downloadcgit-f86a23ff537258d36bf8f1876fa7a4bede6673d8.zip
cgit-f86a23ff537258d36bf8f1876fa7a4bede6673d8.tar.gz
cgit-f86a23ff537258d36bf8f1876fa7a4bede6673d8.tar.bz2
Add a 'stats' page to each repo
This new page, which is disabled by default, can be used to print some statistics about the number of commits per period in the repository, where period can be either weeks, months, quarters or years. The function can be activated globally by setting 'enable-stats=1' in cgitrc and disabled for individual repos by setting 'repo.enable-stats=0'. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cgit.css') (more/less context) (ignore whitespace changes)
-rw-r--r--cgit.css77
1 files changed, 77 insertions, 0 deletions
diff --git a/cgit.css b/cgit.css
index a37d218..ef30fbf 100644
--- a/cgit.css
+++ b/cgit.css
@@ -267,192 +267,269 @@ table.commit-info td {
267div.commit-subject { 267div.commit-subject {
268 font-weight: bold; 268 font-weight: bold;
269 font-size: 125%; 269 font-size: 125%;
270 margin: 1.5em 0em 0.5em 0em; 270 margin: 1.5em 0em 0.5em 0em;
271 padding: 0em; 271 padding: 0em;
272} 272}
273 273
274div.commit-msg { 274div.commit-msg {
275 white-space: pre; 275 white-space: pre;
276 font-family: monospace; 276 font-family: monospace;
277} 277}
278 278
279div.diffstat-header { 279div.diffstat-header {
280 font-weight: bold; 280 font-weight: bold;
281 padding-top: 1.5em; 281 padding-top: 1.5em;
282} 282}
283 283
284table.diffstat { 284table.diffstat {
285 border-collapse: collapse; 285 border-collapse: collapse;
286 border: solid 1px #aaa; 286 border: solid 1px #aaa;
287 background-color: #eee; 287 background-color: #eee;
288} 288}
289 289
290table.diffstat th { 290table.diffstat th {
291 font-weight: normal; 291 font-weight: normal;
292 text-align: left; 292 text-align: left;
293 text-decoration: underline; 293 text-decoration: underline;
294 padding: 0.1em 1em 0.1em 0.1em; 294 padding: 0.1em 1em 0.1em 0.1em;
295 font-size: 100%; 295 font-size: 100%;
296} 296}
297 297
298table.diffstat td { 298table.diffstat td {
299 padding: 0.2em 0.2em 0.1em 0.1em; 299 padding: 0.2em 0.2em 0.1em 0.1em;
300 font-size: 100%; 300 font-size: 100%;
301 border: none; 301 border: none;
302} 302}
303 303
304table.diffstat td.mode { 304table.diffstat td.mode {
305 white-space: nowrap; 305 white-space: nowrap;
306} 306}
307 307
308table.diffstat td span.modechange { 308table.diffstat td span.modechange {
309 padding-left: 1em; 309 padding-left: 1em;
310 color: red; 310 color: red;
311} 311}
312 312
313table.diffstat td.add a { 313table.diffstat td.add a {
314 color: green; 314 color: green;
315} 315}
316 316
317table.diffstat td.del a { 317table.diffstat td.del a {
318 color: red; 318 color: red;
319} 319}
320 320
321table.diffstat td.upd a { 321table.diffstat td.upd a {
322 color: blue; 322 color: blue;
323} 323}
324 324
325table.diffstat td.graph { 325table.diffstat td.graph {
326 width: 500px; 326 width: 500px;
327 vertical-align: middle; 327 vertical-align: middle;
328} 328}
329 329
330table.diffstat td.graph table { 330table.diffstat td.graph table {
331 border: none; 331 border: none;
332} 332}
333 333
334table.diffstat td.graph td { 334table.diffstat td.graph td {
335 padding: 0px; 335 padding: 0px;
336 border: 0px; 336 border: 0px;
337 height: 7pt; 337 height: 7pt;
338} 338}
339 339
340table.diffstat td.graph td.add { 340table.diffstat td.graph td.add {
341 background-color: #5c5; 341 background-color: #5c5;
342} 342}
343 343
344table.diffstat td.graph td.rem { 344table.diffstat td.graph td.rem {
345 background-color: #c55; 345 background-color: #c55;
346} 346}
347 347
348div.diffstat-summary { 348div.diffstat-summary {
349 color: #888; 349 color: #888;
350 padding-top: 0.5em; 350 padding-top: 0.5em;
351} 351}
352 352
353table.diff { 353table.diff {
354 width: 100%; 354 width: 100%;
355} 355}
356 356
357table.diff td { 357table.diff td {
358 font-family: monospace; 358 font-family: monospace;
359 white-space: pre; 359 white-space: pre;
360} 360}
361 361
362table.diff td div.head { 362table.diff td div.head {
363 font-weight: bold; 363 font-weight: bold;
364 margin-top: 1em; 364 margin-top: 1em;
365 color: black; 365 color: black;
366} 366}
367 367
368table.diff td div.hunk { 368table.diff td div.hunk {
369 color: #009; 369 color: #009;
370} 370}
371 371
372table.diff td div.add { 372table.diff td div.add {
373 color: green; 373 color: green;
374} 374}
375 375
376table.diff td div.del { 376table.diff td div.del {
377 color: red; 377 color: red;
378} 378}
379 379
380.sha1 { 380.sha1 {
381 font-family: monospace; 381 font-family: monospace;
382 font-size: 90%; 382 font-size: 90%;
383} 383}
384 384
385.left { 385.left {
386 text-align: left; 386 text-align: left;
387} 387}
388 388
389.right { 389.right {
390 text-align: right; 390 text-align: right;
391} 391}
392 392
393table.list td.repogroup { 393table.list td.repogroup {
394 font-style: italic; 394 font-style: italic;
395 color: #888; 395 color: #888;
396} 396}
397 397
398a.button { 398a.button {
399 font-size: 80%; 399 font-size: 80%;
400 padding: 0em 0.5em; 400 padding: 0em 0.5em;
401} 401}
402 402
403a.primary { 403a.primary {
404 font-size: 100%; 404 font-size: 100%;
405} 405}
406 406
407a.secondary { 407a.secondary {
408 font-size: 90%; 408 font-size: 90%;
409} 409}
410 410
411td.toplevel-repo { 411td.toplevel-repo {
412 412
413} 413}
414 414
415table.list td.sublevel-repo { 415table.list td.sublevel-repo {
416 padding-left: 1.5em; 416 padding-left: 1.5em;
417} 417}
418 418
419div.pager { 419div.pager {
420 text-align: center; 420 text-align: center;
421 margin: 1em 0em 0em 0em; 421 margin: 1em 0em 0em 0em;
422} 422}
423 423
424div.pager a { 424div.pager a {
425 color: #777; 425 color: #777;
426 margin: 0em 0.5em; 426 margin: 0em 0.5em;
427} 427}
428 428
429span.age-mins { 429span.age-mins {
430 font-weight: bold; 430 font-weight: bold;
431 color: #080; 431 color: #080;
432} 432}
433 433
434span.age-hours { 434span.age-hours {
435 color: #080; 435 color: #080;
436} 436}
437 437
438span.age-days { 438span.age-days {
439 color: #040; 439 color: #040;
440} 440}
441 441
442span.age-weeks { 442span.age-weeks {
443 color: #444; 443 color: #444;
444} 444}
445 445
446span.age-months { 446span.age-months {
447 color: #888; 447 color: #888;
448} 448}
449 449
450span.age-years { 450span.age-years {
451 color: #bbb; 451 color: #bbb;
452} 452}
453div.footer { 453div.footer {
454 margin-top: 0.5em; 454 margin-top: 0.5em;
455 text-align: center; 455 text-align: center;
456 font-size: 80%; 456 font-size: 80%;
457 color: #ccc; 457 color: #ccc;
458} 458}
459table.stats {
460 border: solid 1px black;
461 border-collapse: collapse;
462}
463
464table.stats th {
465 text-align: left;
466 padding: 1px 0.5em;
467 background-color: #eee;
468 border: solid 1px black;
469}
470
471table.stats td {
472 text-align: right;
473 padding: 1px 0.5em;
474 border: solid 1px black;
475}
476
477table.stats td.total {
478 font-weight: bold;
479 text-align: left;
480}
481
482table.stats td.sum {
483 color: #c00;
484 font-weight: bold;
485 /*background-color: #eee; */
486}
487
488table.stats td.left {
489 text-align: left;
490}
491
492table.vgraph {
493 border-collapse: separate;
494 border: solid 1px black;
495 height: 200px;
496}
497
498table.vgraph th {
499 background-color: #eee;
500 font-weight: bold;
501 border: solid 1px white;
502 padding: 1px 0.5em;
503}
504
505table.vgraph td {
506 vertical-align: bottom;
507 padding: 0px 10px;
508}
509
510table.vgraph div.bar {
511 background-color: #eee;
512}
513
514table.hgraph {
515 border: solid 1px black;
516 width: 800px;
517}
518
519table.hgraph th {
520 background-color: #eee;
521 font-weight: bold;
522 border: solid 1px black;
523 padding: 1px 0.5em;
524}
525
526table.hgraph td {
527 vertical-align: center;
528 padding: 2px 2px;
529}
530
531table.hgraph div.bar {
532 background-color: #eee;
533 height: 1em;
534}
535