From: Raimond Spekking Date: Wed, 17 Jun 2009 18:05:03 +0000 (+0000) Subject: * Add class=wikitable to some tables on specialpages for better styling consistency X-Git-Tag: 1.31.0-rc.0~41324 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=96cd3b939610ee5ec384c0e3555b4625fde6f156;p=lhc%2Fweb%2Fwiklou.git * Add class=wikitable to some tables on specialpages for better styling consistency * Remove CSS definitions for these tables as far as possible --- diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 831731ffcc..e9ff71038c 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -1486,7 +1486,7 @@ $wgCacheEpoch = '20030516000000'; * to ensure that client-side caches do not keep obsolete copies of global * styles. */ -$wgStyleVersion = '225'; +$wgStyleVersion = '226'; # Server-side caching: diff --git a/includes/ImagePage.php b/includes/ImagePage.php index 376199d4d2..eea3d2804d 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -809,7 +809,7 @@ class ImageHistoryList { . "
\n" . $wgOut->parse( wfMsgNoTrans( 'filehist-help' ) ) . $navLinks . "\n" - . Xml::openElement( 'table', array( 'class' => 'filehistory' ) ) . "\n" + . Xml::openElement( 'table', array( 'class' => 'wikitable filehistory' ) ) . "\n" . '' . ( $this->current->isLocal() && ($wgUser->isAllowed('delete') || $wgUser->isAllowed('deleterevision') ) ? '' : '' ) . '' . wfMsgHtml( 'filehist-datetime' ) . '' diff --git a/includes/specials/SpecialListgrouprights.php b/includes/specials/SpecialListgrouprights.php index 44cd024d02..8a44efc5e8 100644 --- a/includes/specials/SpecialListgrouprights.php +++ b/includes/specials/SpecialListgrouprights.php @@ -33,7 +33,7 @@ class SpecialListGroupRights extends SpecialPage { $this->outputHeader(); $wgOut->addHTML( - Xml::openElement( 'table', array( 'class' => 'mw-listgrouprights-table' ) ) . + Xml::openElement( 'table', array( 'class' => 'wikitable mw-listgrouprights-table' ) ) . '' . Xml::element( 'th', null, wfMsg( 'listgrouprights-group' ) ) . Xml::element( 'th', null, wfMsg( 'listgrouprights-rights' ) ) . diff --git a/includes/specials/SpecialStatistics.php b/includes/specials/SpecialStatistics.php index 5431eb8cb6..9b2462e420 100644 --- a/includes/specials/SpecialStatistics.php +++ b/includes/specials/SpecialStatistics.php @@ -56,7 +56,7 @@ class SpecialStatistics extends SpecialPage { $this->doRawOutput(); } - $text = Xml::openElement( 'table', array( 'class' => 'mw-statistics-table' ) ); + $text = Xml::openElement( 'table', array( 'class' => 'wikitable mw-statistics-table' ) ); # Statistic - pages $text .= $this->getPageStats(); diff --git a/includes/specials/SpecialTags.php b/includes/specials/SpecialTags.php index d18b6e0735..57feeae7a3 100644 --- a/includes/specials/SpecialTags.php +++ b/includes/specials/SpecialTags.php @@ -36,7 +36,7 @@ class SpecialTags extends SpecialPage { $html .= $this->doTagRow( $tag, 0 ); } - $wgOut->addHTML( Xml::tags( 'table', array( 'class' => 'mw-tags-table' ), $html ) ); + $wgOut->addHTML( Xml::tags( 'table', array( 'class' => 'wikitable mw-tags-table' ), $html ) ); } function doTagRow( $tag, $hitcount ) { diff --git a/includes/specials/SpecialVersion.php b/includes/specials/SpecialVersion.php index e589af932b..62cbac8d79 100644 --- a/includes/specials/SpecialVersion.php +++ b/includes/specials/SpecialVersion.php @@ -102,7 +102,7 @@ class SpecialVersion extends SpecialPage { wfRunHooks( 'SoftwareInfo', array( &$software ) ); $out = Xml::element( 'h2', array( 'id' => 'mw-version-software' ), wfMsg( 'version-software' ) ) . - Xml::openElement( 'table', array( 'id' => 'sv-software' ) ) . + Xml::openElement( 'table', array( 'class' => 'wikitable', 'id' => 'sv-software' ) ) . " " . wfMsg( 'version-software-product' ) . " " . wfMsg( 'version-software-version' ) . " @@ -174,7 +174,7 @@ class SpecialVersion extends SpecialPage { wfRunHooks( 'SpecialVersionExtensionTypes', array( &$this, &$extensionTypes ) ); $out = Xml::element( 'h2', array( 'id' => 'mw-version-ext' ), wfMsg( 'version-extensions' ) ) . - Xml::openElement( 'table', array( 'id' => 'sv-ext' ) ); + Xml::openElement( 'table', array( 'class' => 'wikitable', 'id' => 'sv-ext' ) ); foreach ( $extensionTypes as $type => $text ) { if ( isset ( $wgExtensionCredits[$type] ) && count ( $wgExtensionCredits[$type] ) ) { @@ -291,7 +291,7 @@ class SpecialVersion extends SpecialPage { ksort( $myWgHooks ); $ret = Xml::element( 'h2', array( 'id' => 'mw-version-hooks' ), wfMsg( 'version-hooks' ) ) . - Xml::openElement( 'table', array( 'id' => 'sv-hooks' ) ) . + Xml::openElement( 'table', array( 'class' => 'wikitable', 'id' => 'sv-hooks' ) ) . " " . wfMsg( 'version-hook-name' ) . " " . wfMsg( 'version-hook-subscribedby' ) . " diff --git a/skins/common/shared.css b/skins/common/shared.css index 02b4353462..dae65ee36c 100644 --- a/skins/common/shared.css +++ b/skins/common/shared.css @@ -32,16 +32,9 @@ div#mw-js-message { /** * File histories */ -table.filehistory { - border:1px solid #ccc; - border-collapse:collapse; -} - table.filehistory th, table.filehistory td { - padding: 0 0.2em 0 0.2em; vertical-align:top; - border:1px solid #ccc; } table.filehistory th { text-align: left; @@ -406,30 +399,12 @@ td.os-suggest-result-hl { font-weight: bold; } -/* - * Special:ListGroupRights styling - * Special:Statistics styling - * Special:Tags styling -*/ - -table.mw-listgrouprights-table, -table.mw-statistics-table, -table.mw-tags-table { - border: 1px solid #ccc; - border-collapse: collapse; -} - +/* Special:ListGroupRights styling */ table.mw-listgrouprights-table tr { vertical-align: top; } -table.mw-listgrouprights-table td, table.mw-listgrouprights-table th, -table.mw-statistics-table td, table.mw-statistics-table th, -table.mw-tags-table td, table.mw-tags-table th { - padding: 0.5em 0.2em 0.5em 0.2em; - border: 1px solid #ccc; -} - +/* Special:Statistics styling */ td.mw-statistics-numbers { text-align: right; } diff --git a/skins/modern/main.css b/skins/modern/main.css index 6d99a043e8..0315bc3985 100644 --- a/skins/modern/main.css +++ b/skins/modern/main.css @@ -929,29 +929,6 @@ table.multipageimage td { text-align: center; } -/** Special:Version */ - -table#sv-ext, table#sv-hooks, table#sv-software { - margin: 1em; - padding:0em; -} - -#sv-ext td, #sv-hooks td, #sv-software td, -#sv-ext th, #sv-hooks th, #sv-software th { - border: 1px solid #A0A0A0; - padding: 0 0.15em 0 0.15em; -} -#sv-ext th, #sv-hooks th, #sv-software th { - background-color: #F0F0F0; - color: black; - padding: 0 0.15em 0 0.15em; -} -tr.sv-space{ - height: 0.8em; - border:none; -} -tr.sv-space td { display: none; } - /* Table pager (e.g. Special:Imagelist) - remove underlines from the navigation link diff --git a/skins/monobook/main.css b/skins/monobook/main.css index f3d06f2ff8..349f603838 100644 --- a/skins/monobook/main.css +++ b/skins/monobook/main.css @@ -1419,28 +1419,6 @@ table.multipageimage td { text-align: center; } -/** Special:Version */ - -table#sv-ext, table#sv-hooks, table#sv-software { - margin: 1em; - padding:0em; -} - -#sv-ext td, #sv-hooks td, #sv-software td, -#sv-ext th, #sv-hooks th, #sv-software th { - border: 1px solid #A0A0A0; - padding: 0 0.15em 0 0.15em; -} -#sv-ext th, #sv-hooks th, #sv-software th { - background-color: #F0F0F0; - color: black; - padding: 0 0.15em 0 0.15em; -} -tr.sv-space{ - height: 0.8em; - border:none; -} -tr.sv-space td { display: none; } /* Table pager (e.g. Special:Imagelist)