Mobile and
Responsive Design
    with Sass
What is a Sass, and
How Will I Know if
 I’m Shaking it?
I
Mobile
First
What Is
The Mobile Web?
371k Babies
are born each day
       Compare that to 1.5 million
       mobile device activations


http://www.lukew.com/presos/preso.asp?26
Most Personal
 Computer
Most Personal
 Computer
Constraints:
     Space, Attention
•   Small screens

•   Frequent and sporadic use. Distracted
Capabilities:
             New Api's
•   Geolocation

•   Touch

•   Camera

•   Orientation
Your phone sees you
    when you’re
      sleeping.
II
Responsive
Web Design
My Website Totally
Shrinks On Phones
Fluid Grids
 Proportional grids
   Use %, not px
Fluid Images
          src set




The future. Get used to it?
Fluid Images
        simple css




The best we have. For now.
Media Queries
                          Magic!
•   @media screen and (min-width: 400px) { … }

•   @media screen and (min-width: 400px) and (max-
    width: 700px) { … }

•   @media screen and (device-width: 800px) { … }

•   @media screen and (device-aspect-ratio: 16/9) { … }
Current Properties
•   width            •   color

•   height           •   color-index

•   device-width     •   monochrome

•   device-height    •   resolution

•   orientation      •   scan

•   aspect-ratio     •   grid

•   device-aspect-
    ratio
Feature
Detection
Modernizr

•   modernizr.com

•   use javascript to test for browser features

•   write a css class to <html> if that feature
    exists
Modernizr
III
Sass
             CSS Preprocessor
Adds more power to the process of writing CSS
                sass-lang.com
Variables

Sass




       Compiled CSS
Nesting

Sass




       Compiled CSS
Mixins
Sass
                      Compiled CSS

Sass Mixin
Extend
Setup Extendables
                    Use in Sass




                    Compiled CSS
Media Bubbling

Sass      Compiled CSS
Compass
  Utilities
   CSS3
  Images
  Sprites
   More
Compass Extensions
Sassy Buttons
 That fancy CSS3 button look with
         none of the work
http://jaredhardy.com/sassy-buttons/
Modular Scale
    Calculate typographic scales
github.com/scottkellum/modular-scale
Survival Kit
A Toolset for Designing Web Sites
         in the Browser
thecodingdesigner.com/survivalkit
Susy
Responsive grids for Compass
      susy.oddbird.net
Singularity Grid
               ALPHA
Infinite possibilities. Impossibly small.
             singularity.gs
Breakpoint
Really simple media queries in Sass
       breakpoint-sass.com
Crazy things
sassy mother effing text shadow
sassymothereffingtextshadow.com
IV
Drupal
Great Content Management System.
         Bad Templates.
What is the best
starter theme for
 responsive web
design in Drupal?
Avoid Cookie Cutters
          &
Assertive Frameworks
V
Putting It
 Together
Goals
Custom designs for your needs and content.
    Create the mobile experience first.
    Have our content meet any device.
            Be future friendly.
           Acknowledge and
        embrace unpredictability.
Custom Is Your Friend
       Start with no theme,
     or a “bare-bones” theme.
Zen + Zen Grids
•   Zen - Tried and tested in the Drupal

•   Zen Grids
Survival Kit
Designed For Style Guide Driven Design
   Designed For Sass And Compass
         Intentionally Simple
      Use whatever grid you like
           Just a few guides,
    but use whatever styles you like
Demo
The Future
Survival Kit Module
 Will show the style guide pages from
       the standard Survival Kit
Sass Conf
  Spring 2013
 sassconf.com
Sass Trainings
         Follow
@GoTeamSass and @Zivtech
       for details.
Questions &
 Contact
           Zivtech zivtech.com
    Mason Wendell - Creative Director
Twitter, Dribbble & Drupal: codingdesigner
          github: canarymason

Mobile and Responsive Design with Sass