【发布时间】:2013-05-05 05:08:43
【问题描述】:
我将如何编写这段代码以便检查 $text-shadows 和 $shadows 的真实性?
.btn {
@if $text-shadows {
@include text-shadow-black;
}
@if $shadows {
@include shadow-white;
}
}
要明确,我想要实现的是没有嵌套:
.btn {
@if $text-shadows {
@if $shadows {
@include text-shadow-black;
}
}
}
【问题讨论】: