Answer the question
In order to leave comments, you need to log in
How do mixins actually work in LESS?
Hello, I have been using LESS for a very long time, albeit not fully, but still.
Now faced such problem. There is a code:
.questions {
&__btn {
color:red;
}
}
.another-questions {
&__btn {
.questions__btn;
}
}
Answer the question
In order to leave comments, you need to log in
.questions {
&__btn {
color:red;
}
&__btn2 {
color:green;
}
}
.another-questions {
&__btn {
.questions;
}
}
.questions__btn {
color: red;
}
.questions__btn2 {
color: green;
}
.another-questions__btn__btn {
color: red;
}
.another-questions__btn__btn2 {
color: green;
}
.questions {
&__btn {
color:red;
}
&__btn2 {
color:green;
}
}
.another-questions {
.questions;
}
.questions__btn {
color: red;
}
.questions__btn2 {
color: green;
}
.another-questions__btn {
color: red;
}
.another-questions__btn2 {
color: green;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question