Implement printable mode.
This commit is contained in:
父節點
53447ad8ef
當前提交
6dd7961ebd
@ -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
application/w/skins/GCL3/resources/print.css
Normal file
29
application/w/skins/GCL3/resources/print.css
Normal file
@ -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
|
||||
}
|
||||
|
載入中…
x
新增問題並參考
Block a user