6. USGWeb Collaboration Group
• Communication list for web development
discussion between the 31 institutions
in the University System of Georgia.
!
• http://usgweb.gatech.edu
11. CSS Growing Up
• Before CSS, there were
inline element styles.
<font color=“green” size=“8” family=“Wingdings”>
12. CSS Growing Up
• Before CSS, there were
inline element styles.
!
• Then CSS was born
with style.
<font color=“green” size=“8” family=“Wingdings”>
<font style=“color: green; font-size: 8pt; font-family:
Wingdings”>
13. CSS Growing Up
• Before CSS, there were
inline element styles.
!
• Then CSS was born
with style.
!
• Finally, CSS grew too
big to live with HTML.
<font color=“green” size=“8” family=“Wingdings”>
<font style=“color: green; font-size: 8pt; font-family:
Wingdings”>
@import url(fancy-pants-css.css);
14. CSS Has Not Aged Well..
Variables
CSS3
Inheritance
Reusability
CSS Organization
Media Queries
Theme Templates
15. Some of this will change..
• CSS4 looks to fix some of
these issues (1)
• Parent Selectors
• Grids
• However, there’s still one big elephant in the room.
17. What is DRY?
• Minimizing repetition of
the information in a
project
• Modifications only happen in
one place
!
• Construction of
repetitive, reusable,
and scalable elements
18. DRY in CSS
• CSS does not have DRY
capabilities built-in:
• Variables (i.e. color, font)
• Media queries
• Chunks of CSS
• So, how do we fix CSS and get out of this mess?
20. What is
Sass?
World 2-1
Section Text
Body Level One
MARIO
0000000
WORLD
2-1
TIME
ROCK_EAGLE
x 3
21. Preprocessor
• Sass is a preprocessor for CSS
• Converts Sass short-code into clunky, ugly CSS
• Serves as a translator
CSS
compiles
to
SASS
22. Sass
• Sass uses a very CSS-like syntax (.SCSS) to extend
new features into the syntax you already know
!
• An alternative is a tab-centric syntax (.SASS)
28. 1) Get a App
• Easiest way to get started is to download a Sass
application.
• http://sass-lang.com/install
• Multi-platform releases
• Free and paid products available
46. Source Maps
• Source maps allow you to see the original source
(Sass) instead of the compiled CSS while debugging.
47. Source Maps
• Requires enabling source-maps on Sass and in the
desired browser (Chrome & Firefox, Safari).
http://thesassway.com/intermediate/using-source-maps-with-sass