Browse Source

Implement printable mode.

mw_31
Adrian Malacoda 5 months ago
parent
commit
6dd7961ebd

+ 1
- 0
application/w/skins/GCL3/SkinGCL3.php View File

@@ -21,6 +21,7 @@ class SkinGCL3 extends SkinTemplate {
21 21
 
22 22
                 // Append to the default screen common & print styles...
23 23
                 $out->addStyle( 'GCL3/main.css', 'screen' );
24
+                $out->addStyle( 'GCL3/resources/print.css', 'print' );
24 25
                 if( $wgHandheldStyle ) {
25 26
                         // Currently in testing... try 'chick/main.css'
26 27
                         $out->addStyle( $wgHandheldStyle, 'handheld' );

+ 29
- 0
application/w/skins/GCL3/resources/print.css View File

@@ -0,0 +1,29 @@
1
+body {
2
+    background: #FFFFFF !important;
3
+}
4
+
5
+#metapod-menu, #header, .navigate_section {
6
+    display: none;
7
+}
8
+
9
+#metapod-table {
10
+    width: 100%;
11
+}
12
+
13
+#metapod-content .catbg:first-child {
14
+    font-size: 24px;
15
+    padding: 9px;
16
+}
17
+
18
+#metapod-content .titlebg:first-child {
19
+    display: none;
20
+}
21
+
22
+#content_section {
23
+    padding-left: 5px !important;
24
+    padding-top: 5px;
25
+}
26
+
27
+#content_section .frame {
28
+    padding: 0px !important;
29
+}

+ 7
- 0
application/w/skins/GCL3/skin.json View File

@@ -17,5 +17,12 @@
17 17
 	"AutoloadClasses": {
18 18
 		"SkinGCL3": "SkinGCL3.php"
19 19
 	},
20
+	"ResourceModules": {
21
+		"skins.GCL3": {
22
+				"styles": {
23
+						"resources/print.css": { "media": "print" }
24
+				}
25
+		}
26
+	},
20 27
 	"manifest_version": 1
21 28
 }

Loading…
Cancel
Save