我在 application.css
.shadow {
box-shadow: 0 10px 30px 0 rgb(3 32 20/.50)!important;
}
当尝试预编译资产时,sass 解析器抛出此错误:
rake aborted!
remote: SassC::SyntaxError: Error: Function rgb is missing argument $green.
remote: on line 76 of stdin
remote: >> box-shadow: 0 10px 30px 0 rgb(3 32 20/.50)!important;
如果我输入逗号 rgb(3,32,20/.50)
,解析器看不到错误,但问题是带有逗号的版本不是有效的 css。
有人知道错误可能在哪里吗?