【发布时间】:2016-04-04 14:19:13
【问题描述】:
我有这个代码
.npt {
ul {
li {
a {
background: $red-700 !important;
}
}
}
}
我需要为很多颜色复制这个,但我想传递颜色基础 ($red) 并返回这个对应的 css。 我需要这样的东西
@mixin .npt($blue); -->
.npt {
ul {
li {
a {
background: $blue-700 !important;
}
}
}
}
我该怎么做? 谢谢
【问题讨论】:
-
我喜欢随机投票