Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Susy does not work with Compass 0.10.5 + Rails 3 RC2 #5

Closed
lailsonbm opened this issue Aug 29, 2010 · 6 comments
Closed

Susy does not work with Compass 0.10.5 + Rails 3 RC2 #5

lailsonbm opened this issue Aug 29, 2010 · 6 comments

Comments

@lailsonbm
Copy link

Hi, I'm trying to run compass with Susy on a Rails 3 RC2 app with Compass 0.10.5, but the stylesheets are not being compiled. The same environment works with Blueprint, though. Any idea?

@mirisuzanne
Copy link
Member

Susy works fine with Compass 0.10.5, but I don't know much about the Rails setup.

Do you have a "require susy" line in your compass config for the project? Blueprint is included in the compass core, so may not require a similar line. I'll look into it more if that doesn't work.

@lailsonbm
Copy link
Author

Hi Eric, thanks for your fast response.
I found the problem. It's on the installer compass init. When it finishes, it asks to include the scss files on the application template, instead of the css files:
= stylesheet_link_tag 'compiled/screen.scss', :media => 'screen, projection'
= stylesheet_link_tag 'compiled/print.scss', :media => 'print'
= stylesheet_link_tag 'compiled/ie.scss', :media => 'screen, projection'

Can you please correct that? It's simple, but it can confuse many people (like me). Thanks for this great project.

@DEfusion
Copy link

How did you get susy working with compass in a rails project, I'm getting Undefined mixin container the SASS is exactly what the compass create foo -r susy -u susy command output to _base.scss & the gem is defined in my Gemfile.

@chriseppstein
Copy link
Contributor

@lailsonbm If you has installed using compass init -r susy --using susy then the stylesheets it recommended would have been correct I think. Is that the issue you have? If so, maybe there's just a documentation issue here.

@DEfusion
Copy link

@chriseppstein, I think you were replying to me.

I added the gem to my Gemfile (the rails project was already using compass) and copied the styles from the example to my stylesheet and now I get the Undefined mixin container

If I dump the frameworks that Compass has loaded it shows susy as being there, just not getting any of the mixins.

@DEfusion
Copy link

Ah if I change the imports from:
@import "susy/susy";

To:
@import "susy";
@import "susy/susy";

Then it works fine.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants