【发布时间】:2012-12-14 23:17:20
【问题描述】:
在Ryan Bates' screencast on Bourbon 之后,我有我的application.css.scss 文件:
@import "bourbon";
@import "main";
@import "events";
..etc.
在我的main.css.scss 样式表中一切正常,我可以完美地使用@include transition() mixin,但是当我尝试使用@include font-face 时,我的Rails 应用程序中出现Undefined mixin 'font-face'. 错误。
确切的代码行是
@include font-face(HN, '/helveticaneue', normal, $asset-pipeline: true);
我试过不使用normal,只使用'helveticaneue'(没有斜线)。该文件存在且未损坏,因为使用 CSS @font-face 有效。
gem 'bourbon', :git => 'git://github.com/thoughtbot/bourbon.git', :ref => 'f93cf9e'
在我的 Gemfile 中。
为什么 Bourbon 不采用 mixin?
【问题讨论】:
标签: css ruby-on-rails sass bourbon