I have this in my SCSS file:
.class-a{
display: inline-block;
//some other properties
&:hover{
color: darken(#FFFFFF, 10%);
}
}
.class-b{
//Inherite class-a here
//some properties
}
In class-b, I would like to inherite all properties and nested declarations of class-a
. How is this done? I tried using @include class-a
, but that just throws an error when compiling.
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…