Last modified: 2008-05-06 23:24:05 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T15831, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 13831 - Add a MediaWiki:Printable.css page
Add a MediaWiki:Printable.css page
Status: RESOLVED DUPLICATE of bug 2889
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: css
  Show dependency treegraph
 
Reported: 2008-04-23 23:01 UTC by Platonides
Modified: 2008-05-06 23:24 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Platonides 2008-04-23 23:01:07 UTC
+++ This bug was initially created as a clone of Bug #8463 +++

Additionally to fixing problem with external links, it would be fine if there was a way to change CSS used in 
print version. I see this as introducing [[MediaWiki:Printable.css]] page, similar to 
[[MediaWiki:Common.css]]. Users should also have possiblility to define their own [[User:X/Printable.css]].
Comment 1 Brion Vibber 2008-04-23 23:47:56 UTC
Note that you can put print-specific rules into the regular stylesheets with @media selectors like so:

.myclass {
  color: red;
}

@media print {
  .myclass {
    color: black;
    font-weight: bold;
  }
}

See docs at: http://www.w3.org/TR/CSS21/media.html#at-media-rule


However, these will only trigger for actual printing, and not onscreen when the 'printable version' link is clicked, so this may not be entirely satisfactory.
Comment 2 Platonides 2008-04-24 20:30:29 UTC
Yeah, i was expecting that "solution" to come up, and that's also the issue. I arrived to that #8463 when i was reported that a media class wasn't showed on preview (they were uing printable=yes). Although the documentation at http://meta.wikimedia.org/wiki/Help:Printable he was reading isn't too clear.
Currently, the only way to have them working on printable would be via javascript hacks.
Comment 3 Gernot Hillier 2008-05-06 08:04:28 UTC
Isn't this a duplicate to bug 2889?
Comment 4 Brion Vibber 2008-05-06 23:24:05 UTC

*** This bug has been marked as a duplicate of bug 2889 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links