Syntactically Awesome StyleSheets
CSS extension that adds power and elegance to the basic language
Syntactically Awesome StyleSheets CSS extension that adds power - - PowerPoint PPT Presentation
Syntactically Awesome StyleSheets CSS extension that adds power and elegance to the basic language Sass An extension to CSS that adds power & elegance to the basic language Allows the use of variables o Allows the use of nested rules
CSS extension that adds power and elegance to the basic language
to the basic language
colors and other values
have the .scss extension
syntax to the other using the sass-convert command line tool: # Convert Sass to SCSS $ sass-convert style.sass style.scss # Convert SCSS to Sass $ sass-convert style.scss style.sass
your machine
harder to maintain
like
$ sass input.scss output.css # Watch a single file $ sass --watch input.scss:output.css # Watch entire directory $ sass --watch app/scss:public/stylesheets $sass --watch ./
1. Repeat 1 – 2 above, in step 2 type “list p” 2. Choose “Package Control: List Packages”. Scroll to find sass
Sublime Text
in your other Sass files files
things easier to maintain
underscore
partial file and that it should not be generated into a CSS file
into smaller, more maintainable portions.
@import in CSS it creates another HTTP request.
combines it with the file you're importing into so you can serve a single CSS file to the web browser
you want to reuse throughout your stylesheet
CSS value you think you'll want to reuse
variable $primary-font-stack: "gill sans", "verdana", "arial", san-serif;
especially vendor prefixes that exist
that you want to reuse throughout your site
more flexible
give it a name
from one selector to another
has a clear nested and visual hierarchy
follows the same visual hierarchy of your HTML.
selectors and import in style.scss
+, -, *, /, and %.
to calculate widths for a few elements