Susy: mixin applies, but throws error

我只是一个虾纸丫 提交于 2019-12-11 06:48:30

问题


I just started to use Susy. When I apply span-columns() mixins, the markup does applies correctly, but sass throws an error: (Line 276: Undefined mixin 'span-columns'.)

#element-1 {
  @include span-columns(6, 12);
}
#element-2 {
  @include span-columns(6 omega, 12);
}
  • Sass 3.3.0.alpha.3
  • Compass 0.12.2
  • susy-1.0.8

-- Edit: Fixed - it was me assuming that including Susy in a previously included scss file would be suffice to work in the last included scss file (which in a way it did). I included Susy again.


回答1:


Have you required Susy in the Compass config.rb file in the project folders root?

require "susy";

And have you imported Susy and Compass in the init of your scss file?

@import 'compass'; 
@import 'susy';


来源:https://stackoverflow.com/questions/16106477/susy-mixin-applies-but-throws-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!