You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Parent selectors (in mixins) are ignored in referenced files #1646
Hi, I am playing around with the new @import (reference) ... feature and encountered a strange behavior.
If I am using the parent selector "&" inside a mixin that is located in a file that is imported with the (reference) statement (and then call the mixin from another file) all the parent-selectors are ignored.
So if I have this in the mixin:
a {
color: #f00;
&:hover {
color: #0f0;
}
}
This is what comes out:
a {
color: #f00;
}
Beside that the reference feature is really great. Thank you for that.
Wasn't it fixed in 1.5.1? At least I can't reproduce this with current master. Well, the above example is a bit awkward since a can't be a mixin, but if I compile something like this:
Activity
seven-phases-max commentedon Dec 28, 2013
Wasn't it fixed in 1.5.1? At least I can't reproduce this with current master. Well, the above example is a bit awkward since
acan't be a mixin, but if I compile something like this:it works as expected.
seven-phases-max commentedon Feb 3, 2014
Ok, closing due to inactivity (not reproducable with Less 1.5 and later).