The MobileFrontend extension has a file called hacks.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
TODO
- $wgMinervaApplyKnownTemplateHacks is removed.
- Infobox styles are deleted from Minerva
- Page issues styles are deleted from Minerva
- Documentation is updated