July 2013
Intermediate to advanced
240 pages
7h 5m
English
To start using Compass in a new project, open up your terminal and run the following:
$ compass create my-project
This will create the my-project directory if it doesn’t already exist and fill it with the following files:
my-project/
config.rb
- sass/
- ie.scss
- print.scss
- screen.scss
- stylesheets/
- ie.css
- print.css
- screen.css
If you don’t pass a directory to the compass create command, it’ll use your current directory.
In config.rb, you’ll make changes to Compass configurations like asset locations and compression level (more on that in a moment). The sass directory contains some starter stylesheets that you can edit, rename, or toss out completely, but this is where ...