将 sass 函数与 !important 一起使用

Using sass function with !important

我正在使用 Bulma CSS framework,他们在某些颜色样式上使用 !important

基本上是这样的:

.has-text-grey-light {
  color: #b5b5b5 !important;
}

我想在我的 SASS 文件中像这样在悬停时覆盖该颜色:

.content ul{
    list-style-type: none;
    margin:0;
    padding:0;
    li{
        a{
            &.has-text-grey-light:hover{
                color: lighten($grey-light, 15%) !important;
            }
        }
    }
}

但是 !important 规则使其编译失败。知道我们是否可以将 !important 与 SCSS 函数一起使用吗?

愚蠢的我!这是因为我输入了错误的颜色格式,而不是因为 !important。但是由于匆忙,我没有完全阅读它,只是假设这是因为 !important。现在可以使用了。