Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Should the Conditional Styles always show up in the code AFTER the active theme CSS? I'm trying to use this module with the Omega theme, and it seems as though my IE-specific styles are being rendered before the theme CSS, which in effect, seems to make them useless. I'm just trying to track down where this can be fixed, through this module or through Omega. In other themes, it seems to be rendering the right order, so it makes me think it's a theme-specific issue.
Comment | File | Size | Author |
---|---|---|---|
#2 | conditional_styles-fix_for_omega_theme-1263760-2.patch | 726 bytes | hkirsman |
Comments
Comment #1
minneapolisdan CreditAttribution: minneapolisdan commentedI figured this out, it's just that this module shouldn't be used with the Omega theme. See this post for more info, http://drupal.org/node/1263750
Comment #2
hkirsman CreditAttribution: hkirsman commentedIMO this module should work with Omega.
I think we should set more weight so it would work with all themes.
I've set group and weight to 9999 so the files would load after all the other stylesheets in Omega theme. I understand that grouping is ment for aggregation but for this module every stylesheet is packed separately anyways so it doesn't harm the download speeds for user.
Lower group and weight numbers work too but 9999 is more safer. It could be 99999 or 999999 too I guess.
I've attached a patch. What you think?
Comment #3
kclarkson CreditAttribution: kclarkson commentedI found this issue after hours of trying to add the conditional styles to my .info file.
I have applied the patch and so far everything looks good.
Comment #4
kclarkson CreditAttribution: kclarkson commentedComment #5
kclarkson CreditAttribution: kclarkson commentedTypo