Board Thread:Support Requests - Designing Your Wiki/@comment-28956386-20170630133935/@comment-24757753-20170703131935

TK-999 wrote:

The CSS  declaration only works if it is placed at the beginning of a stylesheet.

For better performance, the MediaWiki software concatenates site CSS files into a single one, with MediaWiki:Common.css coming first, so that the skin-specific stylesheets like MediaWiki:Wikia.css can override it as needed. As such,  declarations placed at the top of MediaWiki:Wikia.css will not work&mdash;they must be placed at the top of MediaWiki:Common.css instead. Also worth noting some older wikis don't load MediaWiki:Common.css for the default (Oasis) skin, meaning imports at the top of MediaWiki:Wikia.css will work on such wikis, and this could confuse some people at to why it won't work on their own wiki.

Luma.dash wrote: …

Your statement does not work out the situation when imports were working on a specific CSS file before, and now they don't. Do you have an example of this? The only time I could see this happening is if a wiki had an empty MediaWiki:Common.css page and an import in MediaWiki:Wikia.css, and later added styles to MediaWiki:Common.css (meaning the import would no longer be at the top of the resulting site CSS).