Page MenuHomePhabricator

Add a MediaWiki:Printable.css page
Closed, ResolvedPublic

Description

+++ 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]].


Version: unspecified
Severity: enhancement

Details

Reference
bz13831

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:11 PM
bzimport set Reference to bz13831.
bzimport added a subscriber: Unknown Object (MLST).

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.

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.

gernot.hillier wrote:

Isn't this a duplicate to bug 2889?

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