From bea8977a8076c8afd28d63982f98d71d8e34cb29 Mon Sep 17 00:00:00 2001 From: jdlrobson Date: Wed, 19 Jul 2017 12:24:07 -0700 Subject: [PATCH] Adjust hidden element rules for printed view This change updates the hidden element list for the printed view. Elements hidden: * Indicators * Category links * Redirect header hidden from all namespaces Remove selectors that are not inside core. Due to a miscommunication with Volker these were unintentionally added in I9aa92a3e70991126c56df0a6db408d1c6f84f172: * `#coordinates` is added by templates and should be in MediaWiki:Print.css * `.play-btn-large` is added by TimedMediaHandler and should be removed in that extension * `.noexcerpt` should not be used in this context. It's meant for marking content up that should be hidden from extracts not for content that should be hidden from print view - that's what `.noprint` is for Bug: T169823 Change-Id: I8b37a6b00618abda7267f92e4712169b22c20b94 --- resources/src/mediawiki.legacy/commonPrint.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/src/mediawiki.legacy/commonPrint.css b/resources/src/mediawiki.legacy/commonPrint.css index 602bdab912..dec0fe8501 100644 --- a/resources/src/mediawiki.legacy/commonPrint.css +++ b/resources/src/mediawiki.legacy/commonPrint.css @@ -8,24 +8,24 @@ /** * Hide all the elements irrelevant for printing + * Skins however can and should override. */ /* General hide-in-print class, please only use sparely */ .noprint, /* Various content classes, in alphabetical order */ +.catlinks, .magnify, .mw-cite-backlink, .mw-jump, .mw-editsection, .mw-editsection-like, .mw-hidden-catlinks, -.noexcerpt, -.ns-0 .mw-redirectedfrom, +.mw-indicators, +.mw-redirectedfrom, .patrollink, -.play-btn-large, .usermessage, /* Various content ids, in alphabetical order */ #column-one, -#coordinates .image, #footer-places, #jump-to-nav, #mw-navigation, -- 2.20.1