@function makeColors($color) {
$new-color: (#red, #green, #blue);
list.append($new-color, #orange[, $separator]);
@return $new-color;
}
PrePros(编译软件)
'Invalid CSS after ...#green, #blue); Expected }, Was list.append($new-...'
我不能在@function
中运行多个命令/功能吗?
@@ function makeColors($ color){$ new-color:(#red,#green,#blue); list.append($ new-color,#orange [,$ separator]); @return $ new-color; } PrePros(编译软件)说不会...
首先,像[, $separator]
一样在参数周围使用方括号是一种告诉参数是可选的方法[[在文档中