Answer the question
In order to leave comments, you need to log in
Is it possible in SCSS to use & on .class1, .class2 so that we get .class1.subclass, .class2.subclass?
Good day.
Is it possible in SCSS to use & on .class1, .class2 so that we get .class1.subclass, .class2.subclass?
Those. from:
.class1, .class2 {
&_subclass {
color: #CCC;
}
}
.class1_subclass, .class2_subclass {
color: #CCC;
}
Answer the question
In order to leave comments, you need to log in
If you need a dot, then write a dot =)
.class1, .class2 {
&.subclass {
color: #CCC;
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question