Conditional stylesheets always sets media to "all" in rendered code. This is because the media option is not set in the module.
conditional_styles_preprocess_html -> drupal_add_css should have added the media option like this:
'media' => $media,
I will try and make a patch for this, but I'm not the best PHP developer in the world..
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | conditional_styles-missing_media_option-1637306.patch | 415 bytes | raekjaer |
Comments
Comment #1
raekjaer commentedPatch adding media support in conditional stylesheets module.
Comment #2
raekjaer commentedComment #4
raekjaer commentedHm, I can't imagine what I am doing wrong here. The patch passes testing on my local (clean) D7 build.
Comment #5
kris_mcl commentedThanks raekjaer, I manually applied the code change in this patch and it looks like it's working very nicely for me. I'm using respond.js as a media query polyfill for IE < 9 and this patch allows the following media query to work perfectly.
I'm afraid I can't tell you why it failed testing either, it looks fine to me.
Comment #6
astonvictor commentedI'm closing it because the issue was created a long time ago without any further steps.
if you still need it then raise a new one.
thanks