280 likes | 622 Views
SASS. Syntactically Awesome Style Sheets. Katie Purdy ISTJ Technical Communications 1100 October 8 th , 2013. CSS Preprocessors. Extend the functionality of CSS Help organize code during development Provide better cross-browser compatibility with ease
E N D
SASS Syntactically Awesome Style Sheets Katie Purdy ISTJ Technical Communications 1100 October 8th, 2013
CSS Preprocessors • Extend the functionality of CSS • Help organize code during development • Provide better cross-browser compatibility with ease • Create code that is easier to maintain and share • Add logic and functionality expected by programmers
You already know how to write valid Sass! Every CSS file is a valid SCSS file
Setup/Installation • Sass runs using Ruby • Distributed via the Ruby package manager called RubyGems • gem install sass and/or use Scout
Compiling Sass files into CSS • Individual file: • sass --watch style.scss:style.css • Entire directory: • sass --watch style sheets/sass:stylesheets/compiled
Variables style.scss style.css
Math style.scss style.css
style.css @import style.scss
Nesting style.css style.scss
Mixins style.scss style.css
A library of Sass mixins Provides greater cross-browser compatibility Solves common problems Included with Scout gem install compass compass create <ProjectDirectoryName>