【问题标题】:Foundation 5 build isn't completeFoundation 5 构建未完成
【发布时间】:2014-09-11 03:42:27
【问题描述】:

我在这里把头靠在墙上,希望能得到一些帮助。所以..

最近,当我创建一个基础项目(或任何现有项目)时,我正在导入所有基础:

@import "settings";
@import "foundation";

但是,当我用 compass 编译 scss 时,它不会导入所有的基础。我最终得到:

../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 zurb-foundation


    【解决方案1】:

    Sass 3.4.0 对 index() 函数引入了向后不兼容的更改,Foundation 广泛使用该函数来确定是否应该生成样式。这已在Sass changelog 中注明:

    index() 现在如果在列表中找不到该值,则返回 null 而不是 false。

    Foundation 尚未更新为与 3.4 兼容,因此在此之前您需要下载到 Sass 3.3.x。

    另见:

    【讨论】:

      猜你喜欢
      • 2018-10-01
      • 1970-01-01
      • 1970-01-01
      • 2020-11-11
      • 2011-05-06
      • 1970-01-01
      • 2016-12-08
      • 2011-06-02
      相关资源
      最近更新 更多