- Website: http://sass-lang.com/
- Docs: http://sass-lang.com/guide
- Tutorial: https://www.codecademy.com/learn/learn-sass
Install on OS X: sudo gem install sass
Version info: sass -v
Compile: sass styles.scss styles.css
Auto-Compile for single files: sass --watch styles.scss:styles.css
Auto-Compile for folders: sass --watch .
- There is no difference between underscores and dashes in variables:
$my_var === $my-var
- Skip default spaces with a leading ampersand:
&:hover
- Skip default nesting with an ending ampersand
body.blog &
- Prevent compiling for
@import
with a leading underscore:_normalize.scss
Docs: http://sass-lang.com/documentation/Sass/Script/Functions.html