mobile and responsive design with sass

58
Mobile and Responsive Design with Sass

Upload: nyccamp

Post on 17-May-2015

2.552 views

Category:

Technology


4 download

DESCRIPTION

Is your site ready for the mobile web? Are you sure? Go ahead, check it on your phone, and your kid's phone, and a tablet, and some Android dealies, and a Bleakberry. And a TV or two. I'll wait. That was an eye-opener, right? Web design and front end development has never been more complex than it is now, and it's likely to get worse before it gets better. Should you design your site "Mobile First"? How about "Adaptive" or "Responsive"? What's the difference between those again? I want to talk about why you might want to choose these approaches to your project. CSS is also not really up to the task of managing all this complexity. Sure, it *can* do it, but pure CSS strains almost to the breaking point under the pressure. So let's welcome Sass to the party. Sass is a CSS preprocessor that gives CSS authors the tools we've been aching for in creating and managing large and complex CSS projects. We'll cover a few of the Sass basics, but the real value here is in the more sophisticated tools that let you manage all the moving parts necessary in creating all this new-fangled wizardry. We'll cover: - Mobile First - Adaptive Design - Responsive Design - Stand-alone mobile options - Sass - Mobile-focused tools - Compass - Survival Kit - Susy

TRANSCRIPT

Page 1: Mobile and Responsive Design with Sass

Mobile and Responsive Design

with Sass

Page 2: Mobile and Responsive Design with Sass

What is a Sass, and How Will I Know if

I’m Shaking it?

Page 3: Mobile and Responsive Design with Sass

I

Page 4: Mobile and Responsive Design with Sass

Mobile First

Page 5: Mobile and Responsive Design with Sass

What Is The Mobile Web?

Page 7: Mobile and Responsive Design with Sass

Most Personal Computer

Page 8: Mobile and Responsive Design with Sass

Most Personal Computer

Page 9: Mobile and Responsive Design with Sass

Constraints: Space, Attention

• Small screens

• Frequent and sporadic use. Distracted

Page 10: Mobile and Responsive Design with Sass

Capabilities: New Api's

• Geolocation

• Touch

• Camera

• Orientation

Page 11: Mobile and Responsive Design with Sass

Your phone sees you when you’re

sleeping.

Page 12: Mobile and Responsive Design with Sass

II

Page 13: Mobile and Responsive Design with Sass

Responsive Web Design

Page 14: Mobile and Responsive Design with Sass

My Website Totally Shrinks On Phones

Page 15: Mobile and Responsive Design with Sass

Fluid GridsProportional grids

Use %, not px

Page 16: Mobile and Responsive Design with Sass

Fluid Imagessrc set

The future. Get used to it?

Page 17: Mobile and Responsive Design with Sass

Fluid Imagessimple css

The best we have. For now.

Page 18: Mobile and Responsive Design with Sass

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) { … }

Page 19: Mobile and Responsive Design with Sass

Current Properties• width

• height

• device-width

• device-height

• orientation

• aspect-ratio

• device-aspect-ratio

• color

• color-index

• monochrome

• resolution

• scan

• grid

Page 20: Mobile and Responsive Design with Sass

Feature Detection

Page 21: Mobile and Responsive Design with Sass

Modernizr

• modernizr.com

• use javascript to test for browser features

• write a css class to <html> if that feature exists

Page 22: Mobile and Responsive Design with Sass

Modernizr

Page 23: Mobile and Responsive Design with Sass

III

Page 24: Mobile and Responsive Design with Sass

SassCSS Preprocessor

Adds more power to the process of writing CSS

sass-lang.com

Page 25: Mobile and Responsive Design with Sass

Variables

Sass

Compiled CSS

Page 26: Mobile and Responsive Design with Sass

Nesting

Sass

Compiled CSS

Page 27: Mobile and Responsive Design with Sass

Mixins

Sass Mixin

Compiled CSSSass

Page 28: Mobile and Responsive Design with Sass

Extend

Use in Sass

Compiled CSS

Setup Extendables

Page 29: Mobile and Responsive Design with Sass

Media Bubbling

Compiled CSSSass

Page 30: Mobile and Responsive Design with Sass

CompassUtilities

CSS3

Images

Sprites

More

Page 31: Mobile and Responsive Design with Sass

Compass Extensions

Page 32: Mobile and Responsive Design with Sass

Sassy ButtonsThat fancy CSS3 button look with

none of the work

http://jaredhardy.com/sassy-buttons/

Page 33: Mobile and Responsive Design with Sass

Modular ScaleCalculate typographic scales

github.com/scottkellum/modular-scale

Page 34: Mobile and Responsive Design with Sass

Survival KitA Toolset for Designing Web Sites

in the Browser

thecodingdesigner.com/survivalkit

Page 35: Mobile and Responsive Design with Sass

SusyResponsive grids for Compass

susy.oddbird.net

Page 36: Mobile and Responsive Design with Sass

Singularity GridALPHA

Infinite possibilities. Impossibly small.

singularity.gs

Page 37: Mobile and Responsive Design with Sass

BreakpointReally simple media queries in Sass

breakpoint-sass.com

Page 38: Mobile and Responsive Design with Sass

Crazy thingssassy mother effing text shadow

sassymothereffingtextshadow.com

Page 39: Mobile and Responsive Design with Sass
Page 40: Mobile and Responsive Design with Sass
Page 41: Mobile and Responsive Design with Sass

IV

Page 42: Mobile and Responsive Design with Sass

DrupalGreat Content Management System.

Bad Templates.

Page 43: Mobile and Responsive Design with Sass

What is the best starter theme for responsive web

design in Drupal?

Page 44: Mobile and Responsive Design with Sass
Page 45: Mobile and Responsive Design with Sass
Page 46: Mobile and Responsive Design with Sass

Avoid Cookie Cutters &

Assertive Frameworks

Page 47: Mobile and Responsive Design with Sass

V

Page 48: Mobile and Responsive Design with Sass

Putting It Together

Page 49: Mobile and Responsive Design with Sass

GoalsCustom designs for your needs and content.

Create the mobile experience first.

Have our content meet any device.

Be future friendly.

Acknowledge and embrace unpredictability.

Page 50: Mobile and Responsive Design with Sass

Custom Is Your FriendStart with no theme,

or a “bare-bones” theme.

Page 51: Mobile and Responsive Design with Sass

Zen + Zen Grids

• Zen - Tried and tested in the Drupal

• Zen Grids

Page 52: Mobile and Responsive Design with Sass

Survival KitDesigned 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

Page 53: Mobile and Responsive Design with Sass

Demo

Page 54: Mobile and Responsive Design with Sass

The Future

Page 55: Mobile and Responsive Design with Sass

Survival Kit ModuleWill show the style guide pages from

the standard Survival Kit

Page 56: Mobile and Responsive Design with Sass

Sass ConfSpring 2013

sassconf.com

Page 57: Mobile and Responsive Design with Sass

Sass TrainingsFollow

@GoTeamSass and @Zivtech

for details.

Page 58: Mobile and Responsive Design with Sass

Questions & Contact

Zivtech zivtech.com

Mason Wendell - Creative Director

Twitter, Dribbble & Drupal: codingdesigner

github: canarymason