我正在使用 bourbon 和 neat 宝石来创建 Rails 应用程序的设计。我的 application.css.scss 包含以下内容:
@import "bourbon";
@import "neat";
@import "main";
但是,如果我运行“rake assets:precompile”命令,则会出现以下错误:
rake aborted!
Undefined mixin 'outer-container'.
(in /Users/anonymous/example/app/assets/stylesheets/admin/main.css.scss)
/Users/anonymous/example/app/assets/stylesheets/admin/main.css.scss:5:in `outer-container'
/Users/anonymous/example/app/assets/stylesheets/admin/main.css.scss:5
文件main.css.scss包含以下内容:
footer#page_footer {
@include outer-container;
nav{
@include span-columns(6);
@include shift(3);
section#about_me_footer, section#contact_footer, section#miscellaneous_footer {
@include span-columns(2 of 6);
}
}
p {
@include span-columns(6);
@include shift(3);
}
}
有人能给我一些建议吗?