Answer the question
In order to leave comments, you need to log in
SCSS class inside a function?
Greetings.
Is it possible to do this with scss:
@mixin some-name($class) {
$class {
prop: value;
}
$class:after {
prop: value;
}
}
Answer the question
In order to leave comments, you need to log in
What you want can be implemented in a simpler and more logical way:
@mixin someName {
prop: value;
&::after {
prop: value;
}
}
.some-class {
@include someName;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question