function setupSkinUserCss( OutputPage $out ) {
$out->addModuleStyles( 'mediawiki.legacy.shared' );
$out->addModuleStyles( 'mediawiki.legacy.oldshared' );
- // TODO: When converting old skins to use ResourceLoader (or removing them) the following should be reconsidered
- $out->addStyle( $this->getStylesheet() );
- $out->addStyle( 'common/common_rtl.css', '', '', 'rtl' );
}
function getPageClasses( $title ) {
$shove = ( $qb != 0 );
$left = ( $qb == 1 || $qb == 3 );
- if ( $wgContLang->isRTL() ) {
- $left = !$left;
- }
-
if ( !$shove ) {
$s .= "<td class='top' align='left' valign='top' rowspan='{$rows}'>\n" .
$this->logoText() . '</td>';
'styles' => array( 'skins/modern/main.css' => array( 'media' => 'screen' ),
'skins/modern/print.css' => array( 'media' => 'print' ) ),
),
+ 'skins.cologneblue' => array(
+ 'styles' => array( 'skins/common/cologneblue.css' => array( 'media' => 'screen' ) ),
+ ),
+ 'skins.nostalgia' => array(
+ 'styles' => array( 'skins/common/nostalgia.css' => array( 'media' => 'screen' ) ),
+ ),
+ 'skins.standard' => array(
+ 'styles' => array( 'skins/common/wikistandard.css' => array( 'media' => 'screen' ) ),
+ ),
/* jQuery */
*/
class SkinCologneBlue extends Skin {
- function getStylesheet() {
- return 'common/cologneblue.css';
- }
-
function getSkinName() {
return 'cologneblue';
}
$s = "\n<div id='content'>\n<div id='topbar'>" .
'<table width="100%" border="0" cellspacing="0" cellpadding="8"><tr>';
- $s .= '<td class="top" align="left" valign="middle" nowrap="nowrap">';
+ $s .= '<td class="top" nowrap="nowrap">';
$s .= '<a href="' . $mainPageObj->escapeLocalURL() . '">';
$s .= '<span id="sitetitle">' . wfMsg( 'sitetitle' ) . '</span></a>';
- $s .= '</td><td class="top" align="right" valign="bottom" width="100%">';
+ $s .= '</td><td class="top" id="top-syslinks" width="100%">';
$s .= $this->sysLinks();
- $s .= '</td></tr><tr><td valign="top">';
+ $s .= '</td></tr><tr><td class="top-linkcollection">';
$s .= '<font size="-1"><span id="sitesub">';
$s .= htmlspecialchars( wfMsg( 'sitesubtitle' ) ) . '</span></font>';
- $s .= '</td><td align="right">';
+ $s .= '</td><td class="top-linkcollection">';
$s .= '<font size="-1"><span id="langlinks">';
$s .= str_replace( '<br />', '', $this->otherLanguages() );
if ( 1 == $qb || 3 == $qb ) { # Left
$s .= $this->getQuickbarCompensator();
}
- $s .= '<td class="bottom" align="center" valign="top">';
+ $s .= '<td class="bottom">';
$s .= $this->bottomLinks();
$s .= $wgLang->pipeList( array(
}
function setupSkinUserCss( OutputPage $out ){
+ parent::setupSkinUserCss( $out );
+ $out->addModuleStyles( 'skins.cologneblue' );
+
global $wgContLang;
$qb = $this->qbSetting();
$rules = array();
$style = CSSJanus::transform( $style, true, false );
}
$out->addInlineStyle( $style );
- parent::setupSkinUserCss( $out );
}
function sysLinks() {
*/
class SkinNostalgia extends Skin {
- function getStylesheet() {
- return 'common/nostalgia.css';
- }
-
function getSkinName() {
return 'nostalgia';
}
+ function setupSkinUserCss( OutputPage $out ){
+ parent::setupSkinUserCss( $out );
+ $out->addModuleStyles( 'skins.nostalgia' );
+ }
+
function doBeforeContent() {
$s = "\n<div id='content'>\n<div id='top'>\n";
$s .= '<div id="logo">' . $this->logoText( 'right' ) . '</div>';
*
*/
function setupSkinUserCss( OutputPage $out ){
+ parent::setupSkinUserCss( $out );
+ $out->AddModuleStyles( 'skins.standard' );
+
global $wgContLang;
$qb = $this->qbSetting();
$rules = array();
$style = CSSJanus::transform( $style, true, false );
}
$out->addInlineStyle( $style );
- parent::setupSkinUserCss( $out );
}
function doAfterContent() {
$qb = $this->qbSetting();
$shove = ( $qb != 0 );
$left = ( $qb == 1 || $qb == 3 );
- if( $wgContLang->isRTL() ) {
- $left = !$left;
- }
if ( $shove && $left ) { # Left
$s .= $this->getQuickbarCompensator();
font-size: 10pt;
}
+td#top-syslinks {
+ text-align: right;
+ vertical-align: bottom;
+}
+td.top-linkcollection {
+ text-align: right;
+}
+
td.bottom {
font-family: Verdana, Arial, sans-serif;
font-size: 10pt;
padding: 0;
+ text-align: center;
+ vertical-align: bottom;
}
#pagestats {
input.mw-searchInput {
width: 106px;
-}
\ No newline at end of file
+}
padding-top: 0;
margin-top: 0;
}
+div.sitenotice {
+ clear: both;
+}