Last modified: 2014-11-19 17:44:07 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 T66578, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 64578 - [Tracking] Migrate css rules in hacks.less into templates.
[Tracking] Migrate css rules in hacks.less into templates.
Status: NEW
Product: MobileFrontend
Classification: Unclassified
Hygiene (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Jon
: tracking
Depends on:
Blocks: tracking
  Show dependency treegraph
 
Reported: 2014-04-28 23:37 UTC by Jon
Modified: 2014-11-19 17:44 UTC (History)
0 users

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


Attachments

Description Jon 2014-04-28 23:37:58 UTC
The MobileFrontend extension has a file called hacks.less

http://git.wikimedia.org/blob/mediawiki%2Fextensions%2FMobileFrontend/8d9184c2d4af6e460ccea44be32b88db6565afc7/less%2Fcommon%2Fhacks.less

The purpose of this style is to optimise various user created templates for mobile devices by overriding existing known inline styles. It does this by using !important which is the only way to override an inline style.

Ideally this file shouldn't exist. All the components should have CSS which optimise the template for various display sizes.

The creation of a mechanism to style templates would provide a great generic solution to this problem:
https://www.mediawiki.org/wiki/Requests_for_comment/Allow_styling_in_templates

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


Navigation
Links