简体   繁体   English

无法让人怀疑地开始工作

[英]Can`t make susy start working

I wanted to start a project with Sass / Compass and for grid I want to use susy. 我想用Sass / Compass开始一个项目,对于网格我想使用susy。 Installed sass -v 3.4.24 Compass 1.0.3 已安装sass -v 3.4.24 Compass 1.0.3

All good and working. 一切正常,工作正常。 After I installed susy 3.0.6 and not working then I tried 2.2.12, and use the simple code body { @include container(80em); } 安装susy 3.0.6并无法正常工作后,我尝试了2.2.12,并使用简单的代码body { @include container(80em); } body { @include container(80em); }

I get the Undefined mixin 'container' all the time. 我一直都得到Undefined mixin 'container'

What do i do wrong? 我做错了什么?

I don't recommend using Compass, since it is no longer maintained and Susy 3 no longer supports it. 我不建议使用Compass,因为它不再维护并且Susy 3不再支持它。 With Susy 2, it should work, but you will have to require and import Susy before it will work. 使用Susy 2,它应该可以使用,但是您必须先要求并导入Susy,然后才能使用。 Installing is not enough. 仅安装还不够。

There are some brief instructions in the Susy docs . Susy文档中有一些简短说明。

Specifically, those commands add a require 'susy' line to the compass config, and an import 'susy' line in the Sass/Scss. 具体地,这些命令添加require 'susy'线向罗盘的配置,以及一个import 'susy'在萨斯/ SCSS线。

Since Compass is no longer maintained, I'm a bit fuzzy on exactly how the config/require is supposed to look. 由于不再维护Compass,因此我对配置/需求的外观有些不确定。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM