Answer the question
In order to leave comments, you need to log in
How to use a mixin or SCSS function to set a property to an element if it is inside an element with a certain class?
Rough idea of what I want to get
@mixin alt{
// Что написать здесь, чтоб получить результат, описанный далее ?
}
.test{
background: red;
@include alt{
background: green;
}
}
.test{background: red}
.alt .test{background: green}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question