Overriding Vector's footer margin when in print mode
authorKaldari <rkaldari@wikimedia.org>
Thu, 10 Jan 2013 01:05:15 +0000 (17:05 -0800)
committerKaldari <rkaldari@wikimedia.org>
Thu, 10 Jan 2013 01:05:15 +0000 (17:05 -0800)
Otherwise the footer is strangely shifted 10 or 11em to the right
on printed versions of pages (exact amount depends on media mode)

Change-Id: Ia2123b08bdf1910304c1e1436418a3eb75126a07

resources/Resources.php
skins/vector/print.css [new file with mode: 0644]

index 9987ee1..8a760ac 100644 (file)
@@ -97,6 +97,7 @@ return array(
                        'common/commonInterface.css' => array( 'media' => 'screen' ),
                        'vector/screen.css' => array( 'media' => 'screen' ),
                        'vector/screen-hd.css' => array( 'media' => 'screen and (min-width: 982px)' ),
+                       'vector/print.css' => array( 'media' => 'print' ),
                ),
                'scripts' => 'vector/vector.js',
                'remoteBasePath' => $GLOBALS['wgStylePath'],
diff --git a/skins/vector/print.css b/skins/vector/print.css
new file mode 100644 (file)
index 0000000..1bc0146
--- /dev/null
@@ -0,0 +1,3 @@
+div#footer {
+       margin-left: 0;
+}