SlideShare uma empresa Scribd logo
1 de 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

Mais conteúdo relacionado

Mais de Mario Noble

Mais 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
 

Último

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Último (20)

MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
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, ...
 
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
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
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
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
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
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
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
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
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
 

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