Css ZURB基金会SASS未完全编译
编辑: 此问题在sass 3.4.2中出现。使用sass 3.2.13非常有效。 有什么变化吗 <>我有一份新的Zurb基金会,使用<代码> Buver安装基金会<代码> >Css ZURB基金会SASS未完全编译,css,sass,zurb-foundation,compass-sass,Css,Sass,Zurb Foundation,Compass Sass,编辑: 此问题在sass 3.4.2中出现。使用sass 3.2.13非常有效。 有什么变化吗 我有一份新的Zurb基金会,使用 Buver安装基金会 > 当我尝试使用罗盘SASS编译它时( SASS基础。SCSS>基金会。CSS),我得到了一个样式表,它缺少像按钮这样的某些组件。 > ruby --version ruby 1.9.3p545 (2014-02-24) [i386-mingw32] > scss --version Sass 3.4.2 (Selective S
当我尝试使用罗盘SASS编译它时(<代码> SASS基础。SCSS>基金会。CSS<代码>),我得到了一个样式表,它缺少像按钮这样的某些组件。
> ruby --version
ruby 1.9.3p545 (2014-02-24) [i386-mingw32]
> scss --version
Sass 3.4.2 (Selective Steve)
采取的具体步骤:
>bower安装zurb/bower基础
>cd-bower\u组件/foundation/scss
< P>在基金会中似乎有一个更小的bug(甚至可能涉及全局变量的使用)。 新版本的Compass和SASS支持这些警告/错误(显示的是旧版本的SASS/Compass输出的错误日志) <> P>我做的补救或修正是为一个包含基础的项目,运行一个旧版本的罗盘和SAS来减轻这个问题(这个过程需要RVM) Gemfile(可以使用
bundle init
生成)
我希望这能解决你的问题
最好的
Lucas我们必须对命令进行一些更改,以创建新的项目和过程,以便在5.4.4中更新5.4.5/,您将不会遇到任何问题。我们添加了一个gemfile来使用Sass 3.3,以便项目编译并生成一个弃用警告 更多信息请点击此处: 如果您使用的是Sass 3.4和Compass 1.0,则新命令包括: 在运行Compass watch之前,每个项目只运行“bundle”**一次 然后编译-‘bundle exec compass watch’ 这样你就不必降级Sass版本了 要知道你的Sass版本是什么 Sass-v
compass-v根据文档,您肯定应该使用
bower install zurb/bower foundation
?对于bower install zurb/bower foundation
我不是bower/Sass用户,但这些CLI调用看起来与发布的不同。zurb/bower基金会来自他们的GitHub回购协议。似乎它们可以互换使用?
DEPRECATION WARNING on line 270 of /bower_components/foundation/scss/foundation/components/_global.scss:
Assigning to global variable "$default-float" 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 "$default-float: left !global" instead.
Note that this will be incompatible with Sass 3.2.
DEPRECATION WARNING on line 271 of /bower_components/foundation/scss/foundation/components/_global.scss:
Assigning to global variable "$opposite-direction" 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 "$opposite-direction: right !global" instead.
Note that this will be incompatible with Sass 3.2.
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 /bower_components/foundation/scss/foundation/_functions.scss, in `exports'
from line 336 of /bower_components/foundation/scss/foundation/components/_global.scss
from line 5 of /bower_components/foundation/scss/foundation/components/_grid.scss
from line 9 of /bower_components/foundation/scss/foundation.scss
from line 9 of /resources/sass/screen.scss
DEPRECATION WARNING on line 13 of /bower_components/foundation/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.
# A sample Gemfile
source "https://rubygems.org"
# gem "rails"
gem "sass", "3.3.14"
gem "compass", "1.0.0"