Starting a redesign of my site which is using Rails 3.2. I was already using Sass and Compass and for the redesign have thrown all the old styles out and want to add Susy into the mix. Just a few quick questions about how things work before I get going:
I have just added: config.compass.preferred_syntax :sass
to my application.rb
file in /config
, is this correct? Is the application.rb
file sort of substituting itself for the normal compass.rb
config file on standard compass projects?
The line I added obviously changes the expected syntax to the sass indented one which I much prefer but it looks like that line is telling compass what syntax I like. Is compass now doing the compiling of the css and not sass? I also read in the sass docs that you can tell it what syntax you prefer, do I need to set them both? I'm just not sure what is doing what function!
I have also added gem "susy"
into my Gemfile
, do I need to add config.compass.require "susy"
to /config/application.rb
?
Also, If I want to set the fonts_dir, Compass docs state that by default for Rails apps it will default to public/fonts
but I want to put them in /app/assets/fonts
. Will that work?
From Compass docs:
String The directory where the font files are kept. Standalone projects will default to /fonts. Rails projects will default to "public/fonts".
I hope people will be able to shed some light on these issues for me.