Last modified: 2014-11-19 17:44:07 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
This is going to require https://www.mediawiki.org/wiki/Requests_for_comment/Allow_styling_in_templates