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

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)

Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
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
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
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
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
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
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 

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