SlideShare une entreprise Scribd logo
1  sur  7
Getting Started with
SCSS and Bootstrap
Why we chose SCSS and Bootstrap
● CSS is valid SCSS, making the transition
  from one to the other very smooth.

● Bootstrap offers a solid start to both basic
  and responsive websites
  ○ Need to support mobile traffic, including
     tablets of varying resolutions
● Cross browser compatible
● UI elements are uniformly styled
Prerequisites / What to Download
Download and unzip Twitter Bootstrap's default package
and latest version of jQuery
http://twitter.github.com/bootstrap
http://www.jquery.com

If you don't have ruby and ruby gems installed, become
friends with the person closest to you who does have the
tools installed and who smells nice.
Or just follow along on-screen.
$> gem install sass
What we'll be doing
● Using Bootstrap as a reset / base stylesheet
● Using SCSS to write our own custom styles
  on top of Bootstrap
  ○ Variables
  ○ Mix-ins
Thank you

Thanks to all for joining this event with Oversee.net and the
Southern California Web Designers and Developers!


                                             oooo$$$$$$$$$$$$oooo
                                         oo$$$$$$$$$$$$$$$$$$$$$$$$o
                                     oo$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$o            o$    $$ o$
                    o $ oo         o$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$o          $$ $$ $$o$
                 oo $ $ "$       o$$$$$$$$$     $$$$$$$$$$$$$     $$$$$$$$$o         $$$o$$o$
                 "$$$$$$o$     o$$$$$$$$$        $$$$$$$$$$$       $$$$$$$$$$o     $$$$$$$$
                   $$$$$$$    $$$$$$$$$$$        $$$$$$$$$$$       $$$$$$$$$$$$$$$$$$$$$$$
                   $$$$$$$$$$$$$$$$$$$$$$$      $$$$$$$$$$$$$     $$$$$$$$$$$$$$ """$$$
                    "$$$""""$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$          "$$$
                     $$$   o$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$          "$$$o
                    o$$"   $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$            $$$o
                    $$$    $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$" "$$$$$$ooooo$$$$o
                   o$$$oooo$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$        o$$$$$$$$$$$$$$$$$
                   $$$$$$$$"$$$$    $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$        $$$$""""""""
                  """"       $$$$      "$$$$$$$$$$$$$$$$$$$$$$$$$$$$"        o$$$
                             "$$$o       """$$$$$$$$$$$$$$$$$$"$$"           $$$
                               $$$o            "$$""$$$$$$""""             o$$$
                                 $$$$o                                  o$$$"
                                  "$$$$o       o$$$$$$o"$$$$o         o$$$$
                                    "$$$$$oo      ""$$$$o$$$$$o    o$$$$""
                                        ""$$$$$oooo "$$$o$$$$$$$$$"""
                                           ""$$$$$$$oo $$$$$$$$$$
                                                   """"$$$$$$$$$$$
                                                       $$$$$$$$$$$$
                                                        $$$$$$$$$$"
                                                         "$$$""
SCSS vs SASS vs CSS
/* SCSS */                  /* SASS */                   /* CSS */


$blue: #3bbfce;             $blue: #3bbfce               .content-navigation {
$margin: 16px;              $margin: 16px                    border-color: #3bbfce;
                                                             color: #2b9eab;
.content-navigation {       .content-navigation          }
    border-color: $blue;      border-color: $blue
    color:                    color: darken($blue, 9%)   .border {
      darken($blue, 9%);                                     padding: 8px;
}                           .border                          margin: 8px;
                              padding: $margin / 2           border-color: #3bbfce;
.border {                     margin: $margin / 2        }
    padding: $margin / 2;     border-color: $blue
    margin: $margin / 2;
    border-color: $blue;
}
Pros of SCSS vs SASS
SCSS                                                          SASS
● More expressive                                              ● More concise
      (multiple rules on one line)                             ● Easier to read
● Encourages proper rule                                       ● Doesn't care about
  nesting                                                        semi-colons
● Inline documentation is
  a bit easier
● Syntax highlighting
  tends to work out of the
  box
● Closer to CSS syntax

source: http://thesassway.com/articles/sass-vs-scss-which-syntax-is-better

Contenu connexe

Plus de Mario Noble

Fun with css frameworks
Fun with css frameworksFun with css frameworks
Fun with css frameworksMario Noble
 
Styling on steroids
Styling on steroidsStyling on steroids
Styling on steroidsMario Noble
 
Testing html5 meetup slideshare
Testing html5 meetup slideshareTesting html5 meetup slideshare
Testing html5 meetup slideshareMario Noble
 
Html 5 mobile - nitty gritty
Html 5 mobile - nitty grittyHtml 5 mobile - nitty gritty
Html 5 mobile - nitty grittyMario Noble
 
Git presentation
Git presentationGit presentation
Git presentationMario Noble
 
Preprocessor presentation
Preprocessor presentationPreprocessor presentation
Preprocessor presentationMario Noble
 
Responsive design presentation
Responsive design presentationResponsive design presentation
Responsive design presentationMario Noble
 

Plus de Mario Noble (9)

Fun with css frameworks
Fun with css frameworksFun with css frameworks
Fun with css frameworks
 
Styling on steroids
Styling on steroidsStyling on steroids
Styling on steroids
 
Testing html5 meetup slideshare
Testing html5 meetup slideshareTesting html5 meetup slideshare
Testing html5 meetup slideshare
 
Html 5 mobile - nitty gritty
Html 5 mobile - nitty grittyHtml 5 mobile - nitty gritty
Html 5 mobile - nitty gritty
 
Git presentation
Git presentationGit presentation
Git presentation
 
Preprocessor presentation
Preprocessor presentationPreprocessor presentation
Preprocessor presentation
 
Responsive design presentation
Responsive design presentationResponsive design presentation
Responsive design presentation
 
Html5 css3pres
Html5 css3presHtml5 css3pres
Html5 css3pres
 
Cms pres
Cms presCms pres
Cms pres
 

Dernier

A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
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...Martijn de Jong
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
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 DevelopmentsTrustArc
 
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...apidays
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
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 Scriptwesley chun
 
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, Adobeapidays
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
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)wesley chun
 
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.pptxRustici Software
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
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 RobisonAnna Loughnan Colquhoun
 
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 challengesrafiqahmad00786416
 
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 Subbuapidays
 
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 FresherRemote DBA Services
 
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...Zilliz
 

Dernier (20)

A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
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...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
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
 
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...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
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 - 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
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
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)
 
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
 
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
 
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
 
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
 
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
 
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...
 

Getting started with scss and bootstrap

  • 2. Why we chose SCSS and Bootstrap ● CSS is valid SCSS, making the transition from one to the other very smooth. ● Bootstrap offers a solid start to both basic and responsive websites ○ Need to support mobile traffic, including tablets of varying resolutions ● Cross browser compatible ● UI elements are uniformly styled
  • 3. Prerequisites / What to Download Download and unzip Twitter Bootstrap's default package and latest version of jQuery http://twitter.github.com/bootstrap http://www.jquery.com If you don't have ruby and ruby gems installed, become friends with the person closest to you who does have the tools installed and who smells nice. Or just follow along on-screen. $> gem install sass
  • 4. What we'll be doing ● Using Bootstrap as a reset / base stylesheet ● Using SCSS to write our own custom styles on top of Bootstrap ○ Variables ○ Mix-ins
  • 5. Thank you Thanks to all for joining this event with Oversee.net and the Southern California Web Designers and Developers! oooo$$$$$$$$$$$$oooo oo$$$$$$$$$$$$$$$$$$$$$$$$o oo$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$o o$ $$ o$ o $ oo o$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$o $$ $$ $$o$ oo $ $ "$ o$$$$$$$$$ $$$$$$$$$$$$$ $$$$$$$$$o $$$o$$o$ "$$$$$$o$ o$$$$$$$$$ $$$$$$$$$$$ $$$$$$$$$$o $$$$$$$$ $$$$$$$ $$$$$$$$$$$ $$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$ $$$$$$$$$$$$$$ """$$$ "$$$""""$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ "$$$ $$$ o$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ "$$$o o$$" $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$o $$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$" "$$$$$$ooooo$$$$o o$$$oooo$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ o$$$$$$$$$$$$$$$$$ $$$$$$$$"$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$"""""""" """" $$$$ "$$$$$$$$$$$$$$$$$$$$$$$$$$$$" o$$$ "$$$o """$$$$$$$$$$$$$$$$$$"$$" $$$ $$$o "$$""$$$$$$"""" o$$$ $$$$o o$$$" "$$$$o o$$$$$$o"$$$$o o$$$$ "$$$$$oo ""$$$$o$$$$$o o$$$$"" ""$$$$$oooo "$$$o$$$$$$$$$""" ""$$$$$$$oo $$$$$$$$$$ """"$$$$$$$$$$$ $$$$$$$$$$$$ $$$$$$$$$$" "$$$""
  • 6. SCSS vs SASS vs CSS /* SCSS */ /* SASS */ /* CSS */ $blue: #3bbfce; $blue: #3bbfce .content-navigation { $margin: 16px; $margin: 16px border-color: #3bbfce; color: #2b9eab; .content-navigation { .content-navigation } border-color: $blue; border-color: $blue color: color: darken($blue, 9%) .border { darken($blue, 9%); padding: 8px; } .border margin: 8px; padding: $margin / 2 border-color: #3bbfce; .border { margin: $margin / 2 } padding: $margin / 2; border-color: $blue margin: $margin / 2; border-color: $blue; }
  • 7. Pros of SCSS vs SASS SCSS SASS ● More expressive ● More concise (multiple rules on one line) ● Easier to read ● Encourages proper rule ● Doesn't care about nesting semi-colons ● Inline documentation is a bit easier ● Syntax highlighting tends to work out of the box ● Closer to CSS syntax source: http://thesassway.com/articles/sass-vs-scss-which-syntax-is-better