add basic print styles to CologneBlue

* Call parent method in setupSkinUserCss() to add standard print
  styles. It also adds mediawiki.legacy.shared, so we can remove
  explicit include of that one.
* Split #footer into #footer-navigation and #footer-info. These parts
  of footer have very different functions and the navigation should be
  hidden in print mode.
* Added skins/cologneblue/print.css hiding some non-standard
  navigation elements.

Bug: 42844
Change-Id: Iae67a06ff3a6efdc9a5084226c1c80634b806cfb
This commit is contained in:
MatmaRex 2013-04-06 16:24:21 +02:00
parent 649ef7efcf
commit ff207f2480
3 changed files with 18 additions and 5 deletions

View file

@ -61,7 +61,10 @@ return array(
* See Vector for an example.
*/
'skins.cologneblue' => array(
'styles' => array( 'cologneblue/screen.css' => array( 'media' => 'screen' ) ),
'styles' => array(
'cologneblue/screen.css' => array( 'media' => 'screen' ),
'cologneblue/print.css' => array( 'media' => 'print' ),
),
'remoteBasePath' => $GLOBALS['wgStylePath'],
'localBasePath' => $GLOBALS['wgStyleDirectory'],
),

View file

@ -39,7 +39,7 @@ class SkinCologneBlue extends SkinTemplate {
* @param $out OutputPage
*/
function setupSkinUserCss( OutputPage $out ) {
$out->addModuleStyles( 'mediawiki.legacy.shared' );
parent::setupSkinUserCss( $out );
$out->addModuleStyles( 'mediawiki.legacy.oldshared' );
$out->addModuleStyles( 'skins.cologneblue' );
}
@ -316,7 +316,8 @@ class CologneBlueTemplate extends BaseTemplate {
ob_start();
?>
</div>
<div id="footer" role="contentinfo">
<div id="footer">
<div id="footer-navigation" role="navigation">
<?php
// Page-related links
echo $this->bottomLinks();
@ -328,8 +329,10 @@ class CologneBlueTemplate extends BaseTemplate {
$this->getSkin()->aboutLink(),
$this->searchForm( 'footer' )
) );
echo "\n<br />";
?>
</div>
<div id="footer-info" role="contentinfo">
<?php
// Standard footer info
$footlinks = $this->getFooterLinks();
if ( $footlinks['info'] ) {
@ -338,6 +341,7 @@ class CologneBlueTemplate extends BaseTemplate {
}
}
?>
</div>
</div>
</div>
<div id="mw-navigation">

View file

@ -0,0 +1,6 @@
#sitetitle,
#sitesub,
#titlelinks,
#footer-navigation {
display: none;
}