2017-03-11 5 views
0

を取得できません、私の_custom.scssです:は、ここでブートストラップ4のcustom.css

// Bootstrap overrides 
// 
// Copy variables from `_variables.scss` to this file to override default values 
// without modifying source files. 
//$body-bg: $gray-dark; 
//$body-color: $gray-light; 
$blue: #363636; 
$component-active-bg: #484545; 
$dropdown-bg: $brand-primary; 
$dropdown-link-color: #c3c3c3; 
$dropdown-link-hover-color: darken(#c3c3c3, 5%); 

とbootstrap.scss:

// Core variables and mixins 
@import "variables"; 
@import "mixins"; 
@import "_custom"; 

私が提供Gruntfile.jsでそれをコンパイルしています。 結果のCSSファイルは効果がありません。すべてが元のCSSのように見えます。 コンパイルプロセスが実際に動作しているかどうかをテストするにはどうすればよいですか?私はあなたが持っているべきだと思いboostrap.scssのフォーマットから

おかげ

答えて

1

:「!デフォルト」

@import "custom"; 

次に、あなたが_custom.scssで変更を加える際に、タグをオフにしておきます。例:

// _variables.css 
$blue: #0275d8 !default; 
/// _custom.css 
$blue: #002b5b; 
関連する問題