我在这里把头撞在墙上,希望能得到一些帮助。所以..
最近,当我创建一个基础元素(或任何现有元素)时,我正在导入所有基础:
@import "settings";
@import "foundation";
但是,当我用compass编译scss时,它不会导入所有的foundation。我最终得到:
../bower_components/foundation/scss/foundation/components/_visibility.scss */
../bower_components/foundation/scss/foundation/components/_offcanvas.scss */
../bower_components/foundation/scss/foundation/components/_icon-bar.scss */
以及我最终 app.css 中的关联 CSS,但没有导入其他 CSS。
最佳答案
Sass 3.4.0 对 index()
函数引入了向后不兼容的更改,Foundation 广泛使用该函数来确定它是否应该生成样式。这已在 Sass changelog 中注明。 :
index() now returns null rather than false if the value isn't found in the list.
Foundation 尚未更新为与 3.4 兼容,因此在此之前您需要下降到 Sass 3.3.x。
另见:
关于css - Foundation 5 构建未完成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25673067/