SlideShare a Scribd company logo
1 of 17
Dave Ross • Fox Valley Computing Professionals
                April 10, 2012
Sass
Syntactically Awesome Stylesheets
          sass-lang.com
Valid CSS is valid Sass
@import “reset.css”;              /* reset.css gets put here */

#content {                        #content {
   font-face: Helvetica, Arial;      font-face: Helvetica, Arial;
   font-size: 14px;                  font-size: 14px;
}                                 }
!                                 !
#content blockquote {             #content blockquote {
   color: #0f0;!                     color: #0f0;!
}                                 }
Nesting
#content {                            #content {
   font-face: Helvetica, Arial;          font-face: Helvetica, Arial;
   font-size: 14px;                      font-size: 14px;
                                      }
    blockquote {                      !
       color: #0f0;                   #content blockquote {
    }                                    color: #0f0;!
}                                     }
Variables
$green: #0f0;                          #content {
                                          font-face: Helvetica, Arial;
#content {                                font-size: 14px;
   font-face: Helvetica, Arial;           border: 1px solid #0f0;
   font-size: 14px;                    }
   border: 1px solid $green;           !
                                       #content blockquote {
    blockquote {                       !    color: #0f0;!
       color: $green;                  }
    }
}
Math & Built-in Functions
$green: #0f0;                             #content {
$normal_font_size: 14px;                     font-face: Helvetica, Arial;
                                             font-size: 14px;
#content {                                   border: 1px solid $0f0;
   font-face: Helvetica, Arial;           }
   font-size: $normal_font_size;
   border: 1px solid $green;              #content h1 {
   h1 {                                      font-size: 28px;
      font-size: $normal_font_size * 2;   }
   }
   blockquote {                           #content blockquote {
      color: darken($green, 50%);            color: #080;
   }                                      }
}
Inheritance
.error {                         .error, .major_error {
    color: #f00;                     color: #f00;
    font-face: “Comic Sans”;         font-face: “Comic Sans”;
}                                }

.major_error {                   .major_error {
   @extend .error;                  font-size: 4em;
   font-size: 4em;               }
}
Mixins (functions)
@mixin left($offset) {    img {
  float: left;                float: left;
  margin-left: $offset;      margin-left: 1em;
}                         }

img {                     img.off_the_edge {
   @include left(1em);       float: left;
}                            margin-left: -2em;
                          }
img.off_the_edge {
   @include left(-2em);
}
@media Bubbling
button {                                     button {
   color: #fff;                                 color: #fff;
   background-color: #003;                      background-color: #003;
   @media screen and max-width: 280px) {     }
       height: 44px;                         @media screen and max-width: 280px) {
   }                                            button {
}                                                   height: 44px;
                                                }
p{                                           }
     font-size: 12px;
     @media screen and max-width: 280px) {   p{
        font-size: 14px;                          font-size: 12px;
     }                                       }
}
                                             @media screen and max-width: 280px) {
                                               p{
                                                  font-size: 14px;
                                               }
                                             }
Compass
CSS framework built on Sass
    compass-style.org
Cross-Browser CSS3
@import “compass/css3/box-shadow”;          #sidebar {
@import “compass/css3/borer-radius”;           -webkit-box-shadow: #000 2px 2px 2px;
                                               -moz-box-shadow: #000 2px 2px 2px;
#sidebar {                                     box-shadow: #000 2px 2px 2px;
   @include box-shadow(#000 2px 2px 2px);   }
}
                                            .widget {
.widget {                                       -webkit-border-radius: 4px;
    @include border-radius(4px);                -moz-border-radius: 4px;
}                                               -o-border-radius: 4px;
                                                -ms-border-radius: 4px;
                                                -khtml-border-radius: 4px;
                                                border-radius: 4px;
                                            }

                                            /* Includes JS polyfill for IE */
Common Styling
@import                                     .footer a {
“compass/typography/links/unstyled-link”;       color: inherit;
                                                text-decoration: inherit;
.footer a {                                     cursor: inherit;
    @include unstyled-link;                     &:active, &:focus {
}                                                   outline: none;
                                                }
                                            }
Blueprint
@import “blueprint/grid”;          Can you just trust me on this one?

#content {
   @include container;
   #left {
       @include column(8);
   }
   #right {
       @include column(16);
       @include last;
   }
}
Try it today!
CodeKit (Mac)
Compass.app (Mac, Windows, Linux)
gem install sass
sass --watch stylesheets/sass:stylesheets/compiled




          Old School Ruby Gem

More Related Content

What's hot

BloggingWithStyle_2008
BloggingWithStyle_2008BloggingWithStyle_2008
BloggingWithStyle_2008
tutorialsruby
 
Software programming tools for creating/managing CSS files
Software programming tools for creating/managing CSS filesSoftware programming tools for creating/managing CSS files
Software programming tools for creating/managing CSS files
Dinu Suman
 
Rapid Prototyping
Rapid PrototypingRapid Prototyping
Rapid Prototyping
Even Wu
 
Sass, Compass and the new tools - Open Web Camp IV
Sass, Compass and the new tools - Open Web Camp IVSass, Compass and the new tools - Open Web Camp IV
Sass, Compass and the new tools - Open Web Camp IV
Dirk Ginader
 

What's hot (15)

Finding the sassy in sass
Finding the sassy in sassFinding the sassy in sass
Finding the sassy in sass
 
BloggingWithStyle_2008
BloggingWithStyle_2008BloggingWithStyle_2008
BloggingWithStyle_2008
 
Ruby on Rails 3.1: Let's bring the fun back into web programing
Ruby on Rails 3.1: Let's bring the fun back into web programingRuby on Rails 3.1: Let's bring the fun back into web programing
Ruby on Rails 3.1: Let's bring the fun back into web programing
 
Sass & Compass (Barcamp Stuttgart 2012)
Sass & Compass (Barcamp Stuttgart 2012)Sass & Compass (Barcamp Stuttgart 2012)
Sass & Compass (Barcamp Stuttgart 2012)
 
Software programming tools for creating/managing CSS files
Software programming tools for creating/managing CSS filesSoftware programming tools for creating/managing CSS files
Software programming tools for creating/managing CSS files
 
Oocss & progressive css3 selectors
Oocss & progressive css3 selectorsOocss & progressive css3 selectors
Oocss & progressive css3 selectors
 
Sass&compass
Sass&compassSass&compass
Sass&compass
 
Teddy Bear Blue
Teddy Bear BlueTeddy Bear Blue
Teddy Bear Blue
 
Accelerated Stylesheets
Accelerated StylesheetsAccelerated Stylesheets
Accelerated Stylesheets
 
Finding a Better Way to CSS: Navigating Sass with Compass
Finding a Better Way to CSS: Navigating Sass with CompassFinding a Better Way to CSS: Navigating Sass with Compass
Finding a Better Way to CSS: Navigating Sass with Compass
 
Cloudstack UI Customization
Cloudstack UI CustomizationCloudstack UI Customization
Cloudstack UI Customization
 
Rapid Prototyping
Rapid PrototypingRapid Prototyping
Rapid Prototyping
 
Less & Sass
Less & SassLess & Sass
Less & Sass
 
Sass, Compass and the new tools - Open Web Camp IV
Sass, Compass and the new tools - Open Web Camp IVSass, Compass and the new tools - Open Web Camp IV
Sass, Compass and the new tools - Open Web Camp IV
 
Using Sass - Building on CSS
Using Sass - Building on CSSUsing Sass - Building on CSS
Using Sass - Building on CSS
 

Similar to Stylesheets of the future with Sass and Compass

Mobile-first OOCSS, Sass & Compass at BBC Responsive News
Mobile-first OOCSS, Sass & Compass at BBC Responsive NewsMobile-first OOCSS, Sass & Compass at BBC Responsive News
Mobile-first OOCSS, Sass & Compass at BBC Responsive News
Kaelig Deloumeau-Prigent
 
Sass and Compass - Getting Started
Sass and Compass - Getting StartedSass and Compass - Getting Started
Sass and Compass - Getting Started
edgincvg
 
Bloggdesign #2 - hawaa.blogg.no
Bloggdesign #2 - hawaa.blogg.noBloggdesign #2 - hawaa.blogg.no
Bloggdesign #2 - hawaa.blogg.no
Hannee92
 
CSSプリプロセッサの取扱説明書
CSSプリプロセッサの取扱説明書CSSプリプロセッサの取扱説明書
CSSプリプロセッサの取扱説明書
拓樹 谷
 
Theme futura suicida não use como base e nem copie
Theme futura suicida não use como base e nem copieTheme futura suicida não use como base e nem copie
Theme futura suicida não use como base e nem copie
Rafaela Souza
 
Theme futura suicida não use como base e nem copie
Theme futura suicida não use como base e nem copieTheme futura suicida não use como base e nem copie
Theme futura suicida não use como base e nem copie
Rafaela Souza
 
My discussion Student A A8 - Cross-Site Request Forgery (CSR.docx
My discussion Student A A8 - Cross-Site Request Forgery (CSR.docxMy discussion Student A A8 - Cross-Site Request Forgery (CSR.docx
My discussion Student A A8 - Cross-Site Request Forgery (CSR.docx
gilpinleeanna
 
cssstyle.cssbody { font-family Montserrat, Arial, sa
cssstyle.cssbody {    font-family Montserrat, Arial, sacssstyle.cssbody {    font-family Montserrat, Arial, sa
cssstyle.cssbody { font-family Montserrat, Arial, sa
MargenePurnell14
 

Similar to Stylesheets of the future with Sass and Compass (20)

Sassive Aggressive: Using Sass to Make Your Life Easier (NSWG Version)
Sassive Aggressive: Using Sass to Make Your Life Easier (NSWG Version)Sassive Aggressive: Using Sass to Make Your Life Easier (NSWG Version)
Sassive Aggressive: Using Sass to Make Your Life Easier (NSWG Version)
 
Mobile-first OOCSS, Sass & Compass at BBC Responsive News
Mobile-first OOCSS, Sass & Compass at BBC Responsive NewsMobile-first OOCSS, Sass & Compass at BBC Responsive News
Mobile-first OOCSS, Sass & Compass at BBC Responsive News
 
Wrangling the CSS Beast with Sass
Wrangling the CSS Beast  with SassWrangling the CSS Beast  with Sass
Wrangling the CSS Beast with Sass
 
Sass and Compass - Getting Started
Sass and Compass - Getting StartedSass and Compass - Getting Started
Sass and Compass - Getting Started
 
Bloggdesign #2 - hawaa.blogg.no
Bloggdesign #2 - hawaa.blogg.noBloggdesign #2 - hawaa.blogg.no
Bloggdesign #2 - hawaa.blogg.no
 
Theme04
Theme04Theme04
Theme04
 
Theme01
Theme01Theme01
Theme01
 
Theming and Sass
Theming and SassTheming and Sass
Theming and Sass
 
CSSプリプロセッサの取扱説明書
CSSプリプロセッサの取扱説明書CSSプリプロセッサの取扱説明書
CSSプリプロセッサの取扱説明書
 
Sass - Making CSS fun again.
Sass - Making CSS fun again.Sass - Making CSS fun again.
Sass - Making CSS fun again.
 
CSS Extenders
CSS ExtendersCSS Extenders
CSS Extenders
 
Theme futura suicida não use como base e nem copie
Theme futura suicida não use como base e nem copieTheme futura suicida não use como base e nem copie
Theme futura suicida não use como base e nem copie
 
Theme futura suicida não use como base e nem copie
Theme futura suicida não use como base e nem copieTheme futura suicida não use como base e nem copie
Theme futura suicida não use como base e nem copie
 
Agile CSS development with Compass and Sass
Agile CSS development with Compass and SassAgile CSS development with Compass and Sass
Agile CSS development with Compass and Sass
 
My discussion Student A A8 - Cross-Site Request Forgery (CSR.docx
My discussion Student A A8 - Cross-Site Request Forgery (CSR.docxMy discussion Student A A8 - Cross-Site Request Forgery (CSR.docx
My discussion Student A A8 - Cross-Site Request Forgery (CSR.docx
 
Brian Hoke: WordCamp Toronto 2014 Presentation "Sass & WordPress"
Brian Hoke: WordCamp Toronto 2014 Presentation "Sass & WordPress"Brian Hoke: WordCamp Toronto 2014 Presentation "Sass & WordPress"
Brian Hoke: WordCamp Toronto 2014 Presentation "Sass & WordPress"
 
HTML&CSS 5 - Intermediate CSS (2/2)
HTML&CSS 5 - Intermediate CSS (2/2)HTML&CSS 5 - Intermediate CSS (2/2)
HTML&CSS 5 - Intermediate CSS (2/2)
 
This is a test
This is a testThis is a test
This is a test
 
cssstyle.cssbody { font-family Montserrat, Arial, sa
cssstyle.cssbody {    font-family Montserrat, Arial, sacssstyle.cssbody {    font-family Montserrat, Arial, sa
cssstyle.cssbody { font-family Montserrat, Arial, sa
 
Simplifying CSS With Sass
Simplifying CSS With SassSimplifying CSS With Sass
Simplifying CSS With Sass
 

More from Dave Ross

Date and Time programming in PHP & Javascript
Date and Time programming in PHP & JavascriptDate and Time programming in PHP & Javascript
Date and Time programming in PHP & Javascript
Dave Ross
 
Web App Security: XSS and CSRF
Web App Security: XSS and CSRFWeb App Security: XSS and CSRF
Web App Security: XSS and CSRF
Dave Ross
 
The Mobile Web: A developer's perspective
The Mobile Web: A developer's perspectiveThe Mobile Web: A developer's perspective
The Mobile Web: A developer's perspective
Dave Ross
 
Balsamiq Mockups
Balsamiq MockupsBalsamiq Mockups
Balsamiq Mockups
Dave Ross
 
LAMP Optimization
LAMP OptimizationLAMP Optimization
LAMP Optimization
Dave Ross
 
Lint - PHP & Javascript Code Checking
Lint - PHP & Javascript Code CheckingLint - PHP & Javascript Code Checking
Lint - PHP & Javascript Code Checking
Dave Ross
 
Cufon - Javascript Font Replacement
Cufon - Javascript Font ReplacementCufon - Javascript Font Replacement
Cufon - Javascript Font Replacement
Dave Ross
 
PHP Output Buffering
PHP Output BufferingPHP Output Buffering
PHP Output Buffering
Dave Ross
 

More from Dave Ross (20)

HTML5 History & Features
HTML5 History & FeaturesHTML5 History & Features
HTML5 History & Features
 
A geek's guide to getting hired
A geek's guide to getting hiredA geek's guide to getting hired
A geek's guide to getting hired
 
NoSQL & MongoDB
NoSQL & MongoDBNoSQL & MongoDB
NoSQL & MongoDB
 
Date and Time programming in PHP & Javascript
Date and Time programming in PHP & JavascriptDate and Time programming in PHP & Javascript
Date and Time programming in PHP & Javascript
 
Simulated Eye Tracking with Attention Wizard
Simulated Eye Tracking with Attention WizardSimulated Eye Tracking with Attention Wizard
Simulated Eye Tracking with Attention Wizard
 
What's new in HTML5?
What's new in HTML5?What's new in HTML5?
What's new in HTML5?
 
The Canvas Tag
The Canvas TagThe Canvas Tag
The Canvas Tag
 
Wordpress
WordpressWordpress
Wordpress
 
Lamp Stack Optimization
Lamp Stack OptimizationLamp Stack Optimization
Lamp Stack Optimization
 
The FPDF Library
The FPDF LibraryThe FPDF Library
The FPDF Library
 
FirePHP
FirePHPFirePHP
FirePHP
 
Bayesian Inference using b8
Bayesian Inference using b8Bayesian Inference using b8
Bayesian Inference using b8
 
SQL Injection in PHP
SQL Injection in PHPSQL Injection in PHP
SQL Injection in PHP
 
Web App Security: XSS and CSRF
Web App Security: XSS and CSRFWeb App Security: XSS and CSRF
Web App Security: XSS and CSRF
 
The Mobile Web: A developer's perspective
The Mobile Web: A developer's perspectiveThe Mobile Web: A developer's perspective
The Mobile Web: A developer's perspective
 
Balsamiq Mockups
Balsamiq MockupsBalsamiq Mockups
Balsamiq Mockups
 
LAMP Optimization
LAMP OptimizationLAMP Optimization
LAMP Optimization
 
Lint - PHP & Javascript Code Checking
Lint - PHP & Javascript Code CheckingLint - PHP & Javascript Code Checking
Lint - PHP & Javascript Code Checking
 
Cufon - Javascript Font Replacement
Cufon - Javascript Font ReplacementCufon - Javascript Font Replacement
Cufon - Javascript Font Replacement
 
PHP Output Buffering
PHP Output BufferingPHP Output Buffering
PHP Output Buffering
 

Recently uploaded

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 

Stylesheets of the future with Sass and Compass

  • 1. Dave Ross • Fox Valley Computing Professionals April 10, 2012
  • 3. Valid CSS is valid Sass @import “reset.css”; /* reset.css gets put here */ #content { #content { font-face: Helvetica, Arial; font-face: Helvetica, Arial; font-size: 14px; font-size: 14px; } } ! ! #content blockquote { #content blockquote { color: #0f0;! color: #0f0;! } }
  • 4. Nesting #content { #content { font-face: Helvetica, Arial; font-face: Helvetica, Arial; font-size: 14px; font-size: 14px; } blockquote { ! color: #0f0; #content blockquote { } color: #0f0;! } }
  • 5. Variables $green: #0f0; #content { font-face: Helvetica, Arial; #content { font-size: 14px; font-face: Helvetica, Arial; border: 1px solid #0f0; font-size: 14px; } border: 1px solid $green; ! #content blockquote { blockquote { ! color: #0f0;! color: $green; } } }
  • 6. Math & Built-in Functions $green: #0f0; #content { $normal_font_size: 14px; font-face: Helvetica, Arial; font-size: 14px; #content { border: 1px solid $0f0; font-face: Helvetica, Arial; } font-size: $normal_font_size; border: 1px solid $green; #content h1 { h1 { font-size: 28px; font-size: $normal_font_size * 2; } } blockquote { #content blockquote { color: darken($green, 50%); color: #080; } } }
  • 7. Inheritance .error { .error, .major_error { color: #f00; color: #f00; font-face: “Comic Sans”; font-face: “Comic Sans”; } } .major_error { .major_error { @extend .error; font-size: 4em; font-size: 4em; } }
  • 8. Mixins (functions) @mixin left($offset) { img { float: left; float: left; margin-left: $offset; margin-left: 1em; } } img { img.off_the_edge { @include left(1em); float: left; } margin-left: -2em; } img.off_the_edge { @include left(-2em); }
  • 9. @media Bubbling button { button { color: #fff; color: #fff; background-color: #003; background-color: #003; @media screen and max-width: 280px) { } height: 44px; @media screen and max-width: 280px) { } button { } height: 44px; } p{ } font-size: 12px; @media screen and max-width: 280px) { p{ font-size: 14px; font-size: 12px; } } } @media screen and max-width: 280px) { p{ font-size: 14px; } }
  • 10. Compass CSS framework built on Sass compass-style.org
  • 11. Cross-Browser CSS3 @import “compass/css3/box-shadow”; #sidebar { @import “compass/css3/borer-radius”; -webkit-box-shadow: #000 2px 2px 2px; -moz-box-shadow: #000 2px 2px 2px; #sidebar { box-shadow: #000 2px 2px 2px; @include box-shadow(#000 2px 2px 2px); } } .widget { .widget { -webkit-border-radius: 4px; @include border-radius(4px); -moz-border-radius: 4px; } -o-border-radius: 4px; -ms-border-radius: 4px; -khtml-border-radius: 4px; border-radius: 4px; } /* Includes JS polyfill for IE */
  • 12. Common Styling @import .footer a { “compass/typography/links/unstyled-link”; color: inherit; text-decoration: inherit; .footer a { cursor: inherit; @include unstyled-link; &:active, &:focus { } outline: none; } }
  • 13. Blueprint @import “blueprint/grid”; Can you just trust me on this one? #content { @include container; #left { @include column(8); } #right { @include column(16); @include last; } }
  • 17. gem install sass sass --watch stylesheets/sass:stylesheets/compiled Old School Ruby Gem

Editor's Notes

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n
  17. \n