Sorry for the weird language on the question, but I don't know how to describe it any better. I hope this example makes clear what I want:
scss-syntax
.my-smug-selector {
@include my-smug-mixin(30px);
}
desired css-output
.my-smug-selector{
// some styles
}
.another-smug-selector-on-base-lvl{
// some other styles
}
.smug-non-nested-selector{
// some other styles
}
I'm interested in this in general, but to explain why in the world I would want to do this: I want to have a keyframe-animation defined which gets used by the specified selector, e.g.:
scss-syntax
.my-smug-selector {
@include my-smug-mixin($vars);
}
desired css-output
.my-smug-selector{
animation: most-smugish-animation 5s;
}
@keyframes most-smugish-animation {
from {background:red;}
to {background:yellow;}
}