如何修改bulma中的css变量

时间:2017-02-17 07:25:24

标签: css sass css-preprocessor bulma

我正在使用bulma.css,它有css变量,见here

// 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文件并进行覆盖?

1 个答案:

答案 0 :(得分:1)

CSS没有变量。您不能在不使用预处理器的情况下编辑变量,也不能逐个编辑每个值(SASS中的变量通常都是这样)。