Upgrade to Pro — share decks privately, control downloads, hide ads and more …

WordCamp Baltimore - Let's Get Sassy!

Brad Parbs
September 21, 2013

WordCamp Baltimore - Let's Get Sassy!

yo #wcbalt it was awesome

Brad Parbs

September 21, 2013
Tweet

More Decks by Brad Parbs

Other Decks in Technology

Transcript

  1. #wcbalt Go to @brennenbyrne’s talk and just keep yelling about

    how zoidberg is a good password BO N U S SLID E
  2. #wcpvd I’m Brad Parbs. Created Wolf, hook_s & wpWizard Core

    Contributor in 3.5 & 3.6 Run Snow Day Group, (snowday.io) ♥ WordPress, Startups, and Code Plugin and Theme author/developer @BradParbs brad.parbs.me #wcbalt
  3. #wcpvd More Fun Facts Going to be on a pirate

    ship later WHAT Cats cats cats cats No longer have a beard :( I love GIFs No memes in this talk at all @BradParbs brad.parbs.me #wcbalt
  4. What is SASS? “Sass is a meta-language on top of

    CSS ... with more power than flat CSS allows. Sass both provides a simpler, more elegant syntax for CSS and implements various features that are useful for creating manageable stylesheets.” sass-lang.org #wcbalt
  5. Why SASS over LESS? Compass - “drop-in” bits of SASS

    @extend() - allows for cleaner HTML Easily Embedding Media Queries #wcmke #wcbalt
  6. Two Flavors .scss .sass More similar to CSS Easier to

    jump into from CSS Probably where you want to start Less keystrokes Cleaner files #wcgr #wcbalt
  7. Mixins Appearance Background Clip Background Origin Background Size Border Radius

    Box Box Shadow Box Sizing CSS Regions CSS3 Pie Columns Filter Font Face http://compass-style.org #wcbalt
  8. Color Functions examples from: http://b.parbs.me/PSRH $base-color: #AD141E; darken( $base-color, 10%

    ); lighten( $base-color, 10% ); saturate( $base-color, 20% ); desaturate( $base-color, 20% ); adjust-hue( $base-color, 20% ); #wcbalt
  9. Let’s install Twitter Bootstrap Without SASS: 1.Download zip file. 2.

    Copy+Paste into stylesheet or: @import another CSS file or: <link> another CSS file 3.Redo all of this when there’s an update. 4.Ugh this sucks, I’ll just use BootstrapWP. #wcgr #wcbalt
  10. Let’s install Twitter Bootstrap With SASS: 1.$ gem install compass-bootstrap

    (only have to ever do this once) 2. Add require “compass- bootstrap” to config.rb. #wcgr #wcbalt
  11. Building a WP Theme • We want only one stylesheet

    • Our SASS folder should live independently • config.rb in the root, so we can use Codekit to optimize images & JS https://github.com/bradp/Wolf #wcgr #wcbalt