我将如何编写此代码以便检查 $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;
}
}
}