我一直有在试图建立基金会5,这样我可以使用SASS定制没有困难结束。 据Zurb基金会使用SASS是来定制它的最简单的方法,但由于某种原因没有对此有任何有用的文档。
我已经到处找,发现位和inforamtion的peices和终于设法得到的东西的工作,这样,当我修改的主要SCSS文件,它会创建一个相应的CSS文件。 然而,无论变量我添加到我的SCSS文件,试图修改颜色等等,它似乎没有任何效果。 我读的地方复制你想要从_settings.scss文件改变,他们进入自己的SCSS文件,然后修改值的变量。 任何人都可以请帮我这个,它让我疯狂。 我的文件夹/文件设置为:
/MyProject/
/CSS/
/foundation/
- foundation.css
- normalise.css
- myfile.css
/SCSS/
/foundation/
/components/
-- _accordion.scss
-- _etc.scss (and the rest ofthe files in components)
-- _functions.scss
-- _settings.scss
- foundation.scss
- normalise.scss
- myfile.scss
- index.html
在myfile.scss我有:
@import 'foundation.scss';
@import 'normalize.scss';
$body-bg: #ccc;
$body-font-color: #000;
// $body-font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
// $body-font-weight: normal;
// $body-font-style: normal;
myfile.css始终保持不变,无论什么,我在上面的文件更改:
body {
background: white;
color: #222222;
padding: 0;
margin: 0;
font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
font-weight: normal;
font-style: normal;
line-height: 1;
position: relative;
cursor: default; }
我收到错误消息是:
DEPRECATION WARNING: The return value of index() will change from "false" to
"null" in future versions of Sass. For compatibility, avoid using "== false" on
the return value. For example, instead of "@if index(...) == false", just write
"@if not index(...)".
on line of C:\Users\Leanne\Documents\work\freelance\sites\fws_templates\gamer\scss\foundation\_functions.scss, in `exports'
from line 296 of C:\Users\Leanne\Documents\work\freelance\sites\fws_templates\gamer\scss\foundation\components\_global.scss
from line 5 of C:\Users\Leanne\Documents\work\freelance\sites\fws_templates\gamer\scss\foundation\components\_accordion.scss
from line 10 of C:\Users\Leanne\Documents\work\freelance\sites\fws_templates\gamer\scss\foundation.scss
from line 11 of C:\Users\Leanne\Documents\work\freelance\sites\fws_templates\gamer\scss\store.scss
DEPRECATION WARNING on line 13 of C:\Users\Leanne\Documents\work\freelance\sites\fws_templates\gamer\scss\foundation\_functions.scss:
Assigning to global variable "$modules" by default is deprecated.
In future versions of Sass, this will create a new local variable.
If you want to assign to the global variable, use "$modules: append($modules, $name) !global" instead.
Note that this will be incompatible with Sass 3.2.
DEPRECATION WARNING on line 18 of C:\Users\Leanne\Documents\work\freelance\sites\fws_templates\gamer\scss\foundation\components\_block-grid.scss:
Assigning to global variable "$block-grid-default-spacing" by default is deprecated.
In future versions of Sass, this will create a new local variable.
If you want to assign to the global variable, use "$block-grid-default-spacing: $column-gutter !global" instead.
Note that this will be incompatible with Sass 3.2.
Done.