its a pita to always have to compress css files to test on ie for responsive etc.
so a setting to set the @import to instead use a <link> for css files
its a pita to always have to compress css files to test on ie for responsive etc.
so a setting to set the @import to instead use a <link> for css files
Comments
Comment #1
anthonyR commentedDon't mind for this feature to be added, but maybe a tip:
I do this when preprocessing in sass, most of my files are partials and get imported into one main stylesheet, and I only add that one to Drupal.
Comment #2
betovargIs there a reason why all the CSS files are set as @import? I was wondering that myself today while working on a subtheme
Comment #3
betovarg:o, sorry about that last post. I now see that even Bartik adds the @import, havent noticed that in D7
Comment #4
msmithcti commentedTo answer betovarg's question: As far as I'm aware it's not a theme specific thing, it's something that core does in D7 to get around IE ignoring any link/style tags after the 31st, which Drupal can easily get to when aggregation is turned off. #228818: IE: Stylesheets ignored after 31 link/style tags is the related core issue.
Comment #5
betovargThanx splatio. After I posted this, been reading about that. Im actually quite concerned about that @import thing, Ive seen some sites not compressing their CSS. This is a discussion for other thread I guess, but I still think the practice is not good.
Comment #6
mortendk commentedfound a solution :)
* its only gonna be the theme's css files thats gonna use mediaqueries
* only the themes css is gonna be added in as link instead of an import, if the css compressions isnt turn on
* Only if the mothership is using Respond.js this will be executed
its all in the latest dev version in functions/css.php
Comment #6.0
mortendk commentedUpdated issue summary.