简体   繁体   中英

Can`t make susy start working

I wanted to start a project with Sass / Compass and for grid I want to use susy. Installed 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); } body { @include container(80em); }

I get the Undefined mixin 'container' all the time.

What do i do wrong?

I don't recommend using Compass, since it is no longer maintained and Susy 3 no longer supports it. With Susy 2, it should work, but you will have to require and import Susy before it will work. Installing is not enough.

There are some brief instructions in the Susy docs .

Specifically, those commands add a require 'susy' line to the compass config, and an import 'susy' line in the Sass/Scss.

Since Compass is no longer maintained, I'm a bit fuzzy on exactly how the config/require is supposed to look.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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