我不想用mixin來定義我的屬性。我想是建立@extend/@include東西之間的東西,像下面如何用@include sass做點什麼
的例子文件=> structure.scss
.box{
width:100px;
height:100px;
}
文件=> color.scss
@import 'structure.scss';
.box{
@extend .box;
background: red;
}
輸出:
.box{
width:100px;
height:100px;
}
.box{
background: red;
}
我想不混入:
.box{
width:100px;
height:100px;
background: red;
}
爲什麼它需要是沒有混入? – cimmanon