Bladeren bron

Implement printable mode.

mw_31
Adrian Malacoda 1 jaar geleden
bovenliggende
commit
6dd7961ebd
3 gewijzigde bestanden met toevoegingen van 37 en 0 verwijderingen
  1. +1
    -0
      application/w/skins/GCL3/SkinGCL3.php
  2. +29
    -0
      application/w/skins/GCL3/resources/print.css
  3. +7
    -0
      application/w/skins/GCL3/skin.json

+ 1
- 0
application/w/skins/GCL3/SkinGCL3.php Bestand weergeven

@@ -21,6 +21,7 @@ class SkinGCL3 extends SkinTemplate {

// Append to the default screen common & print styles...
$out->addStyle( 'GCL3/main.css', 'screen' );
$out->addStyle( 'GCL3/resources/print.css', 'print' );
if( $wgHandheldStyle ) {
// Currently in testing... try 'chick/main.css'
$out->addStyle( $wgHandheldStyle, 'handheld' );


+ 29
- 0
application/w/skins/GCL3/resources/print.css Bestand weergeven

@@ -0,0 +1,29 @@
body {
background: #FFFFFF !important;
}

#metapod-menu, #header, .navigate_section {
display: none;
}

#metapod-table {
width: 100%;
}

#metapod-content .catbg:first-child {
font-size: 24px;
padding: 9px;
}

#metapod-content .titlebg:first-child {
display: none;
}

#content_section {
padding-left: 5px !important;
padding-top: 5px;
}

#content_section .frame {
padding: 0px !important;
}

+ 7
- 0
application/w/skins/GCL3/skin.json Bestand weergeven

@@ -17,5 +17,12 @@
"AutoloadClasses": {
"SkinGCL3": "SkinGCL3.php"
},
"ResourceModules": {
"skins.GCL3": {
"styles": {
"resources/print.css": { "media": "print" }
}
}
},
"manifest_version": 1
}

Laden…
Annuleren
Opslaan