1.2 KiB
1.2 KiB
title | layout | crumb | classnames | |
---|---|---|---|---|
Getting Started | tutorial | Getting Started |
|
Getting Started
Installing Ruby
Installing Compass
Once Ruby is installed open your terminal and run the following:
gem update --system
gem install compass
Creating your first Compass project
Stand Alone
See the install page for more details
To create a new Compass stand alone project run compass create <project_name>
You should see the following output:
directory my_project/
directory my_project/sass/
directory my_project/stylesheets/
create my_project/config.rb
create my_project/sass/screen.scss
create my_project/sass/print.scss
create my_project/sass/ie.scss
create my_project/stylesheets/ie.css
create my_project/stylesheets/print.css
create my_project/stylesheets/screen.css
Rails
- Goto your rails root directory
cd <rails_dorectory>
- Run the compass initalizer command
compass init rails .
Starting the Compass watcher
To start the compass watcher run compass watch
from your projects root directory