我正在尝试使用install zurbs foundation framework
我已安装此gem: zurb-foundation(4.3.1)
从我的项目中,我做到了:
compass install foundation
我明白了:
No such framework: "foundation"
如何实际使用已安装的框架?
答案 0 :(得分:1)
命令是:
compass install -r zurb-foundation foundation
如果您已经安装了zurb-foundation,那么使用基础创建新项目的命令是:
compass create <project-name> -r zurb-foundation --using foundation
如果您正在使用基础和sass已经存在的项目,则需要根目录中的config.rb文件:
require 'zurb-foundation'
# Require any additional compass plugins here.
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "stylesheets"
sass_dir = "sass"
images_dir = "images"
javascripts_dir = "javascripts"
# You can select your preferred output style here (can be overridden via the command line):
# output_style = :expanded or :nested or :compact or :compressed
# To enable relative paths to assets via compass helper functions. Uncomment:
# relative_assets = true
# To disable debugging comments that display the original location of your selectors. Uncomment:
# line_comments = false
# If you prefer the indented syntax, you might want to regenerate this
# project again passing --syntax sass, or you can uncomment this:
# preferred_syntax = :sass
# and then run:
# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass
preferred_syntax = :scss
确保您位于顶部require 'zurb-foundation'
。当我有一个已经存在的项目时,这就是为我解决的问题。
答案 1 :(得分:0)
以下命令应该有所帮助,它也在文档here中说明。
在“创建您的第一个项目”下找到。
$ compass create <project-name> -r zurb-foundation --using foundation
我应该注意这是创建一个新项目
如果它正在添加到现有项目中,可能您错过了: