Index: trunk/phase3/skins/common/shared.css |
— | — | @@ -573,16 +573,37 @@ |
574 | 574 | } |
575 | 575 | |
576 | 576 | /** |
577 | | - * Table pager (e.g. Special:ListFiles) |
578 | | - * - remove underlines from the navigation link |
579 | | - * - collapse borders |
580 | | - * - set the borders to outsets (similar to Special:AllMessages) |
581 | | - * - remove line wrapping for all td and th, set background color |
582 | | - * - restore line wrapping for the last two table cells (description and size) |
| 577 | + * Data table style |
| 578 | + * |
| 579 | + * Transparent table with suddle borders |
| 580 | + * and blue row-highlighting. |
583 | 581 | */ |
| 582 | +.mw-datatable { |
| 583 | + border-collapse: collapse; |
| 584 | +} |
| 585 | +.mw-datatable, |
| 586 | +.mw-datatable td, |
| 587 | +.mw-datatable th { |
| 588 | + border: 1px solid #aaaaaa; |
| 589 | + padding: 0 0.15em 0 0.15em; |
| 590 | +} |
| 591 | +.mw-datatable th { |
| 592 | + background-color: #ddddff; |
| 593 | +} |
| 594 | +.mw-datatable td { |
| 595 | + background-color: #ffffff; |
| 596 | +} |
| 597 | +.mw-datatable tr:hover td { |
| 598 | + background-color: #eeeeff; |
| 599 | +} |
| 600 | + |
| 601 | + |
| 602 | +/** |
| 603 | + * TablePager tables generated by the TablePager PHP class |
| 604 | + * in MediaWiki (e.g. Special:ListFiles). |
| 605 | + */ |
584 | 606 | .TablePager { |
585 | 607 | min-width: 80%; |
586 | | - border-collapse: collapse; |
587 | 608 | } |
588 | 609 | .TablePager_nav { |
589 | 610 | margin: 0 auto; |
— | — | @@ -594,21 +615,6 @@ |
595 | 616 | .TablePager_nav a { |
596 | 617 | text-decoration: none; |
597 | 618 | } |
598 | | -.TablePager, |
599 | | -.TablePager td, |
600 | | -.TablePager th { |
601 | | - border: 1px solid #aaaaaa; |
602 | | - padding: 0 0.15em 0 0.15em; |
603 | | -} |
604 | | -.TablePager th { |
605 | | - background-color: #eeeeff; |
606 | | -} |
607 | | -.TablePager td { |
608 | | - background-color: #ffffff; |
609 | | -} |
610 | | -.TablePager tr:hover td { |
611 | | - background-color: #eeeeff; |
612 | | -} |
613 | 619 | |
614 | 620 | .imagelist td, |
615 | 621 | .imagelist th { |
Index: trunk/phase3/includes/specials/SpecialAllmessages.php |
— | — | @@ -319,7 +319,7 @@ |
320 | 320 | } |
321 | 321 | |
322 | 322 | function getStartBody() { |
323 | | - return Xml::openElement( 'table', array( 'class' => 'TablePager', 'id' => 'mw-allmessagestable' ) ) . "\n" . |
| 323 | + return Xml::openElement( 'table', array( 'class' => 'mw-datatable TablePager', 'id' => 'mw-allmessagestable' ) ) . "\n" . |
324 | 324 | "<thead><tr> |
325 | 325 | <th rowspan=\"2\">" . |
326 | 326 | wfMsg( 'allmessagesname' ) . " |
Index: trunk/phase3/includes/Pager.php |
— | — | @@ -821,7 +821,7 @@ |
822 | 822 | $tableClass = htmlspecialchars( $this->getTableClass() ); |
823 | 823 | $sortClass = htmlspecialchars( $this->getSortHeaderClass() ); |
824 | 824 | |
825 | | - $s = "<table style='border:1;' class=\"$tableClass\"><thead><tr>\n"; |
| 825 | + $s = "<table style='border:1;' class=\"mw-datatable $tableClass\"><thead><tr>\n"; |
826 | 826 | $fields = $this->getFieldNames(); |
827 | 827 | |
828 | 828 | # Make table header |