Más contenido relacionado Similar a Getting SASSy with front end development (20) Getting SASSy with front end development2. The Studio of
Matthew Carleton
Web Design, development and branding
@matthewcarleton
matthewcarleton.com
7. What we will talk about
1. SASS?
2. Who is SASS for
3. Features of SASS
4. Setting up SASS
5. Libraries & Resources
9. SASS is a preprocessor for your CSS
</> </>
input.scss output.css
18. Variables
Say goodbye to HEX values
A variable allows you to pull in values that you only define once. If you
are looking for one reason to switch to SASS variables are it.
SCSS
23. Nesting
The all powerful “&”
Using the “&” helps with pseudo elements, pseudo classes, and class
extensions.
SCSSCSS
24. Nesting
The all powerful “&”
Using the “&” helps with pseudo elements, pseudo classes, and class
extensions.
SCSSCSS
26. Nesting
The all powerful “&”
Using the “&” helps with pseudo elements, pseudo classes, and class
extensions.
SCSSCSS
29. Mixins
Reusable chunks of CSS
Create a mixin by declaring “@mixin mixin-name”. Call a mixin by
declaring “@include mixin-name”.
SCSS
42. Setting up SASS
Bonus : Output style
Nested
Expanded
Compact
Compressed
$ sass — watch sass/styles.scss:css/styles.css — style compressed