Matmarex has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/83085


Change subject: Move wikiprintable.css styles from core
......................................................................

Move wikiprintable.css styles from core

That file is getting deleted in Icbcebc8f, just copy it over. (Except
for a commented-out part marked "@todo FIXME" and header comment.)

Change-Id: I96e66ff8905416bea906d40cdd72ba646399191b
---
M Nostalgia.php
M SkinLegacy.php
A print.css
3 files changed, 51 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Nostalgia 
refs/changes/85/83085/1

diff --git a/Nostalgia.php b/Nostalgia.php
index b4c4f5a..3e3aeac 100644
--- a/Nostalgia.php
+++ b/Nostalgia.php
@@ -22,7 +22,10 @@
 $wgExtensionMessagesFiles['Nostalgia'] = "$dir/Nostalgia.i18n.php";
 $wgValidSkinNames['nostalgia'] = 'Nostalgia';
 $wgResourceModules['ext.nostalgia'] = array(
-       'styles' => 'screen.css',
+       'styles' => array(
+               'screen.css',
+               'print.css' => array( 'media' => 'print' ),
+       ),
        'localBasePath' => __DIR__,
        'remoteExtPath' => 'Nostalgia',
 );
diff --git a/SkinLegacy.php b/SkinLegacy.php
index b17abc2..149ec11 100644
--- a/SkinLegacy.php
+++ b/SkinLegacy.php
@@ -33,10 +33,6 @@
                $out->addModuleStyles( 'mediawiki.legacy.oldshared' );
        }
 
-       public function commonPrintStylesheet() {
-               return true;
-       }
-
        /**
         * This was for the old skins and for users with 640x480 screen.
         * Please note old skins are still used and might prove useful for
diff --git a/print.css b/print.css
new file mode 100644
index 0000000..ab7a781
--- /dev/null
+++ b/print.css
@@ -0,0 +1,47 @@
+body {
+       color: #000000;
+       background: #ffffff;
+}
+
+/* MSIE/Win doesn't understand 'inherit' */
+a,
+a.external,
+a.new,
+a.stub {
+       color: black !important;
+       text-decoration: none !important;
+}
+#article {
+       margin: 0 !important;
+}
+
+/* Continue ... */
+a,
+a.external,
+a.new,
+a.stub {
+       color: inherit !important;
+       text-decoration: inherit !important;
+}
+
+/* Hide UI stuff */
+#quickbar,
+#topbar,
+#logo,
+#footer,
+#siteNotice,
+.mw-editsection,
+.toctoggle {
+       display: none;
+}
+
+/* */
+#article {
+       position: relative;
+       margin: inherit !important;
+}
+
+.printfooter {
+       border-top: solid 1px black;
+       display: block !important;
+}

-- 
To view, visit https://gerrit.wikimedia.org/r/83085
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I96e66ff8905416bea906d40cdd72ba646399191b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Nostalgia
Gerrit-Branch: master
Gerrit-Owner: Matmarex <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to