1

我有以下css类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。

有谁知道错误可能在哪里?

4

0 回答 0