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.
I'm having trouble getting selectivzr to work in IE ...
I'm having a scss rule which is also outputted in my no-queries file but Selectivizr doesn't seem to pick up on it.
@include breakpoint($desk, true) {
background: green;
@include float-span(3);
&:nth-child(4n) {
@include float-span(3, 'last');
}
}
the no-query file gets included in the HTML as:
<style>@import url("http://local.desk02.bn/sites/all/themes/d02sgs/css/d02sgs.no-query.css?mui71k");</style>
but Selectivizr's "you need to know section" (see bottom of page on http://selectivizr.com/) list the following rules:
- Style sheets MUST be added to the page using a
<link>
tag but you can still use @import in your style sheets. Styles defined in
tags won't be parsed.
Comments
Comment #1
Percept CreditAttribution: Percept commentedI posted this just before heading home ... I'll see if I can get it to work on Monday by including the no-queries css files the "correct" way because I have no access to it at home.
Comment #1.0
Percept CreditAttribution: Percept commentedformatter ate my tag
Comment #2
Percept CreditAttribution: Percept commentedOk, I tried replacing the conditional CSS files inclusion method to
<link...>
instead of<style>@import ...</style>
but it's still not working. I'll have to keep looking. Can anyone else test if the selectivzr script works out of the box in an Omega sub-theme?Comment #3
fubhy CreditAttribution: fubhy commentedYou have to enable CSS aggregation. This is how Drupal output CSS if you don't have CSS aggregation enabled (@import), once enabled, it will use link tags. Otherwise this behavior is expected.
Comment #4.0
(not verified) CreditAttribution: commentedupdate