Answer the question
In order to leave comments, you need to log in
Less how to get one parent property?
Less has an import of all class properties in another class
.A{
background: red;
padding: 10px;
}
.B{
.A;
}
Answer the question
In order to leave comments, you need to log in
Why not make the background property separate and add it to A and B ?
You can also use "Nested Rules" (from the documentation).
.B {
background: red;
.A {
padding: 10px;
}
}
Esil it somehow helps in stylus is what you want, Property Lookup learnboost.github.io/stylus/docs/variables.html
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question