【问题标题】:Compass not compiling Sass map [duplicate]指南针不编译 Sass 地图 [重复]
【发布时间】:2014-05-02 07:49:29
【问题描述】:

我有一个 Sass 地图,编译时 Compass 抱怨。我收到语法错误。我在 Sassmeister 上有一个 example of the code,它编译得很好。

这里是 Sass 地图和 Compass 编译错误:

$homepageShapes: (
    template1: (svg: "verticies.svg", top: 200px, left: 150px),
    template2: (svg: "full.svg", top: 300px, left: 30px),
    template3: (svg: "swipe_medium_right.svg", top: 300px, left: 30px),
    template4: (svg: "swipe_medium_left.svg", top: 300px, left: 30px),
    template5: (svg: "swipe_small_left.svg", top: 300px, left: 30px),
    template6: (svg: "swipe_small_right.svg", top: 300px, left: 30px),
    template7: (svg: "text_only.svg", top: 300px, left: 30px)
);
error workspace/submoduled-assets/styles/styleguide.scss (Line 2 of workspace/submoduled-assets/styles/modules/_node-homepage-rotator.scss: Invalid CSS after "    template1": expected ")", was ": (svg: "vertic...")

我安装了 Sass v3.3.6 和 Compass v0.12.6。

【问题讨论】:

  • 可能想在 github 上提交问题...

标签: css sass compass-sass


【解决方案1】:

我直奔源头。 Chris Eppstein 说预发布版本确实支持此功能。我宁愿不使用预发布版本,但我想我会,因为 sass 地图是如此重要的功能。

【讨论】:

  • 我也这样做了(sass),特别是因为我想使用一些最新的功能。到目前为止还没有遇到任何问题;)
猜你喜欢
  • 2013-12-29
  • 2018-08-17
  • 1970-01-01
  • 2012-07-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-10-06
  • 1970-01-01
相关资源
最近更新 更多