Build Right: Build Responsively @ Madison+ UX

475203b37527b26e4fb2cc58e6e8493e?s=47 Build Right
July 10, 2014

Build Right: Build Responsively @ Madison+ UX

The deck from the Build Right: Build Responsively workshop in Madison, WI on July 10, 2014 for the Madison+ UX conference.

475203b37527b26e4fb2cc58e6e8493e?s=128

Build Right

July 10, 2014
Tweet

Transcript

  1. @bencallahan @jeremyloyd

  2. @hearsparkbox @brworkshop ! @bencallahan @jeremyloyd

  3. #brworkshop #madplusux

  4. Collaborative note-taking: ! http://bit.ly/br-mad-2014

  5. AN INTRODUCTION TO RESPONSIVE WEB DESIGN RWD 101

  6. September 9, 2007 6:30am

  7. 177% increase in tablet ownership since last year In the

    US... http://bit.ly/YFW4Ai
  8. 80% of consumers multi-task with other devices while watching TV

    In the US... http://bit.ly/YFW4Ai
  9. 26% of consumers own a laptop, tablet & smartphone http://bit.ly/YFW4Ai

    In the US...
  10. The web is not fixed width.

  11. The penetration of desktop and laptop ownership is the same

    today as it was in 2007. http://bit.ly/zE1zgp In the US...
  12. Mobile vs Desktop Browsing 0 500 1000 1500 2000 2007

    2008 2009 2010 2011 2012 2013 2014 2015 Mobile Users Desktop Users http://bit.ly/L5cqiO
  13. 0 500 1000 1500 2000 2007 2008 2009 2010 2011

    2012 2013 2014 2015 Mobile Users Desktop Users http://bit.ly/L5cqiO Happening now.
  14. Q1 2013 conversions on tablets surpassed conversions on traditional desktops

    http://bit.ly/sNpLte In the US...
  15. Flexibility is the new norm.

  16. People are trying to browse your sites on these devices,

    today.
  17. Responsive web design

  18. Ethan Marcotte ! Article on ALA (http://bit.ly/Wi0xvw) ! Book via

    ABA (http://bit.ly/f6TPB7)
  19. None
  20. RWD 101 ‣ Three Core Techniques - A Fluid Foundation

    - Flexible Content - Media Queries
  21. A Fluid Foundation Honor the proportions of the design by

    creating percentage-based layout instead of fixed-width, pixel-based layout.
  22. 1000px 400px 600px A Fluid Foundation

  23. 1000px 600px A Fluid Foundation

  24. 100% 40% 60% A Fluid Foundation

  25. 100% 40% 60% A Fluid Foundation

  26. Flexible Content Once we have a layout which is based

    on proportions, the content must also respond.
  27. We the People of the United States, in Order to

    form a more perfect Union, establish Justice, insure domestic Tranquility, provide for the common defense, promote the general Welfare, and secure the Blessings of Liberty to ourselves and our Posterity, do ordain and establish this Constitution for the United States of America. Flexible Content
  28. We the People of the United States, in Order to

    form a more perfect Union, establish Justice, insure domestic Tranquility, provide for the common defense, promote the general Welfare, and secure the Blessings of Liberty to ourselves and our Posterity, do ordain Flexible Content
  29. We the People of the United States, in Order to

    form a more perfect Union, establish Justice, insure domestic Tranquility, provide for the common (Image) 600px Flexible Content
  30. We the People of the United States, in Order to

    form a more perfect Union, (Image) 600px Flexible Content
  31. Flexible Content http://bit.ly/ZdC8pH We the People of the United States,

    in Order to form a more perfect Union, (Image) 600px
  32. We the People of the United States, in Order to

    form a more perfect Union, establish Justice, insure domestic Tranquility, provide for the common defense, promote (Image) 100% Flexible Content
  33. Media Queries When our content and our design are no

    longer working in harmony, we need to make a larger shift in layout.
  34. Media Queries 100% 40% 60%

  35. A 100% C 100% B 100% C 40% B 60%

    A 100% Media Queries
  36. Media Queries A 100% C 100% B 100% C 40%

    B 60% A 100%
  37. RWD 101 ‣ Three Core Techniques - A Fluid Foundation

    - Flexible Content - Media Queries
  38. [live examples]

  39. [code example]

  40. HOW RWD HAS CHANGED PROCESS RWD WORKFLOW

  41. We used to pretend like things were pretty simple.

  42. fixed width 1024ish 768ish

  43. DESIGN FRONT-END BACK-END LAUNCH! Linear Workflow THINK ABOUT 
 USERS

    THROW IN SOME CONTENT
  44. Slightly Better 
 Linear Workflow CONTENT UX DESIGN FRONT-END BACK-END

    LAUNCH!
  45. Why hello, RWD.

  46. Why hello, tiny browsers.

  47. Why hello, reality.

  48. THIS IS AWESOME, LET’S JUMP IN!

  49. Me too! Ditto! Old Linear Workflow Now with RWD! CONTENT

    UX DESIGN FRONT-END BACK-END LAUNCH!
  50. This doesn’t work.

  51. We need to invite others into the process.

  52. CONTENT UX FRONT-END DESIGN BACK-END “1 Deliverable” Workflow

  53. CONTENT UX FRONT-END DESIGN BACK-END “1 Deliverable” Workflow

  54. CONTENT UX FRONT-END DESIGN BACK-END “1 Deliverable” Workflow

  55. CONTENT UX FRONT-END DESIGN BACK-END “1 Deliverable” Workflow

  56. LAUNCH DESIGN FRONT END BACK END CONTENT DECISIONS MADE DECISIONS

    MADE DECISIONS MADE DECISIONS MADE CONTENT UX FRONT-END DESIGN BACK-END
  57. LAUNCH DESIGN FRONT END BACK END CONTENT DECISIONS MADE DECISIONS

    MADE DECISIONS MADE DECISIONS MADE CONTENT UX FRONT-END DESIGN BACK-END UX FRONT-END DESIGN LAUNCH DESIGN FRONT END BACK END CONTENT DECISIONS MADE DECISIONS MADE DECISIONS MADE DECISIONS MADE
  58. CONTENT UX Content, Planning & UX Tools

  59. Content & Planning ‣ Content Audit ‣ Information Architecture ‣

    Content Priority Guides ‣ Content Prototypes ‣ Static Wireframes ‣ Interactive Wireframes
  60. CONTENT & PLANNING Content Audit

  61. CONTENT & PLANNING Information Architecture

  62. CONTENT & PLANNING Content Priority Guides

  63. Write the Content

  64. CONTENT & PLANNING Content Prototypes

  65. CONTENT & PLANNING Static Wireframes

  66. CONTENT & PLANNING Interactive Wireframes

  67. FRONT-END DESIGN ND ! Design in the 
 “1 deliverable”

    workflow
  68. Dissecting Design PRODUCTIVITY TIME

  69. Dissecting Design PRODUCTIVITY TIME

  70. Dissecting Design PRODUCTIVITY TIME

  71. Establish the Aesthetic DISSECTING DESIGN

  72. Solve the Problem DISSECTING DESIGN

  73. Refine the Solution DISSECTING DESIGN

  74. None
  75. Establish the Aesthetic DISSECTING DESIGN

  76. DISSECTING DESIGN ‣ Style Comparisons ‣ Element Collages ‣ Style

    Tiles ‣ Style Prototypes Establish the Aesthetic
  77. Style Comparisons ESTABLISH THE AESTHETIC “I could create an illustration

    or a 3D rendering of what I want my new office to look like, but that doesn’t take advantage of his great ideas. It’s dictation, not collaboration. Instead, I show him a Pinterest board my wife and I created.” ! @danielmall http://danielmall.com/articles/the-post-psd-era/
  78. Style Comparisons ESTABLISH THE AESTHETIC Light vs Dark

  79. Style Comparisons ESTABLISH THE AESTHETIC Flat vs Textured

  80. Style Comparisons ESTABLISH THE AESTHETIC Illustration vs Photography

  81. Element Collages ESTABLISH THE AESTHETIC

  82. Style Tiles ESTABLISH THE AESTHETIC

  83. Style Tiles ESTABLISH THE AESTHETIC

  84. Style Tiles ESTABLISH THE AESTHETIC

  85. Style Prototypes ESTABLISH THE AESTHETIC

  86. USE TOOLS YOU ARE COMFORTABLE WITH TO ESTABLISH THE AESTHETIC

    HOW TO DECIDE
  87. Cool, so what  happens next?

  88. Solve the Problem DISSECTING DESIGN

  89. DISSECTING DESIGN ‣ Static Design Tools ‣ Responsive Design Tools

    ‣ HTML/CSS Solve the Problem
  90. Static Design Tools SOLVE THE PROBLEM

  91. Static Design Tools SOLVE THE PROBLEM

  92. Static Design Tools SOLVE THE PROBLEM

  93. Responsive Design Tools SOLVE THE PROBLEM

  94. SOLVE THE PROBLEM Responsive Design Tools

  95. SOLVE THE PROBLEM Responsive Design Tools

  96. HTML/CSS SOLVE THE PROBLEM

  97. HTML/CSS SOLVE THE PROBLEM

  98. HTML/CSS SOLVE THE PROBLEM

  99. Layout vs Modules SOLVE THE PROBLEM

  100. Layout vs Modules SOLVE THE PROBLEM

  101. SOLVE THE PROBLEM Atomic Design

  102. YOU BEST SOLVE PROBLEMS USING TOOLS YOU ARE FLUENT WITH

    HOW TO DECIDE
  103. Refine the Solution DISSECTING DESIGN

  104. DISSECTING DESIGN ‣ Static Design Tools ‣ Design Pairing Refine

    the Solution
  105. DISSECTING DESIGN Don’t Use Static Design Tools to Refine LAUNCH

    DESIGN FRONT END BACK END CONTENT DECISIONS MADE DECISIONS MADE DECISIONS MADE DECISIONS MADE
  106. Don’t Use Static Design Tools REFINE THE SOLUTION

  107. Instead of static design 
 hand-offs, consider
 design pairing REFINE

    THE SOLUTION
  108. Design Pairing REFINE THE SOLUTION

  109. Design Pairing REFINE THE SOLUTION

  110. You don’t want to do the long tail more than

    once REFINE THE SOLUTION
  111. EFFICIENCY IS KEY WHEN REFINING A DESIGN SOLUTION HOW TO

    DECIDE
  112. Establish ! Solve ! Refine ................. Comfort ! ....................... Fluency

    ! ................... Efficiency Guidelines for Selecting Tools
  113. An Example

  114. None
  115. None
  116. None
  117. None
  118. None
  119. None
  120. None
  121. None
  122. None
  123. Your Turn ‣ Sketch out your process ‣ Annotate it

    with things you think need to change ‣ Note where you might incorporate some of these new tools
  124. INVESTING IN PEOPLE INSTEAD OF PROCESS RESPONSIVE TEAMS

  125. Photo Credit: Jay Maisel

  126. Group improvisation is a challenge. Aside from the weighty technical

    problem of collective coherent thinking, there is the very human, even social need for sympathy from all members to bend for the common result. Bill Evans
  127. Group improvisation is a challenge. Aside from the weighty technical

    problem of collective coherent thinking, there is the very human, even social need for sympathy from all members to bend for the common result. Bill Evans The Problem of the Team
  128. Group improvisation is a challenge. Aside from the weighty technical

    problem of collective coherent thinking, there is the very human, even social need for sympathy from all members to bend for the common result. Bill Evans The Problem of the Individual
  129. Group Improvisation

  130. Individuals

  131. Group improvisation requires individuals on a team to... ! be

    fluent
  132. None
  133. SOLVE THE PROBLEM

  134. Unconscious Incompetence SOLVE THE PROBLEM

  135. Unconscious Incompetence Conscious Incompetence SOLVE THE PROBLEM

  136. Unconscious Incompetence Conscious Incompetence Conscious Competence SOLVE THE PROBLEM

  137. Unconscious Incompetence Conscious Incompetence Conscious Competence Unconscious Competence SOLVE THE

    PROBLEM
  138. Fluency SOLVE THE PROBLEM

  139. Group improvisation requires individuals on a team to... ! be

    humble
  140. None
  141. None
  142. “The Dip” keeps us humble.

  143. Group improvisation requires individuals on a team to... ! be

    empathetic
  144. Empathy is struggling with your teammates in areas where you

    are not fluent.
  145. Fluency Ignorance

  146. Ignorance User
 Experience User
 Interface Fluency Content CMS

  147. Ignorance User
 Experience User
 Interface Fluency Content CMS

  148. Ignorance User
 Experience User
 Interface Fluency Content CMS

  149. Ignorance User
 Experience User
 Interface Threshold of Empathy Fluency Content

    CMS
  150. Ignorance Content User
 Experience User
 Interface CMS Threshold of Empathy

    Fluency
  151. The Empathetic Web Maker Content User
 Experience User
 Interface CMS

    Gap Analysis
 Information Architecture Content Priority Wireframe
 Usability Test Heuristic Evaluation Visual Design
 Typography
 Illustration Content Modeling
 Management Workflow
 Content Governance Semantic Markup (HTML) Interaction Layer
 (JS) Style
 (CSS) Ruby
 PHP
 .NET Design Develop Empathy
  152. Fluency Humility Empathy

  153. Teams

  154. None
  155. None
  156. None
  157. None
  158. None
  159. Create guidelines instead of rigid process

  160. The rigidity of your process should be inversely proportional to

    the level of fluency, humility, and empathy demonstrated by your team.
  161. Ability to
 improvise Fluency, humility, empathy demonstrated by team

  162. Inexperienced Experienced Rigid Process Group Improvisation • Missed deadlines •

    Blown budgets • Poor work • Frustrated team • Doubt in leadership • Good work • Meet deadlines • Sense that there’s a better way • Average work • Culture of trust • Regular innovation • Timeless work
  163. Inexperienced Experienced Rigid Process Group Improvisation • Missed deadlines •

    Blown budgets • Poor work • Frustrated team • Doubt in leadership • Good work • Meet deadlines • Sense that there’s a better way • Average work • Culture of trust • Regular innovation • Timeless work
  164. Inexperienced Experienced Rigid Process Group Improvisation • Missed deadlines •

    Blown budgets • Poor work • Frustrated team • Doubt in leadership • Good work • Meet deadlines • Sense that there’s a better way • Average work • Culture of trust • Regular innovation • Timeless work
  165. Create the perfect, fully-documented, all-encompassing web design and development process.

    ! Or...
  166. Chill out and develop our people.

  167. Invest in people over process

  168. CODE AND PROJECT STRUCTURE SERVING RWD STYLES WE’LL START AT

    1:00
  169. SERVING RWD STYLES Major Approaches ‣ Single CSS File ‣

    Breakpoint Based Partials ‣ Module Based Partials
  170. SERVING RWD STYLES Major Approaches ‣ Single CSS File ‣

    Breakpoint Based Partials ‣ Module Based Partials CSS PREPROCESSING FTW!
  171. Before any of this stuff will work, you need to

    do this: <!-- html -->
 <meta name="viewport"
 content="width=device-width; 
 initial-scale=1.0;">
  172. And, you should also do this: ! /* CSS */"

    @viewport { width:device-width; }"
  173. 30% 50% 100% The Example

  174. SERVING RWD STYLES Major Approaches ‣ Single CSS File ‣

    Breakpoint Based Partials ‣ Module Based Partials
  175. Single CSS File HTML <link> CSS ! Start with styles

    
 applied to all ! Styles scoped to 
 a media query ! Styles scoped to 
 another media query
  176. Single CSS File /* styles.css */" ! aside { color:

    #333; width: 100%; }"
  177. Single CSS File /* styles.css */" ! aside { color:

    #333; width: 100%; }" ! /* if the viewport width is 40em or greater */"
  178. PAUSE: MEDIA QUERIES

  179. Media Queries <!-- In your HTML -->" ! <link media=”(min-width:

    30em)” ..." ! <link media=”only screen and (max-width: 80em)” ..." ! ! ! /* In your CSS */" ! @media (min-height: 30em) { ... }" ! @media not print { ... } http://dev.w3.org/csswg/mediaqueries4/
  180. Modifier <!-- In your HTML -->" ! <link media=”(min-width: 30em)”

    ..." ! <link media=”only screen and (max-width: 80em)” ..." ! ! ! /* In your CSS */" ! @media (min-height: 30em) { ... }" ! @media not print { ... } http://dev.w3.org/csswg/mediaqueries4/#mq-prefix
  181. Media Types <!-- In your HTML -->" ! <link media=”(min-width:

    30em)” ..." ! <link media=”only screen and (max-width: 80em)” ..." ! ! ! /* In your CSS */" ! @media (min-height: 30em) { ... }" ! @media not print { ... } http://dev.w3.org/csswg/mediaqueries4/#media-types
  182. Media Types all, print, screen, speech ! Deprecated: braille, embossed,

    handheld, projection, tv, tty http://dev.w3.org/csswg/mediaqueries4/#media-types
  183. Media Features <!-- In your HTML -->" ! <link media=”(min-width:

    30em)” ..." ! <link media=”only screen and (max-width: 80em)” ..." ! ! ! /* In your CSS */" ! @media (min-height: 30em) { ... }" ! @media not print { ... } http://dev.w3.org/csswg/mediaqueries4/#mq-features
  184. Media Features width, height, device-width, device-height, orientation, aspect-ratio, device-aspect-ratio, color,

    color-index, monochrome, resolution, scan, grid ! Level 4 (not implemented yet): update-frequency, overflow-block, overflow-inline, 
 (any-)pointer, (any-)hover, light-level, scripting http://dev.w3.org/csswg/mediaqueries4/#mf-dimensions
  185. http://dev.w3.org/csswg/mediaqueries4/#media

  186. Examples http://dev.w3.org/csswg/mediaqueries4/#mq-features @media (min-width: 500px) { ... } If the

    width of the targeted display area of the output device is greater than or equal to 500 pixels.
  187. Examples http://dev.w3.org/csswg/mediaqueries4/#mq-features @media (min-width: 500px) { ... }" @media (width

    >= 500px) { ... } If the width of the targeted display area of the output device is greater than or equal to 500 pixels.
  188. Examples If the width of the targeted display area of

    the output device is less than or equal to 800 pixels. http://dev.w3.org/csswg/mediaqueries4/#mq-features @media (max-width: 800px) { ... }
  189. Examples If the value of the height media feature is

    greater than or equal to the value of the width media feature. http://dev.w3.org/csswg/mediaqueries4/#mq-features @media (orientation: portrait) { ... }
  190. Examples If the width of the rendering surface of the

    output device is greater than or equal to 500 pixels. http://dev.w3.org/csswg/mediaqueries4/#mq-features @media (min-device-width: 500px) { ... }
  191. Examples http://dev.w3.org/csswg/mediaqueries4/#mq-features @media (min-width: 500px) and (max-width: 1000px)" { ...

    } If the width of the targeted display area of the output device is greater than or equal to 500 pixels and less than or equal to 1000 pixels.
  192. Single CSS File HTML <link> CSS ! Start with styles

    
 applied to all ! Styles scoped to a
 media query ! Styles scoped to 
 another media query
  193. Single CSS File /* styles.css */" ! aside { color:

    #333; width: 100%; }" ! /* if the viewport width is 40em or greater */"
  194. Single CSS File /* styles.css */" ! aside { color:

    #333; width: 100%; }" ! /* if the viewport width is 40em or greater */" @media (min-width: 40em) {" aside { width: 50%; }" }"
  195. Single CSS File /* styles.css */" ! aside { color:

    #333; width: 100%; }" ! /* if the viewport width is 40em or greater */" @media (min-width: 40em) {" aside { width: 50%; }" }"
  196. Single CSS File /* styles.css */" ! aside { color:

    #333; width: 100%; }" ! /* if the viewport width is 40em or greater */" @media (min-width: 40em) {" aside { width: 50%; }" }" ! /* if the viewport width is 60em or greater */" @media (min-width: 60em) {" aside { width: 30%; }" }
  197. Single CSS File Small Viewport Width First /* styles.css */"

    ! aside { color: #333; width: 100%; }" ! /* if the viewport width is 40em or greater */" @media (min-width: 40em) {" aside { width: 50%; }" }" ! /* if the viewport width is 60em or greater */" @media (min-width: 60em) {" aside { width: 30%; }" }
  198. Single CSS File Large Viewport Width First /* styles.css */"

    ! aside { color: #333; width: 30%; }" ! /* if the viewport width is 60em or less */" @media (max-width: 60em) {" aside { width: 50%; }" }" ! /* if the viewport width is 40em or less */" @media (max-width: 40em) {" aside { width: 100%; }" }
  199. SERVING RWD STYLES Single CSS File ‣ Simple to implement

    ‣ Single request ‣ Doesn’t require a preprocessor ‣ Requires JS to serve large layout to old IE if starting with small layouts ‣ Large sites can be difficult to maintain because of the size of
 the single file
  200. SERVING RWD STYLES Major Approaches ‣ Single CSS File ‣

    Breakpoint Based Partials ‣ Module Based Partials
  201. Breakpoint Based Partials HTML <link> ! If this browser is

    less than IE9... and it’s not IE Mobile... <link> ! base.css ! all styles/MQ blocks no-mq.css ! MQ styles from base
 without the MQs http://nicolasgallagher.com/mobile-first-css-sass-and-ie/
  202. Breakpoint Based Partials index.html" ! <link href=”base.css” rel=”stylesheet”>" ! <!--[if

    (lt IE 9) & (!IEMobile)]>" <link href=”no-mq.css” rel=”stylesheet”>" <![endif]-->
  203. Breakpoint Based Partials base.css" ! aside { color: #333; width:

    100%; }" @media (min-width: 40em) {" aside { width: 50%; }" }" @media (min-width: 60em) {" aside { width: 30%; }" } no-mq.css" ! aside { width: 50%; }" aside { width: 30%; }
  204. Breakpoint Based Partials base.css" ! aside { color: #333; width:

    100%; }" @media (min-width: 40em) {" aside { width: 50%; }" }" @media (min-width: 60em) {" aside { width: 30%; }" } no-mq.css" ! aside { width: 50%; }" aside { width: 30%; }
  205. Breakpoint Based Partials base.css" ! aside { color: #333; width:

    100%; }" @media (min-width: 40em) {" aside { width: 50%; }" }" @media (min-width: 60em) {" aside { width: 30%; }" } no-mq.css" ! aside { width: 50%; }" aside { width: 30%; }
  206. Breakpoint Based Partials base.css" ! aside { color: #333; width:

    100%; }" @media (min-width: 40em) {" aside { width: 50%; }" }" @media (min-width: 60em) {" aside { width: 30%; }" } no-mq.css" ! aside { width: 50%; }" aside { width: 30%; }
  207. Breakpoint Based Partials base.css" ! aside { color: #333; width:

    100%; }" @media (min-width: 40em) {" aside { width: 50%; }" }" @media (min-width: 60em) {" aside { width: 30%; }" } no-mq.css" ! aside { width: 50%; }" aside { width: 30%; }
  208. Breakpoint Based Partials base.css" ! aside { color: #333; width:

    100%; }" @media (min-width: 40em) {" aside { width: 50%; }" }" @media (min-width: 60em) {" aside { width: 30%; }" } no-mq.css" ! aside { width: 50%; }" aside { width: 30%; }
  209. Breakpoint Based Partials base.css" ! aside { color: #333; width:

    100%; }" @media (min-width: 40em) {" aside { width: 50%; }" }" @media (min-width: 60em) {" aside { width: 30%; }" } no-mq.css" ! aside { width: 50%; }" aside { width: 30%; }
  210. Breakpoint Based Partials base.css" ! aside { color: #333; width:

    100%; }" @media (min-width: 40em) {" aside { width: 50%; }" }" @media (min-width: 60em) {" aside { width: 30%; }" } no-mq.css" ! aside { width: 50%; }" aside { width: 30%; }
  211. PAUSE: CSS PREPROCESSORS

  212. styles.scss styles.css We write Sass
 (or LESS, Stylus, etc.) Browser

    gets CSS
 (like it always has) PREPROCESSING What is CSS Preprocessing?
  213. The Big Three: LESS, Sass, and Stylus

  214. LESS ‣ Runs on Node.js ‣ Very similar syntax to

    SASS ‣ http://lesscss.org/
  215. LESS syntax Variables are specified with @ symbol ! /*

    .less */" ! @top-variable: 20px;" ! " #header-shadow {" "position: absolute;" " " top: @top-variable;" " }
  216. Stylus ‣ Runs on Node.js ‣ Has a flexible syntax

    - You can omit semi-colons, colons, and braces ‣ http://learnboost.github.com/ stylus/
  217. Stylus Syntax /* .styl */" ! top-variable = 20px" "

    " #main-header" " position absolute" " " top top-variable" ! #footer {" " background: blue" " " border 1px solid #00f;" } Notice the terse, forgiving syntax.
  218. Sass ‣ Runs on Ruby ‣ Has two syntax flavors

    - .scss & .sass ‣ http://sass-lang.com/
  219. Sass Sytax $main-color: blue" ! /* .scss */" #main {"

    color: $main-color;" font-size: 0.3em;" }" ! /* .sass */" #main" color: $main-color" font-size: 0.3em
  220. What’s so cool about preprocessors, anyway?

  221. Nesting /* .css */" ! .food-list {" list-style: none;" }"

    ! .food-list li {" font-size: 1rem; " }" ! .food-list li a {" color: red;" }" ! /* .scss */" ! .food-list {" list-style: none;" li {" font-size: 1rem;" a {" color: red;" }" }" }
  222. Nesting can be abused. /* This is bad. Don’t do

    it. */" ! html body #main div.primary .big-header {" font-size: 2em;" } !
  223. Variables /*.scss*/" $white: rgba(255,255,255,1);" ! /*.less*/" @white: rgba(255,255,255,1);" ! /*.styl*/"

    white = rgba(255,255,255,1);" $black = rgba(0,0,0,1);
  224. Mixins /*.scss*/" ! @mixin border-radius( $value : 10px ) {"

    " -webkit-border-radius: $value;" " -moz-border-radius: $value;" " " " border-radius: $value;" } .btn{" @include border-radius(25px);" }
  225. Mixins ‣ Sass and Stylus both support basic programming like

    loops, if/else, etc. in mixins. ‣ LESS only offers “guarded mixins.” - I hear this is better with the *new* version...
  226. Sparkbox REM Mixin

  227. Sparkbox REM Mixin /*.scss*/" @include rem(padding, 0.5, 1, 4, 3);"

    @include rem(font-size, 1.2, large);
  228. Compass & Bourbon ‣ Compass and Bourbon are mixin libraries

    for Sass ‣ Takes care of vendor prefixes with mixins ‣ Compass has an ecosystem of plugins built on top of Compass ‣ With config.rb, Compass lets you check the preprocessor config into source control
  229. Compass & Bourbon

  230. Importing ‣ Allows you to break up your styles across

    files - variables, mixins, reset, all separated ‣ Better than a standard css import
  231. Importing this file will compile to base.css /* base.scss */"

    ! @import "compass";" @import "variables";" @import "reset";" @import "mixins";" @import "header";" @import "hero";" @import "whatever";
  232. CSS PREPROCESSORS Resources Codekit http://incident57.com/codekit/

  233. CSS PREPROCESSORS Resources Scout http://mhs.github.com/scout-app/

  234. CSS PREPROCESSORS Resources Compass http://compass-style.org/

  235. CSS PREPROCESSORS Resources Sass Primer http://thesassway.com/beginner/getting- started-with-sass-and-compass

  236. Breakpoint Based Partials base.css" ! aside { color: #333; width:

    100%; }" @media (min-width: 40em) {" aside { width: 50%; }" }" @media (min-width: 60em) {" aside { width: 30%; }" } no-mq.css" ! aside { width: 50%; }" aside { width: 30%; }
  237. _40em.scss" ! aside { width: 50%; } Breakpoint Based Partials

    base.scss" ! @import “smallest”;" @media (min-width: 40em) {" @import “40em”;" }" @media (min-width: 60em) {" @import “60em”;" } no-mq.scss" ! @import “40em”;" @import “60em”; _60em.scss" ! aside { width: 30%; } _smallest.scss" ! aside { color: #333;
 width: 100%;}
  238. SERVING RWD STYLES Breakpoint Based Partials ‣ Allows you to

    start with small layouts and serve large layout to old IE without JS ‣ Only 1 or 2 requests ‣ Requires preprocessor ‣ Maintenance can be complex
  239. SERVING RWD STYLES Major Approaches ‣ Single CSS File ‣

    Breakpoint Based Partials ‣ Module Based Partials
  240. HTML If < IE9 and not IE Mobile <link> !

    If >= IE9 or IE Mobile or not IE <link> Module Based Partials no-mq.css ! All styles with no MQs ! ! mq.css ! All styles with MQs http://seesparkbox.com/foundry/structuring_and_serving_styles_for_older_browsers
  241. Module Based Partials index.html" ! <!--[if (lt IE 9) &

    (!IEMobile)]>" <link href=”no-mq.css” rel=”stylesheet”>" <![endif]-->" ! <!--[if (gte IE 9) | (IEMobile)]><!-->" <link href=”mq.css” rel=”stylesheet”>" <!--<![endif]-->
  242. Module Based Partials index.html" ! <!--[if (lt IE 9) &

    (!IEMobile)]>" <link href=”no-mq.css” rel=”stylesheet”>" <![endif]-->" ! <!--[if (gte IE 9) | (IEMobile)]><!-->" <link href=”mq.css” rel=”stylesheet”>" <!--<![endif]-->
  243. Module Based Partials index.html" ! <!--[if (lt IE 9) &

    (!IEMobile)]>" <link href=”no-mq.css” rel=”stylesheet”>" <![endif]-->" ! <!--[if (gte IE 9) | (IEMobile)]><!-->" <link href=”mq.css” rel=”stylesheet”>" <!--<![endif]-->
  244. Module Based Partials index.html" ! <!--[if (lt IE 9) &

    (!IEMobile)]>" <link href=”no-mq.css” rel=”stylesheet”>" <![endif]-->" ! <!--[if (gte IE 9) | (IEMobile)]><!-->" <link href=”mq.css” rel=”stylesheet”>" <!--<![endif]-->
  245. Module Based Partials index.html" ! <!--[if (lt IE 9) &

    (!IEMobile)]>" <link href=”no-mq.css” rel=”stylesheet”>" <![endif]-->" ! <!--[if (gte IE 9) | (IEMobile)]><!-->" <link href=”mq.css” rel=”stylesheet”>" <!--<![endif]-->
  246. Module Based Partials index.html" ! <!--[if (lt IE 9) &

    (!IEMobile)]>" <link href=”no-mq.css” rel=”stylesheet”>" <![endif]-->" ! <!--[if (gte IE 9) | (IEMobile)]><!-->" <link href=”mq.css” rel=”stylesheet”>" <!--<![endif]-->
  247. Module Based Partials mq.css" ! aside { color: #333;
 width:

    100%; }" ! @media (min-width: 40em) {" aside { width: 50%; }" }" ! @media (min-width: 60em) {" aside { width: 30%; }" } no-mq.css" ! aside { color: #333;
 width: 100%;" width: 50%;" width: 30%; }
  248. Module Based Partials mq.css" ! aside { color: #333;
 width:

    100%; }" ! @media (min-width: 40em) {" aside { width: 50%; }" }" ! @media (min-width: 60em) {" aside { width: 30%; }" } no-mq.css" ! aside { color: #333;
 width: 100%;" width: 50%;" width: 30%; }
  249. Module Based Partials mq.css" ! aside { color: #333;
 width:

    100%; }" ! @media (min-width: 40em) {" aside { width: 50%; }" }" ! @media (min-width: 60em) {" aside { width: 30%; }" } no-mq.css" ! aside { color: #333;
 width: 100%;" width: 50%;" width: 30%; }
  250. Module Based Partials mq.css" ! aside { color: #333;
 width:

    100%; }" ! @media (min-width: 40em) {" aside { width: 50%; }" }" ! @media (min-width: 60em) {" aside { width: 30%; }" } no-mq.css" ! aside { color: #333;
 width: 100%;" width: 50%;" width: 30%; }
  251. Module Based Partials mq.css" ! aside { color: #333;
 width:

    100%; }" ! @media (min-width: 40em) {" aside { width: 50%; }" }" ! @media (min-width: 60em) {" aside { width: 30%; }" } no-mq.css" ! aside { color: #333;
 width: 100%;" width: 50%;" width: 30%; }
  252. Module Based Partials mq.css" ! aside { color: #333;
 width:

    100%; }" ! @media (min-width: 40em) {" aside { width: 50%; }" }" ! @media (min-width: 60em) {" aside { width: 30%; }" } no-mq.css" ! aside { color: #333;
 width: 100%;" width: 50%;" width: 30%; }
  253. Module Based Partials mq.css" ! aside { color: #333;
 width:

    100%; }" ! @media (min-width: 40em) {" aside { width: 50%; }" }" ! @media (min-width: 60em) {" aside { width: 30%; }" } no-mq.css" ! aside { color: #333;
 width: 100%;" width: 50%;" width: 30%; }
  254. Module Based Partials mq.scss" ! @import “compass”;" @import “sb-media”;" !

    @import “aside”;" @import “nav”;" @import “footer”;" ... no-mq.scss" ! @import “compass”;" @import “sb-media”;" ! $sb-no-mq-support: true;" ! @import “aside”;" @import “nav”;" @import “footer”;" ...
  255. Module Based Partials mq.scss" ! @import “compass”;" @import “sb-media”;" !

    @import “aside”;" @import “nav”;" @import “footer”;" ... no-mq.scss" ! @import “compass”;" @import “sb-media”;" ! $sb-no-mq-support: true;" ! @import “aside”;" @import “nav”;" @import “footer”;" ...
  256. Module Based Partials mq.scss" ! @import “compass”;" @import “sb-media”;" !

    @import “aside”;" @import “nav”;" @import “footer”;" ... no-mq.scss" ! @import “compass”;" @import “sb-media”;" ! $sb-no-mq-support: true;" ! @import “aside”;" @import “nav”;" @import “footer”;" ...
  257. Module Based Partials mq.scss" ! @import “compass”;" @import “sb-media”;" !

    @import “aside”;" @import “nav”;" @import “footer”;" ... no-mq.scss" ! @import “compass”;" @import “sb-media”;" ! $sb-no-mq-support: true;" ! @import “aside”;" @import “nav”;" @import “footer”;" ...
  258. Module Based Partials _aside.scss" ! ! aside {" color: #333;

    width: 100%;" ! @include sb-media(40em) {" width: 50%; }" ! @include sb-media(60em) {" width: 30%; }" }
  259. Module Based Partials _aside.scss" ! ! aside {" color: #333;

    width: 100%;" ! @include sb-media(40em) {" width: 50%; }" ! @include sb-media(60em) {" width: 30%; }" }
  260. Module Based Partials _aside.scss" ! ! aside {" color: #333;

    width: 100%;" ! @include sb-media(40em) {" width: 50%; }" ! @include sb-media(60em) {" width: 30%; }" } $sb-no-mq-support: true; aside { color: #333;
 width: 100%;" width: 50%;" width: 30%; }
  261. Module Based Partials $no-mq-support: false !default;" $serve-to-nomq-max-width:60em;" ! @mixin sb-media($query)

    {" @if $no-mq-support{" @if $query < $serve-to-nomq-max-width {" @content;" }" } @else {" @media ( 'min-width:' + $query ) {" @content;" }" }" }" https://github.com/sparkbox/SB-Media
  262. https://github.com/sparkbox/SB-Media

  263. https://github.com/Team-Sass/breakpoint

  264. SERVING RWD STYLES Module Based Partials ‣ Single Request ‣

    Easy Maintenance ‣ Allows you to start with small layouts and serve large layout to old IE without JS ‣ Requires Preprocessor
  265. This is so much more natural.

  266. THERE IS NO
 BREAKPOINT

  267. There is no Breakpoint aside {" // general styles" !

    // major shift at 40em" // major shift at 60em" ..." } aside {" // general styles" ! // major shift at 40em" // minor tweak at 42em" // minor tweak at 53.5em" // minor tweak at 56em" // major shift at 60em" // minor tweak at 72.2em" // minor tweak at 74em" ..." }
  268. There is no Breakpoint aside {" // general styles" !

    // major shift at 40em" // major shift at 60em" ..." } aside {" // general styles" ! // major shift at 40em" // minor tweak at 42em" // minor tweak at 53.5em" // minor tweak at 56em" // major shift at 60em" // minor tweak at 72.2em" // minor tweak at 74em" ..." }
  269. There is no Breakpoint Media Query Bookmarklet
 (by @robtarr)

  270. There is no Breakpoint

  271. Relax.

  272. Think more modularly. ! Try something like SMACSS (from @snookca).

  273. Element Queries http://www.xanthir.com/b4PR0

  274. Responsive Elements https://github.com/kumailht/responsive-elements

  275. Element Queries https://github.com/tysonmatanich/elementQuery

  276. Element Queries https://github.com/sparkbox/elementQuery

  277. http://seesparkbox.com/foundry/there_is_no_breakpoint There is no Breakpoint http://www.markboulton.co.uk/journal/theinbetween The In-Between http://www.jordanm.co.uk/post/43147197731/the-in-between The

    In-Between (2)
  278. An Example

  279. MAKING EVERYTHING FLUID CREATING
 FLEXIBILITY

  280. CREATING FLEXIBILITY What Needs to Flex ‣ Grids ‣ Layout

    ‣ Typography ‣ Images ‣ Tables ‣ Video
  281. CREATING FLEXIBILITY What Needs to Flex ‣ Grids ‣ Layout

    ‣ Typography ‣ Images ‣ Tables ‣ Video
  282. It starts with the grid

  283. It starts with the grid body {" width: 100%;" }"

    ! div.main {" width: 70%;" }" ! aside {" width: 28%;" } body {" width: 1000px;" }" ! div.main {" width: 700px;" }" ! aside {" width: 280px;" }
  284. It starts with the grid body {" width: 100%;" }"

    ! div.main {" width: 70%;" } target / context = % 700 / 1000 = .7 .7 = 70% body {" width: 1000px;" }" ! div.main {" width: 700px;" }
  285. It starts with the grid body {" width: 100%;" }"

    ! aside {" width: 28%;" } target / context = % 280 / 1000 = .28 .28 = 28% body {" width: 1000px;" }" ! aside {" width: 280px;" }
  286. Responsive grid systems

  287. CREATING FLEXIBILITY RWD Grid Systems ‣ Foundation ‣ Bootstrap ‣

    Skeleton ‣ Responsive.gs ‣ Columnal ‣ Pure ‣ ...this list goes on, and on, and on
  288. Pure CSS from Yahoo

  289. CREATING FLEXIBILITY Semantic RWD Grid Systems ‣ Semantic.gs ‣ Susy

    ‣ Zen Grids
  290. Semantic.gs @column-width: 60;" @gutter-width: 20;" @columns: 12;" @total-width: 100%;" !

    header { @include column(12); }" article { @include column(12); }" aside { @include column(12); }" ! @media (min-width: 38em) {" article { @include column(8); }" aside { @include column(4); }" }
  291. Semantic.gs @column-width: 60;" @gutter-width: 20;" @columns: 12;" @total-width: 100%;" !

    header { @include column(12); }" article { @include column(12); }" aside { @include column(12); }" ! @media (min-width: 38em) {" article { @include column(8); }" aside { @include column(4); }" }
  292. Semantic.gs @column-width: 60;" @gutter-width: 20;" @columns: 12;" @total-width: 100%;" !

    header { @include column(12); }" article { @include column(12); }" aside { @include column(12); }" ! @media (min-width: 38em) {" article { @include column(8); }" aside { @include column(4); }" }
  293. Semantic.gs @column-width: 60;" @gutter-width: 20;" @columns: 12;" @total-width: 100%;" !

    header { @include column(12); }" article { @include column(12); }" aside { @include column(12); }" ! @media (min-width: 38em) {" article { @include column(8); }" aside { @include column(4); }" }
  294. Semantic.gs @column-width: 60;" @gutter-width: 20;" @columns: 12;" @total-width: 100%;" !

    header { @include column(12); }" article { @include column(12); }" aside { @include column(12); }" ! @media (min-width: 38em) {" article { @include column(8); }" aside { @include column(4); }" }
  295. Or, just roll your own

  296. CREATING FLEXIBILITY What Needs to Flex ‣ Grids ‣ Layout

    ‣ Typography ‣ Images ‣ Tables ‣ Video
  297. CREATING FLEXIBILITY Responsive Layout Patterns ‣ Source order stacking ‣

    Content choreography ‣ Off canvas
  298. CREATING FLEXIBILITY Responsive Layout Patterns ‣ Source order stacking ‣

    Content choreography ‣ Off canvas
  299. HEADER HEADER CONTENT 1 CONTENT 1 CONTENT 2 CONTENT 2

    AD SEARCH SEARCH AD FOOTER Large Resolution Small Resolution
  300. HEADER HEADER CONTENT 1 CONTENT 1 CONTENT 2 CONTENT 2

    AD SEARCH SEARCH AD FOOTER Large Resolution Small Resolution
  301. CREATING FLEXIBILITY Responsive Layout Patterns ‣ Source order stacking ‣

    Content choreography ‣ Off canvas
  302. None
  303. None
  304. appendAround JS Library https://github.com/filamentgroup/AppendAround $( “.move-me" ).appendAround();

  305. <!-- initial container for appendAround -->" <div class=“cont-1” data-set="containers">" <p

    class=“move-me”>appendAround content</p>" </div> " ! <div>" <p>Some other content</p>" </div>" ! <!-- potential container for appendAround -->" <div class=“cont-2" data-set="containers"></div>" ! <div>" <p>Some other content</p>" </div>" ! <!-- potential container for appendAround -->" <div class=“cont-3" data-set="containers"></div>
  306. .cont-1 { display: block; }" .cont-2, .cont-3 { display: none;

    }" ! @media (min-width: 30em) {" .cont-2 { display: block; }" .cont-1, .cont-3 { display: none; }" }" ! @media (min-width: 50em) {" .cont-3 { display: block; }" .cont-1, .cont-2 { display: none; }" }
  307. CREATING FLEXIBILITY Responsive Layout Patterns ‣ Source order stacking ‣

    Content choreography ‣ Off canvas
  308. HEADER CONTENT 1 CONTENT 2 RELATED CONTENT POPULAR CONTENT SUB

    NAV AD Large Resolution
  309. CONTENT 1 NAVIGATION RELATED CON POPULAR CON AD NAV EXTRA

    HEADER
  310. Off Canvas

  311. Easiest to show
 a few examples:
 http://jasonweaver.name/lab/offcanvas/ ! http://disney.com/ !

    http://www.lenovo.com/au/en/
  312. There are many, many combinations of these basic ideas !

    http://bit.ly/U4N5qH ! (http://bradfrost.github.com/this-is-responsive/patterns.html)
  313. There are some really cool new layout modules coming...

  314. http://www.netmagazine.com/tutorials/ master-new-css-layout-properties

  315. http://www.fivesimplesteps.com/ products/css3-layout-modules

  316. CREATING FLEXIBILITY What Needs to Flex ‣ Grids ‣ Layout

    ‣ Typography ‣ Images ‣ Tables ‣ Video
  317. Type flexes by default

  318. CREATING FLEXIBILITY Responsive Typography ‣ Small screen ≠ small font-size

    ‣ Consider contrast ‣ Spacing and Hierarchy ‣ Type sizing ‣ Line length ‣ Line breaks
  319. CREATING FLEXIBILITY Responsive Typography ‣ Small screen ≠ small font-size

    ‣ Consider contrast ‣ Spacing and Hierarchy ‣ Type sizing ‣ Line length ‣ Line breaks
  320. None
  321. None
  322. CREATING FLEXIBILITY Responsive Typography ‣ Small screen ≠ small font-size

    ‣ Consider contrast ‣ Spacing and Hierarchy ‣ Type sizing ‣ Line length ‣ Line breaks
  323. @snookca http://snook.ca/technical/colour_contrast/colour.html

  324. @leaverou http://leaverou.github.com/contrast-ratio/

  325. CREATING FLEXIBILITY Responsive Typography ‣ Small screen ≠ small font-size

    ‣ Consider contrast ‣ Spacing and Hierarchy ‣ Type sizing ‣ Line length ‣ Line breaks
  326. None
  327. None
  328. Type Considerations ‣ Type size/line height relationship Rule of thumb:

    Line height 140% of body size
  329. Type Considerations ‣ Spacing: Grouping information Associate subheads with content

    by proximity
  330. Type Considerations ‣ Spacing: Allow the content to breathe

  331. Type Considerations ‣ Spacing: Margin after paragraphs Rule of thumb:

    About half of the 
 line height
  332. Maintaining Hierarchy ‣ Size ‣ Weight ‣ Color ‣ Position

    ‣ Type Contrast
  333. Maintaining Hierarchy

  334. CREATING FLEXIBILITY Responsive Typography ‣ Small screen ≠ small font-size

    ‣ Consider contrast ‣ Spacing and Heirarchy ‣ Type sizing ‣ Line length ‣ Line breaks
  335. @mixin rem( $property, $a:0, $b:$a, $c:$a, $d:$b ) {" @if

    ( $property == "font-size" ) {" // $a is the font size" // %b is the keyword" @if ( $a != $b ) {" font-size: $b;" }" @else {" font-size: $a * $base-font-multiplier * 16px;" }" font-size: $a * 1rem;" } @else {" $apx: $a * $base-font-multiplier * 16px;" $bpx: $b * $base-font-multiplier * 16px;" $cpx: $c * $base-font-multiplier * 16px;" $dpx: $d * $base-font-multiplier * 16px;" $arem: $a * 1rem;" $brem: $b * 1rem;" $crem: $c * 1rem;" $drem: $d * 1rem;" ! @if ( $property == "padding" or $property == "margin" ){" #{$property}: $apx $bpx $cpx $dpx;" REM Mixin
  336. vw & vh CSS Units

  337. CREATING FLEXIBILITY Responsive Typography ‣ Small screen ≠ small font-size

    ‣ Consider contrast ‣ Spacing and Heirarchy ‣ Type sizing ‣ Line length ‣ Line breaks
  338. Type Considerations ‣ Line Length Rule of thumb: 45–70 characters

    
 per line
  339. CREATING FLEXIBILITY Responsive Typography ‣ Small screen ≠ small font-size

    ‣ Consider contrast ‣ Spacing and Heirarchy ‣ Type sizing ‣ Line length ‣ Line breaks
  340. CREATING FLEXIBILITY What Needs to Flex ‣ Grids ‣ Layout

    ‣ Typography ‣ Images ‣ Tables ‣ Video
  341. Flexible Images img {" max-width: 100%;" }

  342. The image problem(s)

  343. CREATING FLEXIBILITY The image problem(s) ‣ Content ‣ Bandwidth ‣

    Pixel density
  344. CREATING FLEXIBILITY Image: Content

  345. CREATING FLEXIBILITY Image: Content

  346. CREATING FLEXIBILITY Image: Content

  347. CREATING FLEXIBILITY Image: Content

  348. CREATING FLEXIBILITY Image: Bandwidth As of March of 2012, 86%

    of the sites on mediaqueri.es demonstrated the same weight and load time at resolutions from 300ish to 1200ish. ! via @guypod http://www.guypo.com/mobile/performance-implications-of-responsive- design-book-contribution/
  349. CREATING FLEXIBILITY Image: Bandwidth Responsive & Responsible ! via @scotjehl

    https://speakerdeck.com/scottjehl/responsive-responsible http://www.lukew.com/ff/entry.asp?1565
  350. CREATING FLEXIBILITY Image: Pixel Density Most new mobile devices have

    high pixel density displays: ! Apple iPhone 4+: 326 PPI Amazon Kindle Fire HD 8.9: 254 PPI Nokia Lumia 920: 332 PPI BlackBerry Z10: 356 PPI Samsung Galaxy Note: 285 PPI
  351. CREATING FLEXIBILITY The image problem(s) ‣ Content ‣ Bandwidth ‣

    Pixel density
  352. The image solution(s)

  353. CREATING FLEXIBILITY The image solution(s) ‣ SVG ‣ Icon fonts

    ‣ Pixel-density media queries ‣ Compressive ‣ New markup ‣ Intercepting requests ‣ User preference
  354. SVG (Scalable Vector Graphics) ‣ Allows the image to be

    resolution independent. ‣ Support isn’t very good for older browsers. ‣ We can use Modernizr to detect if the browser supports SVG and provide a .png fallback for those that do not.
  355. @dbushell wrote a great primer for SVG

  356. Icon Fonts ‣ Fonts by default are resolution independent, Icon

    fonts are no different. ‣ http://icomoon.io/app/ allows you to create your own icon fonts ‣ They do require a bit more markup, and JS for IE 7 and lower.
  357. Icon Font Markup /*.scss*/" [data-icon]:before {" content: attr(data-icon);" font-family: 'icon-font-family';"

    speak: none;" } <!--html-->" <a href="#" class="search-toggle">" <span aria-hidden="true" 
 data-icon="&#xe009;"></span>" <span class="screen-reader">Search</span>" </a>
  358. Compressive Images ‣ http://bit.ly/Sygdey ‣ Increase the image dimensions ‣

    Add massive compression ‣ Scale the image in the browser
  359. Pixel Density MQs ‣ Detect the pixel ratio of the

    device and serve a second, higher-res image. ‣ Retina devices now have to make an additional request for the retina asset.
  360. Pixel Density MQs Need browser prefixes and better resolution unit

    support /*.scss*/" @media (min-resolution: 1.5dppx) {" .logo {" background-image: url(/i/logo-2x.png);" background-size: 100%;" }" }
  361. New Markup ‣ http://responsiveimages.org/ ! ‣ Picture - http://picture.responsiveimages.org/ ‣

    Srcset - http://www.w3.org/html/wg/drafts/srcset/w3c-srcset/ - http://ericportis.com/posts/2014/srcset-sizes/
  362. None
  363. None
  364. Picture Polyfill

  365. Srcset Polyfill

  366. Intercepting Requests ‣ As a service (via url prefix) -

    http://resrc.it ! ‣ On your server (via .htaccess) - http://adaptive-images.com/
  367. User Preference ‣ Allow the user to choose what experience

    they would like to have on their device: “HD” or “SD”.
  368. CREATING FLEXIBILITY What Needs to Flex ‣ Grids ‣ Layout

    ‣ Typography ‣ Images ‣ Tables ‣ Video
  369. CREATING FLEXIBILITY Tables http://jsbin.com/emexa4

  370. CREATING FLEXIBILITY Tables http://codepen.io/aarongustafson/pen/ucJGv

  371. CREATING FLEXIBILITY Tables http://filamentgroup.com/examples/rwd-table-patterns/

  372. CREATING FLEXIBILITY Tables http://codepen.io/bencallahan/pen/xvmCe

  373. RWD Table Example [http://codepen.io/bencallahan/pen/xvmCe]

  374. CREATING FLEXIBILITY What Needs to Flex ‣ Grids ‣ Layout

    ‣ Typography ‣ Images ‣ Tables ‣ Video
  375. CREATING FLEXIBILITY Video

  376. CREATING FLEXIBILITY Intrinsic Ratios http://codepen.io/bencallahan/pen/KICkl

  377. CREATING FLEXIBILITY Video

  378. Creating flexibility requires experimentation

  379. Discussion ‣ What content types have we not addressed? ‣

    What specific challenges are you facing in creating flexibility?
  380. UNIQUE CONSIDERATIONS AND CHALLENGES RWD NAVIGATION

  381. The Maze

  382. amazon.com

  383. amazon.com

  384. amazon.com

  385. amazon.com

  386. amazon.com

  387. amazon.com

  388. Congratulations! In celebration of all your hard work and discipline,

    as a reward for all the risk you’ve taken to reach this point, we’re quite pleased to present you with…YOUR CONTENT! ! Keep up the good work! ! ~ The Management
  389. A Taxonomy ‣ Trigger Indicators ‣ Trigger (reveal) Patterns !

    ‣ Interaction Indicators ‣ Interaction Patterns
  390. Trigger Indicators

  391. What is a Trigger?

  392. Trigger Indicators ‣ Words ‣ menu, main menu ‣ nav,

    navigation ‣ site specific
 (sections, topics,
 products, etc.) ‣ Icons ‣ plus ‣ hamburger ‣ arrows ‣ “x”
  393. TRIGGER INDICATORS Words

  394. TRIGGER INDICATORS Icons Plus Hamburger Down Arrow

  395. TRIGGER INDICATORS Other & Combinations

  396. Trigger Indicators ‣ Words ‣ menu, main menu ‣ nav,

    navigation ‣ site specific
 (sections, topics,
 products, etc.) ‣ Icons ‣ plus ‣ hamburger ‣ arrows ‣ “x”
  397. Trigger Patterns
 (or, Reveal Patterns)

  398. Trigger Patterns ‣ Always Available ‣ Anchor to Footer ‣

    Select Element ‣ Make Room ‣ Cover Up ‣ Off Canvas ‣ Priority + ‣ Full Screen Takeover
  399. TRIGGER PATTERNS: ALWAYS AVAILABLE

  400. TRIGGER PATTERNS: ANCHOR TO FOOTER

  401. TRIGGER PATTERNS: SELECT ELEMENT

  402. iOS 7 TRIGGER PATTERNS: SELECT ELEMENT

  403. TRIGGER PATTERNS: SELECT ELEMENT Chrome on OS X

  404. TRIGGER PATTERNS: MAKE ROOM

  405. TRIGGER PATTERNS: COVER UP

  406. TRIGGER PATTERNS: OFF CANVAS

  407. TRIGGER PATTERNS: PRIORITY +

  408. TRIGGER PATTERNS: FULL SCREEN TAKEOVER

  409. Trigger Patterns ‣ Always Available ‣ Anchor to Footer ‣

    Select Element ‣ Make Room ‣ Cover Up ‣ Off Canvas ‣ Priority + ‣ Full Screen Takeover
  410. Interaction Indicators

  411. INTERACTION INDICATORS Icons

  412. Interaction Indicators ‣ Icons ‣ plus ‣ dash ‣ “x”

    ‣ various arrows
  413. Interaction Patterns

  414. Interaction Patterns ‣ List ‣ Accordion ‣ Paging

  415. INTERACTION PATTERNS: LIST

  416. INTERACTION PATTERNS: ACCORDION

  417. INTERACTION PATTERNS: PAGING

  418. Interaction Patterns ‣ List ‣ Accordion ‣ Paging

  419. Takeaways

  420. Takeaways ‣ Architecture ‣ Focus ‣ Behavior ‣ JavaScript ‣

    Usability
  421. TAKEAWAYS: ARCHITECTURE

  422. TAKEAWAYS: ARCHITECTURE

  423. TAKEAWAYS: FOCUS

  424. TAKEAWAYS: BEHAVIOR Multi Open

  425. TAKEAWAYS: BEHAVIOR Single Open

  426. TAKEAWAYS: BEHAVIOR Single Open

  427. Auto Scroll TAKEAWAYS: BEHAVIOR

  428. Takeaways ‣ JavaScript ‣ Visible by Default ‣ Anchor to

    Footer ‣ Single DOM
  429. mediaCheck, by @robtarr

  430. Takeaways ‣ Usability ‣ User Expectations ‣ Plan for the

    Worst ‣ Teach Use
  431. None
  432. Live Examples

  433. Discussion ‣ How are you handling navigation in your RWD

    projects? ‣ Have you been able to push back on IA?
  434. LEARN FROM OUR MISTAKES LESSONS LEARNED

  435. Testing

  436. LESSONS LEARNED Testing ‣ You must test on real devices

    ‣ Do your development in a webkit browser ‣ Build libraries of your patterns
  437. Pricing

  438. LESSONS LEARNED Pricing ‣ As much as 100% more, initially

    ‣ Likely to be 50% more, soon after ‣ Probably never less than 25% more
  439. LESSONS LEARNED Pricing ‣ As much as 100% more, initially

    ‣ Likely to be 50% more, soon after ‣ Probably never less than 25% more COMPARED TO WHAT?
  440. LESSONS LEARNED Pricing ‣ Testing (labs & time) ‣ Fewer

    patterns ‣ Project management ‣ Learning curve ‣ Maintenance ‣ Content strategy
  441. Prioritization

  442. LESSONS LEARNED Prioritization

  443. LESSONS LEARNED Prioritization

  444. LESSONS LEARNED Prioritization

  445. LESSONS LEARNED Prioritization

  446. LESSONS LEARNED Prioritization

  447. Performance

  448. LESSONS LEARNED Performance ‣ Optimize or cut out images ‣

    Decrease the number of requests ‣ Gzip if you can ‣ Concat and minify CSS/JS ‣ Load CSS at the top ‣ Load JS at the bottom ‣ Follow @souders on Twitter
  449. Barriers

  450. LESSONS LEARNED Barriers ‣ Organization barriers block collaboration ‣ Must

    have buy in from upper management ‣ Must have buy in from those doing the work ‣ It’s not easy, we’re still
 figuring it out
  451. What’s Next

  452. Fluency SOLVE THE PROBLEM

  453. Jakob Nielsen Says... ‣ Build a separate mobile site ‣

    Cut features ‣ Cut content http://www.nngroup.com/articles/mobile-site-vs-full-site/
  454. Jakob Nielsen Says... ‣ Build a separate mobile site ‣

    Cut features ‣ Cut content http://www.nngroup.com/articles/mobile-site-vs-full-site/ PLEASE, NO.
  455. The Responsive Dip ! http://bit.ly/MasqBk

  456. Responsive web design is about much more than making stuff

    fit on small screens.
  457. viewport width input method context low bandwidth no bandwidth available

    light location history state of mind intent viewport height right content speed user preference cross-width consistency Web Design
  458. Web Design viewport width input method context low bandwidth no

    bandwidth available light location history state of mind intent viewport height right content speed user preference cross-width consistency
  459. The Responsive Mindset ! “The truly responsive design web designer

    wasn’t born until after the launch of the iPhone. We haven’t seen his or her work yet.” ! Andy Clarke ! http://the-pastry-box-project.net/andy-clarke/2012-april-8/
  460. ! There are many problems left to solve. ! We’ll

    solve them much faster if we solve them together.
  461. @bencallahan @jeremyloyd THANKS!