我使用了ember 2.2和ember-cli-materialize組件。 我的問題是,在app/styles/app.scss中,我可以定義$ primary-color,但所有其他值都被忽略(如$ accent-color或$ secondary-text-color)。如何在ember-cli-materialize中定義secondary-&accent-color?
這裏是我的app.scss:
@import 'components/color';
$primary-color-dark: #212121;
$primary-color: #212121; // only this line works
$primary-color-light: #212121;
$accent-color: #ff6f00;
$primary-text-color: #ff6f00;
$secondary-text-color: #ff6f00;
$divider-color: #B6B6B6;
@import 'components/variables';
@import 'materialize';
@import 'ember-cli-materialize';
你從哪裏得到這樣的變量名?在物化css中我找不到'accent-color'變量,但是你試圖在這裏覆蓋它。 –
是的,這是真的......我在實際文件中看到了這一點。他們似乎改變了一些變數。 –