Thread:Project:Support desk/Extension's stylesheet media types being ignored by JS loader?/reply

As RoanKattouw said in : (11:41AM) RoanKattouw: samwilson: The solution to that is to separate the CSS into a separate module and call addModuleStyles (which I suspect you're already using) on the style module (11:41AM) RoanKattouw: samwilson: Also you shouldn't have @media in your CSS files, you should use separate files for each media type and list them in your resource definition. See resources/Resources.php in MediaWiki core for examples (11:42AM) RoanKattouw: samwilson: Specifically, you can define a style file with 'foo.css' => array( 'media' => 'handheld' ) and that'll do the @media wrapping for you

So my solution was this: and then loading them like so:

And all works as it should!