Adjust hidden element rules for printed view
authorjdlrobson <jdlrobson@gmail.com>
Wed, 19 Jul 2017 19:24:07 +0000 (12:24 -0700)
committerVolkerE <volker.e@wikimedia.org>
Thu, 20 Jul 2017 16:25:29 +0000 (16:25 +0000)
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

index 602bdab..dec0fe8 100644 (file)
@@ -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,