Susy:mixin适用,但抛出错误 [英] Susy: mixin applies, but throws error

查看:202
本文介绍了Susy:mixin适用,但抛出错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚开始使用Susy。当我应用span-columns()mixins时,标记确实适用,但sass引发一个错误:(行276:未定义的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



- 编辑:修正 - 这是我假设包括Susy在以前包含的scss文件将是足够的工作在最后包含scss文件(在某种程度上)。

$ p

解决方案

您是否在项目文件夹root中的Compass config.rb文件中需要Susy?

  requiresusy;您是否已经在您的scss文件的init中导入了Susy和Compass?

$ b





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


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.

解决方案

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';

这篇关于Susy:mixin适用,但抛出错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆