Rails 3.1 scss and where is the compass?

I am creating a new theme for my cms using scss. I am currently on rails 3.0.7, but I'm going to upgrade to 3.1 as soon as the release is released so that I can use the pipeline stuff.

My question is, where does the compass fit into 3.1 rails? still useful / necessary?

Does it work with 3.1? Has anyone got any experience with this or any alternative?

thanks rick

+4
source share
1 answer

If you only use a compass to include files, then it is not needed, but Compass is much larger. Compass is a Framework that includes proven templates for creating stylesheets for multiple browsers. It also makes creating sprites extremely easy.

For instance:

.simple { @include border-radius(4px, 4px); }

will produce:

 .simple { -webkit-border-radius: 4px 4px; -moz-border-radius: 4px / 4px; -o-border-radius: 4px / 4px; -ms-border-radius: 4px / 4px; -khtml-border-radius: 4px / 4px; border-radius: 4px / 4px; } 

If you do not know the meaning of Compass, I would recommend reading the manuals .

Compass is currently mainly supported by Rails 3.1.RC4, adding the following gems:

 gem "compass", :git => 'git://github.com/chriseppstein/compass.git', :branch => 'rails31' gem 'sass-rails', :git => 'git://github.com/rails/sass-rails.git' 
+1
source

All Articles