author | Johan Herland <johan@herland.net> | 2010-06-18 15:56:11 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2010-06-19 10:20:09 (UTC) |
commit | 47187b33be1c3de43fbed6f350ab05bc978aacd0 (patch) (unidiff) | |
tree | 896a454446d2b6f5e19f96a212a2069898b05606 | |
parent | c8bc3fc04c9af0fd881fb43b8e540fd93920b851 (diff) | |
download | cgit-47187b33be1c3de43fbed6f350ab05bc978aacd0.zip cgit-47187b33be1c3de43fbed6f350ab05bc978aacd0.tar.gz cgit-47187b33be1c3de43fbed6f350ab05bc978aacd0.tar.bz2 |
Fix style of commit-filter links in commit-subject.
When using the commit-filter functionality to add e.g. bug tracker links to
commit messages, the style of those links is mangled by a CSS directive that
is meant to only apply to decorations that are listed on the commit-subject
line.
Fix this directive to only apply to the decorations.
Signed-off-by: Johan Herland <johan@herland.net>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | cgit.css | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -432,193 +432,196 @@ table.diff td div.del { | |||
432 | 432 | ||
433 | .right { | 433 | .right { |
434 | text-align: right; | 434 | text-align: right; |
435 | } | 435 | } |
436 | 436 | ||
437 | table.list td.reposection { | 437 | table.list td.reposection { |
438 | font-style: italic; | 438 | font-style: italic; |
439 | color: #888; | 439 | color: #888; |
440 | } | 440 | } |
441 | 441 | ||
442 | a.button { | 442 | a.button { |
443 | font-size: 80%; | 443 | font-size: 80%; |
444 | padding: 0em 0.5em; | 444 | padding: 0em 0.5em; |
445 | } | 445 | } |
446 | 446 | ||
447 | a.primary { | 447 | a.primary { |
448 | font-size: 100%; | 448 | font-size: 100%; |
449 | } | 449 | } |
450 | 450 | ||
451 | a.secondary { | 451 | a.secondary { |
452 | font-size: 90%; | 452 | font-size: 90%; |
453 | } | 453 | } |
454 | 454 | ||
455 | td.toplevel-repo { | 455 | td.toplevel-repo { |
456 | 456 | ||
457 | } | 457 | } |
458 | 458 | ||
459 | table.list td.sublevel-repo { | 459 | table.list td.sublevel-repo { |
460 | padding-left: 1.5em; | 460 | padding-left: 1.5em; |
461 | } | 461 | } |
462 | 462 | ||
463 | div.pager { | 463 | div.pager { |
464 | text-align: center; | 464 | text-align: center; |
465 | margin: 1em 0em 0em 0em; | 465 | margin: 1em 0em 0em 0em; |
466 | } | 466 | } |
467 | 467 | ||
468 | div.pager a { | 468 | div.pager a { |
469 | color: #777; | 469 | color: #777; |
470 | margin: 0em 0.5em; | 470 | margin: 0em 0.5em; |
471 | } | 471 | } |
472 | 472 | ||
473 | span.age-mins { | 473 | span.age-mins { |
474 | font-weight: bold; | 474 | font-weight: bold; |
475 | color: #080; | 475 | color: #080; |
476 | } | 476 | } |
477 | 477 | ||
478 | span.age-hours { | 478 | span.age-hours { |
479 | color: #080; | 479 | color: #080; |
480 | } | 480 | } |
481 | 481 | ||
482 | span.age-days { | 482 | span.age-days { |
483 | color: #040; | 483 | color: #040; |
484 | } | 484 | } |
485 | 485 | ||
486 | span.age-weeks { | 486 | span.age-weeks { |
487 | color: #444; | 487 | color: #444; |
488 | } | 488 | } |
489 | 489 | ||
490 | span.age-months { | 490 | span.age-months { |
491 | color: #888; | 491 | color: #888; |
492 | } | 492 | } |
493 | 493 | ||
494 | span.age-years { | 494 | span.age-years { |
495 | color: #bbb; | 495 | color: #bbb; |
496 | } | 496 | } |
497 | div.footer { | 497 | div.footer { |
498 | margin-top: 0.5em; | 498 | margin-top: 0.5em; |
499 | text-align: center; | 499 | text-align: center; |
500 | font-size: 80%; | 500 | font-size: 80%; |
501 | color: #ccc; | 501 | color: #ccc; |
502 | } | 502 | } |
503 | a.branch-deco { | 503 | a.branch-deco { |
504 | margin: 0px 0.5em; | 504 | margin: 0px 0.5em; |
505 | padding: 0px 0.25em; | 505 | padding: 0px 0.25em; |
506 | background-color: #88ff88; | 506 | background-color: #88ff88; |
507 | border: solid 1px #007700; | 507 | border: solid 1px #007700; |
508 | } | 508 | } |
509 | a.tag-deco { | 509 | a.tag-deco { |
510 | margin: 0px 0.5em; | 510 | margin: 0px 0.5em; |
511 | padding: 0px 0.25em; | 511 | padding: 0px 0.25em; |
512 | background-color: #ffff88; | 512 | background-color: #ffff88; |
513 | border: solid 1px #777700; | 513 | border: solid 1px #777700; |
514 | } | 514 | } |
515 | a.remote-deco { | 515 | a.remote-deco { |
516 | margin: 0px 0.5em; | 516 | margin: 0px 0.5em; |
517 | padding: 0px 0.25em; | 517 | padding: 0px 0.25em; |
518 | background-color: #ccccff; | 518 | background-color: #ccccff; |
519 | border: solid 1px #000077; | 519 | border: solid 1px #000077; |
520 | } | 520 | } |
521 | a.deco { | 521 | a.deco { |
522 | margin: 0px 0.5em; | 522 | margin: 0px 0.5em; |
523 | padding: 0px 0.25em; | 523 | padding: 0px 0.25em; |
524 | background-color: #ff8888; | 524 | background-color: #ff8888; |
525 | border: solid 1px #770000; | 525 | border: solid 1px #770000; |
526 | } | 526 | } |
527 | 527 | ||
528 | div.commit-subject a { | 528 | div.commit-subject a.branch-deco, |
529 | div.commit-subject a.tag-deco, | ||
530 | div.commit-subject a.remote-deco, | ||
531 | div.commit-subject a.deco { | ||
529 | margin-left: 1em; | 532 | margin-left: 1em; |
530 | font-size: 75%; | 533 | font-size: 75%; |
531 | } | 534 | } |
532 | 535 | ||
533 | table.stats { | 536 | table.stats { |
534 | border: solid 1px black; | 537 | border: solid 1px black; |
535 | border-collapse: collapse; | 538 | border-collapse: collapse; |
536 | } | 539 | } |
537 | 540 | ||
538 | table.stats th { | 541 | table.stats th { |
539 | text-align: left; | 542 | text-align: left; |
540 | padding: 1px 0.5em; | 543 | padding: 1px 0.5em; |
541 | background-color: #eee; | 544 | background-color: #eee; |
542 | border: solid 1px black; | 545 | border: solid 1px black; |
543 | } | 546 | } |
544 | 547 | ||
545 | table.stats td { | 548 | table.stats td { |
546 | text-align: right; | 549 | text-align: right; |
547 | padding: 1px 0.5em; | 550 | padding: 1px 0.5em; |
548 | border: solid 1px black; | 551 | border: solid 1px black; |
549 | } | 552 | } |
550 | 553 | ||
551 | table.stats td.total { | 554 | table.stats td.total { |
552 | font-weight: bold; | 555 | font-weight: bold; |
553 | text-align: left; | 556 | text-align: left; |
554 | } | 557 | } |
555 | 558 | ||
556 | table.stats td.sum { | 559 | table.stats td.sum { |
557 | color: #c00; | 560 | color: #c00; |
558 | font-weight: bold; | 561 | font-weight: bold; |
559 | /*background-color: #eee; */ | 562 | /*background-color: #eee; */ |
560 | } | 563 | } |
561 | 564 | ||
562 | table.stats td.left { | 565 | table.stats td.left { |
563 | text-align: left; | 566 | text-align: left; |
564 | } | 567 | } |
565 | 568 | ||
566 | table.vgraph { | 569 | table.vgraph { |
567 | border-collapse: separate; | 570 | border-collapse: separate; |
568 | border: solid 1px black; | 571 | border: solid 1px black; |
569 | height: 200px; | 572 | height: 200px; |
570 | } | 573 | } |
571 | 574 | ||
572 | table.vgraph th { | 575 | table.vgraph th { |
573 | background-color: #eee; | 576 | background-color: #eee; |
574 | font-weight: bold; | 577 | font-weight: bold; |
575 | border: solid 1px white; | 578 | border: solid 1px white; |
576 | padding: 1px 0.5em; | 579 | padding: 1px 0.5em; |
577 | } | 580 | } |
578 | 581 | ||
579 | table.vgraph td { | 582 | table.vgraph td { |
580 | vertical-align: bottom; | 583 | vertical-align: bottom; |
581 | padding: 0px 10px; | 584 | padding: 0px 10px; |
582 | } | 585 | } |
583 | 586 | ||
584 | table.vgraph div.bar { | 587 | table.vgraph div.bar { |
585 | background-color: #eee; | 588 | background-color: #eee; |
586 | } | 589 | } |
587 | 590 | ||
588 | table.hgraph { | 591 | table.hgraph { |
589 | border: solid 1px black; | 592 | border: solid 1px black; |
590 | width: 800px; | 593 | width: 800px; |
591 | } | 594 | } |
592 | 595 | ||
593 | table.hgraph th { | 596 | table.hgraph th { |
594 | background-color: #eee; | 597 | background-color: #eee; |
595 | font-weight: bold; | 598 | font-weight: bold; |
596 | border: solid 1px black; | 599 | border: solid 1px black; |
597 | padding: 1px 0.5em; | 600 | padding: 1px 0.5em; |
598 | } | 601 | } |
599 | 602 | ||
600 | table.hgraph td { | 603 | table.hgraph td { |
601 | vertical-align: center; | 604 | vertical-align: center; |
602 | padding: 2px 2px; | 605 | padding: 2px 2px; |
603 | } | 606 | } |
604 | 607 | ||
605 | table.hgraph div.bar { | 608 | table.hgraph div.bar { |
606 | background-color: #eee; | 609 | background-color: #eee; |
607 | height: 1em; | 610 | height: 1em; |
608 | } | 611 | } |
609 | 612 | ||
610 | table.ssdiff { | 613 | table.ssdiff { |
611 | width: 100%; | 614 | width: 100%; |
612 | } | 615 | } |
613 | 616 | ||
614 | table.ssdiff td { | 617 | table.ssdiff td { |
615 | font-size: 75%; | 618 | font-size: 75%; |
616 | font-family: monospace; | 619 | font-family: monospace; |
617 | white-space: pre; | 620 | white-space: pre; |
618 | padding: 1px 4px 1px 4px; | 621 | padding: 1px 4px 1px 4px; |
619 | border-left: solid 1px #aaa; | 622 | border-left: solid 1px #aaa; |
620 | border-right: solid 1px #aaa; | 623 | border-right: solid 1px #aaa; |
621 | } | 624 | } |
622 | 625 | ||
623 | table.ssdiff td.add { | 626 | table.ssdiff td.add { |
624 | color: black; | 627 | color: black; |