Implement printable mode.

This commit is contained in:
Adrian Malacoda 2018-09-03 22:41:34 -05:00
父節點 53447ad8ef
當前提交 6dd7961ebd
共有 3 個檔案被更改,包括 37 行新增0 行删除

查看文件

@ -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' );

查看文件

@ -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;
}

查看文件

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