0

我正在使用具有 CSS 变量的 bulma.css,如此处所示

// Override initial variables here
// You can add new ones or update existing ones:

$blue: #72d0eb // Update blue
$pink: #ffb3b3 // Add pink
$family-serif: "Georgia", serif // Add a serif family

// Override generated variables here
// For example, by default, the $danger color is $red and the font is sans-serif
// You can change these values:

$danger: $orange // Use the existing orange
$family-primary: $family-serif // Use the new serif family

这些需要使用 Sass 进行修改,但我没有使用任何 CSS 预处理器,那么如何在不更改主 CSS 文件并进行覆盖的情况下修改变量?

4

1 回答 1

1

CSS没有变量。如果不使用预处理器或逐个编辑每个值(SASS 中的变量通常会这样做),则无法编辑变量。

于 2017-02-18T00:04:30.543 回答