Top Banner
Proactive Responsive Design http://flickr.com/photos/63631877@N00/3937964101 Dallas Society of Visual Communications Wednesday — October 24, 2012
75

Proactive Responsive Design

Jan 28, 2015

Download

Design

Nathan Smith

Presentation that I gave, along with coworkers Mark Sims and Mike Townson, at the Dallas Society of Visual Communications.

http://www.dsvc.org/events/working-lunch/10/2012
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Proactive Responsive Design

ProactiveResponsive

Design

http://flickr.com/photos/63631877@N00/3937964101

Dallas Society of Visual Communications

Wednesday — October 24, 2012

Page 2: Proactive Responsive Design

Nathan SmithPrincipal UI Architect

Mike TownsonUX Designer

We work as designers/devs at

Mark SimsUI Developer

http://www.projekt202.com

Page 3: Proactive Responsive Design

Relax, don’t stress out taking notes. You can get the slides here…

http://j.mp/pro-rwd

Page 4: Proactive Responsive Design

Front-end development is like playing midfield. It’s the“glue” that connects visual design with the server-side.

Page 5: Proactive Responsive Design

The term “Responsive Web Design” was coined by Ethan Marcotte, in an an article published by A List Apart.

Loosely defined, it means adapting to various screen sizes, using a fluid grid and @media queries in CSS.

Page 6: Proactive Responsive Design
Page 7: Proactive Responsive Design

Ethan also wrote a book…

http://www.abookapart.com/products/responsive-web-design

Page 8: Proactive Responsive Design

When should you use RWD™?

Responsive web design using @media queries (with one codebase for all devices) typically works best for web “sites” (not apps). Apps work best when tailored to one particular interaction paradigm. For instance, mobile Gmail is a different experience than on the desktop.

As a general rule of thumb, if your content can be read via RSS (such as Google Reader) and still make sense, it might be worth considering a responsive approach.

Page 9: Proactive Responsive Design

http://flickr.com/photos/djwudi/382030798

State of mobile in 2007 — The year the iPhone was introduced

Page 10: Proactive Responsive Design

The state of mobile in 2012 — Touch screens reign supreme

Page 11: Proactive Responsive Design

The one thing all these phones havein common (besides Angry Birds) isthey all have decent web browsers.

http://paulirish.com/2010/high-res-browser-icons

Page 12: Proactive Responsive Design

http://lukew.com/ff/entry.asp?1506

1,450,000mobile devices activated

317,124newborns begin life

Each day, on planet Earth…

Page 14: Proactive Responsive Design

“Obama orders agencies to optimize Web content for mobile”

http://flickr.com/photos/whitehouse/7161178504

Page 15: Proactive Responsive Design

Essentially, “responsive” has broken into the mainstream. It ain’t just for designer blogs anymore. Some pretty big name sites are adapting…

Page 16: Proactive Responsive Design

Microsoft.com — Home page is responsive

Page 17: Proactive Responsive Design

Grammy.com — Most of the site is responsive

Page 18: Proactive Responsive Design

Time.com — Entire site is responsive

Page 19: Proactive Responsive Design

Disney.com — Entire site is responsive

There is one Flash ad, which disappears if the browser is at “mobile” width.

Note: Most mobile devices have little/no support for Flash, Silverlight, etc.

Page 20: Proactive Responsive Design

Disney.com — Menu adapts, based on screen size

Page 21: Proactive Responsive Design

Pepsi Innovation — Entire site is responsive

http://innovation.capturaonline.com

Page 22: Proactive Responsive Design

Pepsi Innovation — Entire site is responsive

http://innovation.capturaonline.com

Page 23: Proactive Responsive Design
Page 24: Proactive Responsive Design

Like accessibility, RWD works best with advanced planning…

#FAIL

Page 25: Proactive Responsive Design
Page 26: Proactive Responsive Design

// For good browsers...

@import base

@media (min-width:320px) @import 320-up

@media (min-width:480px) @import 480-up

@media (min-width:780px) @import 780-up

@media (min-width:960px) @import 960-up

@media (min-width:1100px) @import 1100-up

Page 27: Proactive Responsive Design

// For older IE...

@import base@import 320-up@import 480-up@import 780-up@import 960-up

<!--[if (gt IE 8) | (IEMobile)]><!--><link rel="stylesheet" href="/css/style.css"><!--<![endif]-->

<!--[if (lt IE 9) & (!IEMobile)]><link rel="stylesheet" href="/css/ie.css"><![endif]-->

Page 28: Proactive Responsive Design

CSS Sass Compasshttp://sonspring.com/journal/sass-for-designers

Page 29: Proactive Responsive Design

http://thingsorganizedneatly.tumblr.com/post/9494864300/submission-the-compulsively-tidy-ursus-wehrli

CSS served to browserNeatly organized *.sass

Page 30: Proactive Responsive Design

http://compass-style.org

Page 31: Proactive Responsive Design

Compass makes vendor prefixes easy...

Page 32: Proactive Responsive Design

Compass brings sanity to gradients...

Page 33: Proactive Responsive Design

http://host.sonspring.com/handlebbbars

Handlebbbarsdemo of Handlebars.jsand the Dribbble API

Page 34: Proactive Responsive Design

Sweet, responsive Handlebbbars action

http://host.sonspring.com/handlebbbars

Page 35: Proactive Responsive Design

@media (min-width: 880px) { /* line 198, ../sass/_site.sass */ body { width: 880px; margin: 0 auto; }

/* line 202, ../sass/_site.sass */ #list li { float: left; width: 400px; height: 36em; }}

@media (min-width: 1320px) { /* line 208, ../sass/_site.sass */ body { width: 1320px; }}

Page 36: Proactive Responsive Design
Page 37: Proactive Responsive Design

@media queries aren’t just for width. Also works well for “retina” detection…

Page 38: Proactive Responsive Design
Page 39: Proactive Responsive Design

@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and ( min-device-pixel-ratio: 2) {

span.location { background-image: url([email protected]); background-size: 16px 14px; }

span.success { background-image: url([email protected]); background-size: 13px 14px; }

a.delete { background: url([email protected]) no-repeat 0 -100px; }

.content a.fav-link { background-image: url([email protected]); background-size: 11px 13px; }}

Page 40: Proactive Responsive Design
Page 41: Proactive Responsive Design

The biggest problem facing responsive design is <img> and potential file size.

But, there’s a neat solution for JPG images, at least…

Page 42: Proactive Responsive Design
Page 43: Proactive Responsive Design

A non-exhaustive list of potentially helpful responsive CSS frameworks…

Page 44: Proactive Responsive Design
Page 45: Proactive Responsive Design
Page 46: Proactive Responsive Design
Page 47: Proactive Responsive Design
Page 48: Proactive Responsive Design

http://trentwalton.com/2010/07/05/non-hover

Elements that rely only on mousemove, mouseover, mouseout or the CSS pseudo-class :hover may not always behave as expected on a touch-screen device such as iPad or iPhone. — Apple Reference Library

Page 50: Proactive Responsive Design

http://presentationzen.com/presentationzen/2010/08/a-long-time-ago-before-death-by-powerpoint.html

Be concise, for people on-the-go (mobile)…

Page 51: Proactive Responsive Design

http://presentationzen.com/presentationzen/2010/08/a-long-time-ago-before-death-by-powerpoint.html

Resist the temptation of information overload…

Page 52: Proactive Responsive Design

INNOVATION PORTAL Extended Designs

Page 53: Proactive Responsive Design
Page 54: Proactive Responsive Design

SIDE BY SIDEThe differences of Mobile vs. Desktop

Page 55: Proactive Responsive Design

HOME

Page 56: Proactive Responsive Design

HOME

Page 57: Proactive Responsive Design

MOBILE DESIGN

Page 58: Proactive Responsive Design
Page 59: Proactive Responsive Design
Page 60: Proactive Responsive Design
Page 61: Proactive Responsive Design
Page 62: Proactive Responsive Design

DESKTOP DESIGN

Page 63: Proactive Responsive Design
Page 64: Proactive Responsive Design
Page 65: Proactive Responsive Design
Page 66: Proactive Responsive Design
Page 67: Proactive Responsive Design
Page 68: Proactive Responsive Design
Page 69: Proactive Responsive Design
Page 70: Proactive Responsive Design
Page 71: Proactive Responsive Design
Page 72: Proactive Responsive Design
Page 73: Proactive Responsive Design
Page 74: Proactive Responsive Design
Page 75: Proactive Responsive Design

DEMO TIME! :)

Also, don’t forget you can download the slides here…

http://j.mp/pro-rwd