Last modified: 2014-02-12 23:52:57 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 T46806, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 44806 - mobile css style for preformatted tags should be monospace
mobile css style for preformatted tags should be monospace
Status: RESOLVED FIXED
Product: MobileFrontend
Classification: Unclassified
stable (Other open bugs)
unspecified
All All
: Unprioritized minor
: ---
Assigned To: Jon
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-08 21:26 UTC by Dan Lipsitt
Modified: 2014-02-12 23:52 UTC (History)
12 users (show)

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


Attachments

Description Dan Lipsitt 2013-02-08 21:26:59 UTC
The css style for the <pre> and <tt> tag on the mobile site is set to inherit, which means it is rendered as a variable-width font. This makes code examples, etc., very hard to read. For example, compare http://en.wikipedia.org/wiki/Template:Pre to http://en.m.wikipedia.org/wiki/Template:Pre

I suggest adding 

 pre, tt {font-family: monospace;}

To the css.

The dashed border is also missing.
Comment 1 Jon 2013-02-11 18:41:56 UTC
Currently in mf-enwmp.css we apply these styling rules to

pre.mw-code,
pre.mw-js,
pre.source-css


We could probably just apply to pre and make this common.

Not sure if there are types of 'pre' tags we do not want to format in this way.

The tt element is obsolete and shouldn't be used anywhere [1] but the new rule should also apply to the code element

[1] http://www.w3.org/wiki/HTML/Elements/tt
Comment 2 Jon 2013-02-27 01:22:52 UTC
https://gerrit.wikimedia.org/r/51088

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


Navigation
Links