stylus
stylus copied to clipboard
Will +prefix-classes change the mixins of rulesets permanently? Can the rulesets been set back?
Stylus code:
selectors() {
.class {
color:red;
}
}
Prefix()
if $widgetContext != 'default'
+prefix-classes($enclosingClass + '.')
selectors();
else
selectors();
$enclosingClass = "Toolstip"
// First
$widgetContext = "default"
Prefix()
// Second
$widgetContext = "toolstip"
Prefix()
// Third
$widgetContext = "default"
Prefix()
// Fourth
$widgetContext = "toolstip"
Prefix()
CSS output:
.class {
color: #f00;
}
.Toolstip.class {
color: #f00;
}
.Toolstip.class {
color: #f00;
}
.Toolstip.class {
color: #f00;
}
I do see that once a mixins of selectors has been prefix a class, it can never get it off or prefix another class anymore. I want to know is there a way to recover the selectors back to original styles in the third step.
The problem will be solved? or is there another solution?
Still not fixed, will it ever be?
Still no one fixed it :(