Sass::SyntaxError: Alpha channel 8 must be between 0 and 1 for `rgba'
Sass::SyntaxError: Alpha channel 8 must be between 0 and 1 for `rgba'
我预计我的 style.css 文件中会出现错误。
尝试了所有可能的选项,但到目前为止没有帮助。
link到css的文件是:Link to my style.css since I am not posting file here
当我使用以下方法预编译我的资产时:
rake assets:precompile RAILS_ENV=production
它returns错误:
Sass::SyntaxError: Alpha channel 8 must be between 0 and 1 for `rgba'
P.S: CSS 文件可能需要几秒钟来加载以显示文件内容。
我 运行 搜索了你的代码,发现在 rgba(
的 437 个实例中的第 380、382 和 384 处你有一个 css class你的结构如下:
/**/
/* checked state */
/**/
.radio input + i:after {
background-color: rgba(0, 0, 0, 8);
}
...
.checkbox input + i:after {
color: rgba(0, 0, 0, 8);
}
...
.radio input:checked + i,
.checkbox input:checked + i,
.toggle input:checked + i {
border-color: rgba(0, 0, 0, 8);
}
三个 8s 应该是 0.8s 或类似的东西来解决这个问题。
我预计我的 style.css 文件中会出现错误。
尝试了所有可能的选项,但到目前为止没有帮助。
link到css的文件是:Link to my style.css since I am not posting file here
当我使用以下方法预编译我的资产时:
rake assets:precompile RAILS_ENV=production
它returns错误:
Sass::SyntaxError: Alpha channel 8 must be between 0 and 1 for `rgba'
P.S: CSS 文件可能需要几秒钟来加载以显示文件内容。
我 运行 搜索了你的代码,发现在 rgba(
的 437 个实例中的第 380、382 和 384 处你有一个 css class你的结构如下:
/**/
/* checked state */
/**/
.radio input + i:after {
background-color: rgba(0, 0, 0, 8);
}
...
.checkbox input + i:after {
color: rgba(0, 0, 0, 8);
}
...
.radio input:checked + i,
.checkbox input:checked + i,
.toggle input:checked + i {
border-color: rgba(0, 0, 0, 8);
}
三个 8s 应该是 0.8s 或类似的东西来解决这个问题。