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:
parent
649ef7efcf
commit
ff207f2480
3 changed files with 18 additions and 5 deletions
|
|
@ -61,7 +61,10 @@ return array(
|
||||||
* See Vector for an example.
|
* See Vector for an example.
|
||||||
*/
|
*/
|
||||||
'skins.cologneblue' => array(
|
'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'],
|
'remoteBasePath' => $GLOBALS['wgStylePath'],
|
||||||
'localBasePath' => $GLOBALS['wgStyleDirectory'],
|
'localBasePath' => $GLOBALS['wgStyleDirectory'],
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ class SkinCologneBlue extends SkinTemplate {
|
||||||
* @param $out OutputPage
|
* @param $out OutputPage
|
||||||
*/
|
*/
|
||||||
function setupSkinUserCss( OutputPage $out ) {
|
function setupSkinUserCss( OutputPage $out ) {
|
||||||
$out->addModuleStyles( 'mediawiki.legacy.shared' );
|
parent::setupSkinUserCss( $out );
|
||||||
$out->addModuleStyles( 'mediawiki.legacy.oldshared' );
|
$out->addModuleStyles( 'mediawiki.legacy.oldshared' );
|
||||||
$out->addModuleStyles( 'skins.cologneblue' );
|
$out->addModuleStyles( 'skins.cologneblue' );
|
||||||
}
|
}
|
||||||
|
|
@ -316,7 +316,8 @@ class CologneBlueTemplate extends BaseTemplate {
|
||||||
ob_start();
|
ob_start();
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div id="footer" role="contentinfo">
|
<div id="footer">
|
||||||
|
<div id="footer-navigation" role="navigation">
|
||||||
<?php
|
<?php
|
||||||
// Page-related links
|
// Page-related links
|
||||||
echo $this->bottomLinks();
|
echo $this->bottomLinks();
|
||||||
|
|
@ -328,8 +329,10 @@ class CologneBlueTemplate extends BaseTemplate {
|
||||||
$this->getSkin()->aboutLink(),
|
$this->getSkin()->aboutLink(),
|
||||||
$this->searchForm( 'footer' )
|
$this->searchForm( 'footer' )
|
||||||
) );
|
) );
|
||||||
echo "\n<br />";
|
?>
|
||||||
|
</div>
|
||||||
|
<div id="footer-info" role="contentinfo">
|
||||||
|
<?php
|
||||||
// Standard footer info
|
// Standard footer info
|
||||||
$footlinks = $this->getFooterLinks();
|
$footlinks = $this->getFooterLinks();
|
||||||
if ( $footlinks['info'] ) {
|
if ( $footlinks['info'] ) {
|
||||||
|
|
@ -338,6 +341,7 @@ class CologneBlueTemplate extends BaseTemplate {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="mw-navigation">
|
<div id="mw-navigation">
|
||||||
|
|
|
||||||
6
skins/cologneblue/print.css
Normal file
6
skins/cologneblue/print.css
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
#sitetitle,
|
||||||
|
#sitesub,
|
||||||
|
#titlelinks,
|
||||||
|
#footer-navigation {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue