there are two files
a.less
.a{
color: red;
&-b{
padding: 20px;
}
}
b.less
@import "./a"; // a.less
.main {
.a; // color: red;
.content {
.a-b; // padding: 20px
}
}
if you take out a.less
.aMub {padding: 20px}
separately, you don"t need to generate it quickly. You won"t make a mistake.
is there any way. Not only can it be quickly generated in a.less
, but also can be used in b.less
?