【发布时间】:2014-10-22 10:50:08
【问题描述】:
几天前用 Sass 安装了 Foundation 5。但是,之后:
- 基础新 test_grid
- cd test_grid
- 指南针手表
watch 创建的文件、目录...
打开 index.html 并且没有样式。 (我也试过'compass compile'和'compass watch',但没有任何变化。
指南针使用的config.rb显示:
add_import_path "bower_components/foundation/scss"
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "stylesheets"
sass_dir = "scss"
images_dir = "images"
javascripts_dir = "js"
app.scss 显示:
@import "settings";
@import "foundation";
查看 stylesheets/app.css 似乎没有导入foundation.css 文件。
对正在发生的事情有任何想法吗?可能是一个完全新手的问题...把我的头撞到墙上并在谷歌上搜索到令人作呕的结果。
根据建议,我重新安装了 compass,但还是一样。 看的时候指南针好像没问题:
emily@emily:~/sites/test_grids(master*)$ compass watch
>>> Compass is watching for changes. Press Ctrl-C to Stop.
directory stylesheets
write stylesheets/app.css
当我修改 bower_components/foundation/scss/foundation.scss (insert p {font-size: 10rem;} 它显示:
modified bower_components/foundation/scss/foundation.scss
write stylesheets/app.css
刷新后的 index.html 字体大小发生变化,但同样没有foundation.css 样式。
【问题讨论】:
标签: css sass zurb-foundation