responsive web design nuts & bolts david weedon - ui/ux designer, covenant technology partners

56
Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

Upload: albert-lane

Post on 23-Dec-2015

222 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

Responsive Web DesignNuts & Bolts

David Weedon - UI/UX Designer, Covenant Technology Partners

Page 2: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

Responsive

Web Design

the bee’s

knees

Page 3: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

• Rapidly taking over the web.

• Easy to learn.

• Focus on good design.

Page 4: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

Show and Tell

thesearethings.com

smashingmagazine.com

foodsense.is

Page 5: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

What works.

• Intelligent, content driven

adjustments

• Keeping content consistent

• Consider mobile motives when

adjusting navigation and calls to

action.

Page 6: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

What doesn't.

• Hiding content that doesn’t fit.

• Adjusting content to fit on popular

devices.

• Bloat.

• Ignoring context.

Page 7: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

Content First.

Please.

Page 8: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners
Page 9: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

Why content first?

• RWD eats up a lot of time up front.

• Redesigns to fit unexpected content is

costly.

• Don’t try to fit circle content into square

design.

Page 10: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

Why content first?

• Good Design is tailored to the content.

• Book covers before books?

• Design before content is like using a

template.

• Good content is good, regardless of the

design.

Page 11: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

How it’s done.

@media

Page 12: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

CSS3’s Media Query

Page 13: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

Where should they be set.

• It really depends.

• Don’t use popular device widths.

• Break it when it breaks.

Page 14: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

Inclusive:

Inherited Styles

Page 15: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

Exclusive:

Isolated Styles

Page 16: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

Min and Max Width

• In general try to keep it going in one

direction.

• Use mostly min or mostly max width media

queries.

• Use Exclusive queries to block out

drastically different styles.

Page 17: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

That one direction should be up.

(Mobile First)

Page 18: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

Don’t forget paper!

Page 19: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

Retina…

Generally more work than other

types of media queries because it

generally requires additional

content.

Page 20: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

The hard way:

For <img> tags, just use retina.js

or use SVG, an icon font, or css3.

Page 21: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

The easy way:

Don’t use images for your UI.

Use CSS3 and icon fonts.

Page 22: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

Living on the

grid.

Page 23: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

• Good design tends to happen in a grid

• The Saccadic Reflex

• Mathematical (or at least proportional)

design.

• x-height, golden mean, rhythmic

typography

Page 24: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

<div class=“12-col”>

<div class=“6-col”>

<div class=“3-col”>

Page 25: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

<div class=“12-col”>

<div class=“8-col”>

<div class=“12-col”>

<div class=“4-col”>

Page 26: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

Not possible. Responsive design changes

only the CSS. You can’t change classes.

You can change how a class acts, but then

you have a “hackish,” “unsemantic”

approach.

Page 27: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

bigCSS.

Page 28: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

• RWD starts to be a lot of CSS

really fast.

• Too much to keep track of.

• Lots of overwriting when using

grids.

• Small changes means potentially

changing many styles.

Page 29: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

CSS pre-processers to the

rescue!

SASS and LESS

Page 30: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

• Sass and Less mostly do the same

thing. Very similar features, slightly

different syntax.

• Great for any css project, even small

ones.

• They are just faster.

Page 31: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

SCSS or Sassy CSS: variables

Page 32: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

SCSS or Sassy CSS:

Include

Page 33: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

SCSS or Sassy CSS: Mixin

Page 34: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

SCSS or Sassy CSS: Functions

Page 35: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

So… back to our grid problem.

Page 36: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

Remembering Our Past

or:

How I Learnedto Stop

Worrying andLove IE8

Page 37: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

All this CSS3 stuff is great… but:

I need to support IE8

:’(

Page 38: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

Sass Media Query Mixin+ Sass Global Variable+ IE conditional comments

IE8 stylesheet with only

desktop styles

Page 39: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

CSS3 PIEAlmost as good as real pie.

Page 40: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

PIE uses javascript to simulate CSS3 properties.

Time and bandwidth saved. No more image

based gradients, rounded corners, or box-

shadows.

Page 41: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

Work smart. Not

hard.There are some fantastic Sass, LESS,

and general responsive frameworks

available.

Page 42: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

Compass (think: jQuery for CSS),

Semantic.gs, Gumby,

Skeleton, Bootstrap, Etc.

Page 43: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

Bringing to

SharePoint.via SharePoint Designer

Page 44: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

• SharePoint has a lot of built in structure.

• Important to understand what SharePoint is going to give you.

• Get the snippits that you will need before writing your HTML

Page 45: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners
Page 46: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners
Page 47: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

• For most things on a simple page or site-collection, no .NET experience is required.

• However, sometimes you really just need a developer.

Page 48: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

Device ChannelsBetter than RWD?

Page 49: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

• Actually, yes. In terms of robustness, device channels can do everything RWD can and more.

• RWD only changes the way the HTML is displayed, Device Channels allow for separate HTML.

Page 50: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

• Device channels require more work.

• Are harder to maintain.

• Limited to publishing pages.

• Mix the two: HTML handled by device

channels and CSS handled by RWD?

Page 51: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

Case Study: STLSUG

Website

Page 52: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

• Join for the group

• Check upcoming events

• Get the slide decks from past events

• Share Documents

Define User Goals

Page 53: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners
Page 54: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners
Page 55: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners

Summary

• Content First!

• User experience, not device experience

• Be future friendly, start using

CSS3/HTML5

• Use pre-processors to help manage

code

• Conditionally load if possible (device

channels).

Page 56: Responsive Web Design Nuts & Bolts David Weedon - UI/UX Designer, Covenant Technology Partners