2017-02-17 66 views
0

我使用bulma.css所看到here如何修改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 

需要與青菜來修改它有CSS變量,但我沒有使用任何CSS處理器,這樣怎麼能我修改變量而不改變主要的css文件並重寫?

回答

1

CSS沒有變量。如果不使用預處理器或者逐個編輯每個值(SASS中的變量通常會這樣做),則無法編輯變量。

+0

但我包含的是bulma.css的CSS,所以我不知道發生了什麼 – user7342807

+0

您需要使用sass幷包含bulma.sass/bulma.scss,然後編輯變量,如[所示] (http://bulma.io/documentation/overview/start/) – theflametrooper

+0

但我只需要將bulma.css上傳到我的服務器 – user7342807