Answer the question
In order to leave comments, you need to log in
How to inherit class properties in LESS with nesting?
Is it possible to simultaneously inherit parent properties with nesting?
.link {
cursor: pointer;
text-decoration: none;
&-primary {
color: red;
}
}
cursor: pointer;
text-decoration: none;
Answer the question
In order to leave comments, you need to log in
Right off the bat, solved by using mixins
.op {
cursor: pointer;
text-decoration: none;
}
.link {
.op;
&-primary {
color: red;
.op;
}
}
.link {
cursor: pointer;
text-decoration: none;
&-primary:extend(.link) {
color: red;
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question