【发布时间】:2014-04-08 05:20:08
【问题描述】:
我想知道是否有办法模拟 sass / scss 中 less 中的 iscolor 函数。
我在文档中没有找到这个功能,但我希望有办法做到这一点。
我的签到是这样的:
.myfunction(@color) when (iscolor(@color)){
color:@color;
}
sass
@mixin myfunction($color){
//function to check if color is a real color
}
【问题讨论】: