SlideShare ist ein Scribd-Unternehmen logo
1 von 70
Downloaden Sie, um offline zu lesen
Ghaida Zahran, from ZURB
zurb.com/speak
foundation.zurb.com
October 5, 2013 for Silicon Valley Code Camp
Design for mobile, scale to desktop and beyond!
3 Ways to Go Mobile First with Responsive Design
Everything changed when real mobile web browsing entered the scene with the first iPhone. We started looking at our pages
differently.
Before responsive design, we could either serve up a mobile-specific page or simply make sure that the desktop-optimized page
isn't broken on the phone.
Let’s not do that. Responsive design!
Why Go Mobile First?
Shift your strategy, process, and implementation for Mobile First.
We all know responsive design is where its at, but Mobile-First responsive design presents an opportunity to learn about what
matters most to our customers.
Simplify your design process
Build super focused products
Improve your product performance
What are the advantages?
Simplify your design process
Build super focused products
Improve your product performance
Simplify your design process
Build super focused products
Improve your product performance
Strategy
Progressive Enhancement
Vs.
Graceful Degradation
Graceful degradation and progressive enhancement aren't new concepts. If you’ve been building pages for some time now then
you’ve been following these methodologies in your browser QA. For example, how a site design might gracefully degrade for
viewing on IE6 (ARGH!)
Progressive Enhancement
The New Hotness
With Mobile First, we're designing with progressive enhancement in mind. We start off with minimal, essential content and
presentation, and work our way up, adding more content and presentational components for larger screens.
So you go from this...
... To this.
And this...
... To this.
And this...
You get the picture.
Strategy
Progressive Enhancement
Design for mobile first and progressively enhance your layouts for larger screens.
Process
Design flows, not pages.
How did the user end up on a page? Did they click a link you tweeted? Or browse from your homepage?
Design flows, not pages, to effectively guide your users to a task. That way you can figure out what they’re expecting before and
after they are on a particular page, making your design more meaningful.
Bring your wireframes to life with clickable prototypes.
At a certain point you will need to create wireframes. Find gaps in your flow by linking them up into a clickable prototype.
Mobile First is user first.
Mobile First is a return to user-centered design.
By eliminating unnecessary content for mobile, we can maintain that simplicity for larger devices as well making the site simpler
for everyone.
Mobile is the ultimate design constraint.
Design is defined by constraints.
Design Constraints
Design is defined by constraints. These constraints can manifest in any number of forms including time, money, or medium.
Design Constraints Time
Don’t waste your customers’ time. Get to the point, and front-up your primary content.
Design Constraints Money
Reduce your content to the essentials to decrease data usage. Use techniques such as the Interchange plugin to swap in smaller
images on mobile.
Design Constraints Money
Interchange
Interchange is pretty great because it lets you have big awesome images on desktop or high-resolution devices
Design Constraints Medium
Every pixel counts, make sure layouts are easy to read on mobile by using strong contrast and clear typography.
Stay on top of your user’s real-world context.
Research your user. Don’t assume to know how they will use your site. Keep their context in mind and remember that mobile
users will often be distracted by the real world. They could be waiting in line, watching TV
Hopefully not texting and driving.
Hopefully not texting and driving.
Design fast-loading layouts by prioritizing content and optimizing it for small-screen reading.
Process
Design fast-loading layouts by prioritizing content and optimizing it for small-screen reading.
Process
Design flows, not pages
Design fast-loading layouts by prioritizing content and optimizing it for small-screen reading.
Process
Design flows, not pages
Embrace Constraints
Design fast-loading layouts by prioritizing content and optimizing it for small-screen reading.
Process
Design flows, not pages
Embrace Constraints
Keep your user’s context in mind
Design fast-loading layouts by prioritizing content and optimizing it for small-screen reading.
Implementation
Code it up!
Mobile-first coding can seem a little daunting. It’s one thing to start sketching and wireframing mobile pages first, it’s a
completely different beast to code for mobile. But fear not! We’re here to break it down for you nice and easy.
// Small Screen Style
body { color: blue; }
// Large Screen Style
@media only screen (and min-width: 767px) {
body { color: red; }
}
CSS
The most basic rule is to put all your visual styles as well as your base page styles in regular CSS declarations, and place styles
for larger screens in media queries. Crazy, right?
// Small Screen Style
body { color: blue; }
// Large Screen Style
@media only screen (and min-width: 768px) {
body { color: red; }
}
CSS
Use min-width instead of max-width.
Get sassy.
// Define your media query variables
$small: only screen and (min-width: 20em);
$medium: only screen and (min-width: 48em);
$large: only screen and (min-width: 80em);
// Use your variables in media queries
@media #{$small} {
...
}
Sass
Sass is a pretty cool tool. Use it together with compass to define your media queries and make it simple to code up responsive
sites.
Sass + Media Queries = <3
nav {
background: pink;
@media #{$large} {
background: blue;
}
}
Sass
You can even use media queries inside a style declaration!
Sass + Media Queries = <3
nav {
background: pink;
@media #{$large} {
background: blue;
}
}
Sass
nav {
background: pink;
}
@media only screen and (min-width: 80em) {
nav {
background: blue;
}
}
CSS Output
You can even use media queries inside a style declaration!
Ems are your friend.
$small: only screen and (min-width: 20em);
Sass
Ems are based on your base font size so it keeps all sizes proportional to your content.
Let the Yeti do the heavy lifting.
We work hard to keep Foundation reasonably cutting edge. We decided it was time to change up our thinking and commit to
going Mobile First, starting with Foundation 4.
Media Queries
The Grid
Support
Media Queries
The Grid
Support
@media #{$small} { }
Sass
@media only screen and (min-width: 48em) { }
CSS
min-width is used for media query breakpoints because we’re designing up. For example, the $small screen size variable is for
screens sized 768 pixels and larger.
Media Queries
The Grid
Support
<div class=”small-4 large-8 columns”>
 <img src=”grumpycat.jpg”>
</div>
HTML
Media Queries
The Grid
Support
font-size: em-calc(21);
Sass
font-size: 1.313em;
CSS Output
We wrote a handy function that calculates the correct em value for you in Foundation!
Media Queries
The Grid
Support
IE8
Going Mobile First means that any non-mobile styles will have to be placed inside media queries, which IE8 doesn’t support.
Ditch IE8 if you’re going Mobile First. Sell your clients and bosses on the benefits of Mobile First design.
Implementation
Place Non-Mobile Styles in Media Queries
Place desktop styles in a media query. Use ems. Use Sass. IE8’s gotta go.
And that’s how you can shift your strategy, process, and implementation for mobile first design.
Recap
And that’s how you can shift your strategy, process, and implementation for mobile first design.
Recap
Strategy: Use progressive enhancement
And that’s how you can shift your strategy, process, and implementation for mobile first design.
Recap
Strategy: Use progressive enhancement
Process: Mobile first design is user-centered
And that’s how you can shift your strategy, process, and implementation for mobile first design.
Recap
Strategy: Use progressive enhancement
Process: Mobile first design is user-centered
Mobile is the ultimate design constraint
And that’s how you can shift your strategy, process, and implementation for mobile first design.
Recap
Strategy: Use progressive enhancement
Process: Mobile first design is user-centered
Mobile is the ultimate design constraint
Implementation: Place non-mobile code in media queries
And that’s how you can shift your strategy, process, and implementation for mobile first design.
Recap
Strategy: Use progressive enhancement
Process: Mobile first design is user-centered
Mobile is the ultimate design constraint
Implementation: Place non-mobile code in media queries
Use sass to streamline your workflow
And that’s how you can shift your strategy, process, and implementation for mobile first design.
Recap
Strategy: Use progressive enhancement
Process: Mobile first design is user-centered
Mobile is the ultimate design constraint
Implementation: Place non-mobile code in media queries
Use sass to streamline your workflow
Use ems to keep your layouts proportional
And that’s how you can shift your strategy, process, and implementation for mobile first design.
Recap
Strategy: Use progressive enhancement
Process: Mobile first design is user-centered
Mobile is the ultimate design constraint
Implementation: Place non-mobile code in media queries
Use sass to streamline your workflow
Use ems to keep your layouts proportional
Let Foundation do the heavy lifting.
And that’s how you can shift your strategy, process, and implementation for mobile first design.
Questions?
And that’s how you can shift your strategy, process, and implementation for mobile first design.
@ZURB
facebook.com/zurb
We’re around, catch us if you can...
ZURB
100 W Rincon Ace
Campbell, CA 95008
ZURB.com
getstarted@zurb.com
(408) 341-0600
See where we’ll be speaking next at zurb.com/speak

Weitere ähnliche Inhalte

Was ist angesagt?

2. production techniques evaluation pro forma(1)
2. production techniques evaluation pro forma(1)2. production techniques evaluation pro forma(1)
2. production techniques evaluation pro forma(1)
jack edwards
 
Yvonne Doll, Designing Content for Usability
Yvonne Doll, Designing Content for UsabilityYvonne Doll, Designing Content for Usability
Yvonne Doll, Designing Content for Usability
webcontent2007
 
Getting Down & Dirty with Responsive Web Design
Getting Down & Dirty with Responsive Web DesignGetting Down & Dirty with Responsive Web Design
Getting Down & Dirty with Responsive Web Design
martinridgway
 

Was ist angesagt? (20)

Interactive Design Basics
Interactive Design Basics Interactive Design Basics
Interactive Design Basics
 
2. production techniques evaluation pro forma(1)
2. production techniques evaluation pro forma(1)2. production techniques evaluation pro forma(1)
2. production techniques evaluation pro forma(1)
 
Yvonne Doll, Designing Content for Usability
Yvonne Doll, Designing Content for UsabilityYvonne Doll, Designing Content for Usability
Yvonne Doll, Designing Content for Usability
 
How to Achieve Product-Market Fit with Rapid Prototyping and User Testing by ...
How to Achieve Product-Market Fit with Rapid Prototyping and User Testing by ...How to Achieve Product-Market Fit with Rapid Prototyping and User Testing by ...
How to Achieve Product-Market Fit with Rapid Prototyping and User Testing by ...
 
CMS Design and Layout Best Practices (v3)
CMS Design and Layout Best Practices (v3)CMS Design and Layout Best Practices (v3)
CMS Design and Layout Best Practices (v3)
 
Website Design Trend 2016
Website Design Trend 2016Website Design Trend 2016
Website Design Trend 2016
 
Getting Down & Dirty with Responsive Web Design
Getting Down & Dirty with Responsive Web DesignGetting Down & Dirty with Responsive Web Design
Getting Down & Dirty with Responsive Web Design
 
Digital Design Trends
Digital Design TrendsDigital Design Trends
Digital Design Trends
 
Hallvarsson & Halvarsson - Webbdesigntrender 2012
Hallvarsson & Halvarsson - Webbdesigntrender 2012Hallvarsson & Halvarsson - Webbdesigntrender 2012
Hallvarsson & Halvarsson - Webbdesigntrender 2012
 
Form Function Class 6, Manila, Philippines 14/11/2015
Form Function Class 6, Manila, Philippines 14/11/2015Form Function Class 6, Manila, Philippines 14/11/2015
Form Function Class 6, Manila, Philippines 14/11/2015
 
Persuading with Powerpoint
Persuading with PowerpointPersuading with Powerpoint
Persuading with Powerpoint
 
Web Design Trends 2013
Web Design Trends 2013Web Design Trends 2013
Web Design Trends 2013
 
Mindmeister Case Study En.Key
Mindmeister Case Study En.KeyMindmeister Case Study En.Key
Mindmeister Case Study En.Key
 
BanrAds Pro Agency-BanrAds Pro Agency Review
BanrAds Pro Agency-BanrAds Pro Agency Review BanrAds Pro Agency-BanrAds Pro Agency Review
BanrAds Pro Agency-BanrAds Pro Agency Review
 
I'll gladly pay you Tuesday for a hamburger today: Managing UX Debt
I'll gladly pay you Tuesday for a hamburger today: Managing UX DebtI'll gladly pay you Tuesday for a hamburger today: Managing UX Debt
I'll gladly pay you Tuesday for a hamburger today: Managing UX Debt
 
Social Media Marketing on the Real-time Web
Social Media Marketing on the Real-time WebSocial Media Marketing on the Real-time Web
Social Media Marketing on the Real-time Web
 
Product Management & Design At Startups
Product Management & Design At StartupsProduct Management & Design At Startups
Product Management & Design At Startups
 
Design & Usability Basics
Design & Usability BasicsDesign & Usability Basics
Design & Usability Basics
 
10 Ideas To Make Your Website Look Nicer | Keyideas Infotech
10 Ideas To Make Your Website Look Nicer | Keyideas Infotech10 Ideas To Make Your Website Look Nicer | Keyideas Infotech
10 Ideas To Make Your Website Look Nicer | Keyideas Infotech
 
Going Mobile First With Drupal
Going Mobile First With DrupalGoing Mobile First With Drupal
Going Mobile First With Drupal
 

Ähnlich wie 3 Ways to Go Mobile First with Responsive Design

2013 ion responsive_design_landingpages
2013 ion responsive_design_landingpages2013 ion responsive_design_landingpages
2013 ion responsive_design_landingpages
Chafik YAHOU
 
Brunch & Learn: Email Design Best Practices for Desktop, Mobile, Tablet & Beyond
Brunch & Learn: Email Design Best Practices for Desktop, Mobile, Tablet & BeyondBrunch & Learn: Email Design Best Practices for Desktop, Mobile, Tablet & Beyond
Brunch & Learn: Email Design Best Practices for Desktop, Mobile, Tablet & Beyond
Act-On Software
 

Ähnlich wie 3 Ways to Go Mobile First with Responsive Design (20)

How to Project-Manage and Implement a Responsive Website
How to Project-Manage and Implement a Responsive WebsiteHow to Project-Manage and Implement a Responsive Website
How to Project-Manage and Implement a Responsive Website
 
Mobile Responsive ​ Website Designing.pdf
Mobile Responsive ​ Website Designing.pdfMobile Responsive ​ Website Designing.pdf
Mobile Responsive ​ Website Designing.pdf
 
2013 ion responsive_design_landingpages
2013 ion responsive_design_landingpages2013 ion responsive_design_landingpages
2013 ion responsive_design_landingpages
 
Progressive Enhancement
Progressive EnhancementProgressive Enhancement
Progressive Enhancement
 
What is Mobile First Design Strategy.pdf
What is Mobile First Design Strategy.pdfWhat is Mobile First Design Strategy.pdf
What is Mobile First Design Strategy.pdf
 
Responsive Web Design Basics
Responsive Web Design BasicsResponsive Web Design Basics
Responsive Web Design Basics
 
How not having a Responsive Website can be Detrimental to your business?
How not having a Responsive Website can be Detrimental to your business?How not having a Responsive Website can be Detrimental to your business?
How not having a Responsive Website can be Detrimental to your business?
 
10 Things You Must Need To Know About Responsive Design.pdf
10 Things You Must Need To Know About Responsive Design.pdf10 Things You Must Need To Know About Responsive Design.pdf
10 Things You Must Need To Know About Responsive Design.pdf
 
Bootstrap 4 Online Training Course Book Sample
Bootstrap 4 Online Training Course Book SampleBootstrap 4 Online Training Course Book Sample
Bootstrap 4 Online Training Course Book Sample
 
Shamit Khemka describes Top 5 web designing trends
Shamit Khemka describes Top 5 web designing trendsShamit Khemka describes Top 5 web designing trends
Shamit Khemka describes Top 5 web designing trends
 
Web Design Trends For 2016
Web Design Trends For 2016Web Design Trends For 2016
Web Design Trends For 2016
 
Introduction | SEO Expate BD Ltd.
Introduction | SEO Expate BD Ltd.Introduction | SEO Expate BD Ltd.
Introduction | SEO Expate BD Ltd.
 
Optimizing Sites for Mobile Devices
Optimizing Sites for Mobile DevicesOptimizing Sites for Mobile Devices
Optimizing Sites for Mobile Devices
 
10 golden rules for website design
10 golden rules for website design10 golden rules for website design
10 golden rules for website design
 
Responsive Design for Landing Pages
Responsive Design for Landing PagesResponsive Design for Landing Pages
Responsive Design for Landing Pages
 
Startup Institute NYC: Styling
Startup Institute NYC: StylingStartup Institute NYC: Styling
Startup Institute NYC: Styling
 
Introduction | SEO Expate BD Ltd.
Introduction | SEO Expate BD Ltd.Introduction | SEO Expate BD Ltd.
Introduction | SEO Expate BD Ltd.
 
Tech Stack & Web App Development For Startups
Tech Stack & Web App Development For StartupsTech Stack & Web App Development For Startups
Tech Stack & Web App Development For Startups
 
Choosing the best front end framework for web development 2020
Choosing the best front end framework for web development 2020Choosing the best front end framework for web development 2020
Choosing the best front end framework for web development 2020
 
Brunch & Learn: Email Design Best Practices for Desktop, Mobile, Tablet & Beyond
Brunch & Learn: Email Design Best Practices for Desktop, Mobile, Tablet & BeyondBrunch & Learn: Email Design Best Practices for Desktop, Mobile, Tablet & Beyond
Brunch & Learn: Email Design Best Practices for Desktop, Mobile, Tablet & Beyond
 

Mehr von ZURB

Mehr von ZURB (20)

Foundation: Prototype to Production
Foundation: Prototype to ProductionFoundation: Prototype to Production
Foundation: Prototype to Production
 
The Future is Responsive
The Future is ResponsiveThe Future is Responsive
The Future is Responsive
 
Building Awesome Products (BayCHI)
Building Awesome Products (BayCHI)Building Awesome Products (BayCHI)
Building Awesome Products (BayCHI)
 
Mobile-First Foundation Design Meetup
Mobile-First Foundation Design MeetupMobile-First Foundation Design Meetup
Mobile-First Foundation Design Meetup
 
ZURB Google Talk
ZURB Google TalkZURB Google Talk
ZURB Google Talk
 
Building Awesome Products (iOS Developers Meetup)
Building Awesome Products (iOS Developers Meetup)Building Awesome Products (iOS Developers Meetup)
Building Awesome Products (iOS Developers Meetup)
 
Plug and Play: A Presentation by Bryan Zmijewski
Plug and Play: A Presentation by Bryan ZmijewskiPlug and Play: A Presentation by Bryan Zmijewski
Plug and Play: A Presentation by Bryan Zmijewski
 
Unmoderated User Testing
Unmoderated User TestingUnmoderated User Testing
Unmoderated User Testing
 
Add a feature? No! Make a New Product
Add a feature? No! Make a New ProductAdd a feature? No! Make a New Product
Add a feature? No! Make a New Product
 
Back to an Email (and Responsive) Future
Back to an Email (and Responsive) FutureBack to an Email (and Responsive) Future
Back to an Email (and Responsive) Future
 
Lessons Learned from Building a Web Framework
Lessons Learned from Building a Web FrameworkLessons Learned from Building a Web Framework
Lessons Learned from Building a Web Framework
 
9 Ways to Manipulate People With Design
9 Ways to Manipulate People With Design9 Ways to Manipulate People With Design
9 Ways to Manipulate People With Design
 
5 Ways Thinking Content-first Will Save Your Butt
5 Ways Thinking Content-first Will Save Your Butt5 Ways Thinking Content-first Will Save Your Butt
5 Ways Thinking Content-first Will Save Your Butt
 
3 Ways You Can Give and Get Good Design Feedback
3 Ways You Can Give and Get Good Design Feedback3 Ways You Can Give and Get Good Design Feedback
3 Ways You Can Give and Get Good Design Feedback
 
Everyone Sucks at Feedback
Everyone Sucks at FeedbackEveryone Sucks at Feedback
Everyone Sucks at Feedback
 
Super Awesome Interactions with jQuery
Super Awesome Interactions with jQuerySuper Awesome Interactions with jQuery
Super Awesome Interactions with jQuery
 
Design That Drives Action
Design That Drives ActionDesign That Drives Action
Design That Drives Action
 
Building Pageless Apps with Rails and Backbone.js
Building Pageless Apps with Rails and Backbone.jsBuilding Pageless Apps with Rails and Backbone.js
Building Pageless Apps with Rails and Backbone.js
 
Bringing Email Development from 1996 to 2016
Bringing Email Development from 1996 to 2016Bringing Email Development from 1996 to 2016
Bringing Email Development from 1996 to 2016
 
9 Ways to Guide Users With Design
9 Ways to Guide Users With Design9 Ways to Guide Users With Design
9 Ways to Guide Users With Design
 

Kürzlich hochgeladen

cholilithiasis, cholecystitis,gall bladdder .pdf
cholilithiasis, cholecystitis,gall bladdder .pdfcholilithiasis, cholecystitis,gall bladdder .pdf
cholilithiasis, cholecystitis,gall bladdder .pdf
RawalRafiqLeghari
 
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman MuscatAbortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion pills in Kuwait Cytotec pills in Kuwait
 
怎样办理莫纳什大学毕业证(Monash毕业证书)成绩单留信认证
怎样办理莫纳什大学毕业证(Monash毕业证书)成绩单留信认证怎样办理莫纳什大学毕业证(Monash毕业证书)成绩单留信认证
怎样办理莫纳什大学毕业证(Monash毕业证书)成绩单留信认证
ehyxf
 
怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证
怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证
怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证
eeanqy
 
Madhyamgram \ (Genuine) Escort Service Kolkata | Service-oriented sexy call g...
Madhyamgram \ (Genuine) Escort Service Kolkata | Service-oriented sexy call g...Madhyamgram \ (Genuine) Escort Service Kolkata | Service-oriented sexy call g...
Madhyamgram \ (Genuine) Escort Service Kolkata | Service-oriented sexy call g...
HyderabadDolls
 
Q4-Trends-Networks-Module-3.pdfqquater days sheets123456789
Q4-Trends-Networks-Module-3.pdfqquater days sheets123456789Q4-Trends-Networks-Module-3.pdfqquater days sheets123456789
Q4-Trends-Networks-Module-3.pdfqquater days sheets123456789
CristineGraceAcuyan
 
Top profile Call Girls In fatehgarh [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In fatehgarh [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In fatehgarh [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In fatehgarh [ 7014168258 ] Call Me For Genuine Models...
gajnagarg
 
Top profile Call Girls In Mysore [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Mysore [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Mysore [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Mysore [ 7014168258 ] Call Me For Genuine Models We...
gajnagarg
 
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
instagramfab782445
 
一比一原版(ANU毕业证书)澳大利亚国立大学毕业证原件一模一样
一比一原版(ANU毕业证书)澳大利亚国立大学毕业证原件一模一样一比一原版(ANU毕业证书)澳大利亚国立大学毕业证原件一模一样
一比一原版(ANU毕业证书)澳大利亚国立大学毕业证原件一模一样
yhavx
 

Kürzlich hochgeladen (20)

cholilithiasis, cholecystitis,gall bladdder .pdf
cholilithiasis, cholecystitis,gall bladdder .pdfcholilithiasis, cholecystitis,gall bladdder .pdf
cholilithiasis, cholecystitis,gall bladdder .pdf
 
Raebareli Girl Whatsapp Number 📞 8617370543 | Girls Number for Friendship
Raebareli Girl Whatsapp Number 📞 8617370543 | Girls Number for FriendshipRaebareli Girl Whatsapp Number 📞 8617370543 | Girls Number for Friendship
Raebareli Girl Whatsapp Number 📞 8617370543 | Girls Number for Friendship
 
Independent Escorts Goregaon WhatsApp +91-9930687706, Best Service
Independent Escorts Goregaon WhatsApp +91-9930687706, Best ServiceIndependent Escorts Goregaon WhatsApp +91-9930687706, Best Service
Independent Escorts Goregaon WhatsApp +91-9930687706, Best Service
 
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman MuscatAbortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
 
怎样办理莫纳什大学毕业证(Monash毕业证书)成绩单留信认证
怎样办理莫纳什大学毕业证(Monash毕业证书)成绩单留信认证怎样办理莫纳什大学毕业证(Monash毕业证书)成绩单留信认证
怎样办理莫纳什大学毕业证(Monash毕业证书)成绩单留信认证
 
Essential UI/UX Design Principles: A Comprehensive Guide
Essential UI/UX Design Principles: A Comprehensive GuideEssential UI/UX Design Principles: A Comprehensive Guide
Essential UI/UX Design Principles: A Comprehensive Guide
 
怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证
怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证
怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证
 
Just Call Vip call girls Fatehpur Escorts ☎️8617370543 Two shot with one girl...
Just Call Vip call girls Fatehpur Escorts ☎️8617370543 Two shot with one girl...Just Call Vip call girls Fatehpur Escorts ☎️8617370543 Two shot with one girl...
Just Call Vip call girls Fatehpur Escorts ☎️8617370543 Two shot with one girl...
 
Madhyamgram \ (Genuine) Escort Service Kolkata | Service-oriented sexy call g...
Madhyamgram \ (Genuine) Escort Service Kolkata | Service-oriented sexy call g...Madhyamgram \ (Genuine) Escort Service Kolkata | Service-oriented sexy call g...
Madhyamgram \ (Genuine) Escort Service Kolkata | Service-oriented sexy call g...
 
Pondicherry Escorts Service Girl ^ 9332606886, WhatsApp Anytime Pondicherry
Pondicherry Escorts Service Girl ^ 9332606886, WhatsApp Anytime PondicherryPondicherry Escorts Service Girl ^ 9332606886, WhatsApp Anytime Pondicherry
Pondicherry Escorts Service Girl ^ 9332606886, WhatsApp Anytime Pondicherry
 
Dahisar Comfortable Call Girls ,09167354423,Mira Road Model Call Girls
Dahisar Comfortable Call Girls ,09167354423,Mira Road Model Call GirlsDahisar Comfortable Call Girls ,09167354423,Mira Road Model Call Girls
Dahisar Comfortable Call Girls ,09167354423,Mira Road Model Call Girls
 
The hottest UI and UX Design Trends 2024
The hottest UI and UX Design Trends 2024The hottest UI and UX Design Trends 2024
The hottest UI and UX Design Trends 2024
 
Nishatganj ? Book Call Girls in Lucknow | Book 9548273370 Extreme Naughty Cal...
Nishatganj ? Book Call Girls in Lucknow | Book 9548273370 Extreme Naughty Cal...Nishatganj ? Book Call Girls in Lucknow | Book 9548273370 Extreme Naughty Cal...
Nishatganj ? Book Call Girls in Lucknow | Book 9548273370 Extreme Naughty Cal...
 
Q4-Trends-Networks-Module-3.pdfqquater days sheets123456789
Q4-Trends-Networks-Module-3.pdfqquater days sheets123456789Q4-Trends-Networks-Module-3.pdfqquater days sheets123456789
Q4-Trends-Networks-Module-3.pdfqquater days sheets123456789
 
Top profile Call Girls In fatehgarh [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In fatehgarh [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In fatehgarh [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In fatehgarh [ 7014168258 ] Call Me For Genuine Models...
 
LANDSCAPE ARCHITECTURE PORTFOLIO - MAREK MITACEK
LANDSCAPE ARCHITECTURE PORTFOLIO - MAREK MITACEKLANDSCAPE ARCHITECTURE PORTFOLIO - MAREK MITACEK
LANDSCAPE ARCHITECTURE PORTFOLIO - MAREK MITACEK
 
NO1 Top Pakistani Amil Baba Real Amil baba In Pakistan Najoomi Baba in Pakist...
NO1 Top Pakistani Amil Baba Real Amil baba In Pakistan Najoomi Baba in Pakist...NO1 Top Pakistani Amil Baba Real Amil baba In Pakistan Najoomi Baba in Pakist...
NO1 Top Pakistani Amil Baba Real Amil baba In Pakistan Najoomi Baba in Pakist...
 
Top profile Call Girls In Mysore [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Mysore [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Mysore [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Mysore [ 7014168258 ] Call Me For Genuine Models We...
 
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
 
一比一原版(ANU毕业证书)澳大利亚国立大学毕业证原件一模一样
一比一原版(ANU毕业证书)澳大利亚国立大学毕业证原件一模一样一比一原版(ANU毕业证书)澳大利亚国立大学毕业证原件一模一样
一比一原版(ANU毕业证书)澳大利亚国立大学毕业证原件一模一样
 

3 Ways to Go Mobile First with Responsive Design

  • 1. Ghaida Zahran, from ZURB zurb.com/speak foundation.zurb.com October 5, 2013 for Silicon Valley Code Camp Design for mobile, scale to desktop and beyond! 3 Ways to Go Mobile First with Responsive Design
  • 2. Everything changed when real mobile web browsing entered the scene with the first iPhone. We started looking at our pages differently.
  • 3. Before responsive design, we could either serve up a mobile-specific page or simply make sure that the desktop-optimized page isn't broken on the phone.
  • 4. Let’s not do that. Responsive design!
  • 5. Why Go Mobile First?
  • 6. Shift your strategy, process, and implementation for Mobile First. We all know responsive design is where its at, but Mobile-First responsive design presents an opportunity to learn about what matters most to our customers.
  • 7. Simplify your design process Build super focused products Improve your product performance What are the advantages?
  • 8. Simplify your design process Build super focused products Improve your product performance
  • 9. Simplify your design process Build super focused products Improve your product performance
  • 11. Progressive Enhancement Vs. Graceful Degradation Graceful degradation and progressive enhancement aren't new concepts. If you’ve been building pages for some time now then you’ve been following these methodologies in your browser QA. For example, how a site design might gracefully degrade for viewing on IE6 (ARGH!)
  • 12. Progressive Enhancement The New Hotness With Mobile First, we're designing with progressive enhancement in mind. We start off with minimal, essential content and presentation, and work our way up, adding more content and presentational components for larger screens.
  • 13. So you go from this...
  • 18. You get the picture.
  • 19. Strategy Progressive Enhancement Design for mobile first and progressively enhance your layouts for larger screens.
  • 21. Design flows, not pages. How did the user end up on a page? Did they click a link you tweeted? Or browse from your homepage?
  • 22. Design flows, not pages, to effectively guide your users to a task. That way you can figure out what they’re expecting before and after they are on a particular page, making your design more meaningful.
  • 23. Bring your wireframes to life with clickable prototypes. At a certain point you will need to create wireframes. Find gaps in your flow by linking them up into a clickable prototype.
  • 24. Mobile First is user first. Mobile First is a return to user-centered design.
  • 25. By eliminating unnecessary content for mobile, we can maintain that simplicity for larger devices as well making the site simpler for everyone.
  • 26. Mobile is the ultimate design constraint. Design is defined by constraints.
  • 27. Design Constraints Design is defined by constraints. These constraints can manifest in any number of forms including time, money, or medium.
  • 28. Design Constraints Time Don’t waste your customers’ time. Get to the point, and front-up your primary content.
  • 29.
  • 30.
  • 31.
  • 32. Design Constraints Money Reduce your content to the essentials to decrease data usage. Use techniques such as the Interchange plugin to swap in smaller images on mobile.
  • 33. Design Constraints Money Interchange Interchange is pretty great because it lets you have big awesome images on desktop or high-resolution devices
  • 34. Design Constraints Medium Every pixel counts, make sure layouts are easy to read on mobile by using strong contrast and clear typography.
  • 35.
  • 36.
  • 37. Stay on top of your user’s real-world context. Research your user. Don’t assume to know how they will use your site. Keep their context in mind and remember that mobile users will often be distracted by the real world. They could be waiting in line, watching TV
  • 38. Hopefully not texting and driving.
  • 39. Hopefully not texting and driving.
  • 40. Design fast-loading layouts by prioritizing content and optimizing it for small-screen reading.
  • 41. Process Design fast-loading layouts by prioritizing content and optimizing it for small-screen reading.
  • 42. Process Design flows, not pages Design fast-loading layouts by prioritizing content and optimizing it for small-screen reading.
  • 43. Process Design flows, not pages Embrace Constraints Design fast-loading layouts by prioritizing content and optimizing it for small-screen reading.
  • 44. Process Design flows, not pages Embrace Constraints Keep your user’s context in mind Design fast-loading layouts by prioritizing content and optimizing it for small-screen reading.
  • 46. Code it up! Mobile-first coding can seem a little daunting. It’s one thing to start sketching and wireframing mobile pages first, it’s a completely different beast to code for mobile. But fear not! We’re here to break it down for you nice and easy.
  • 47. // Small Screen Style body { color: blue; } // Large Screen Style @media only screen (and min-width: 767px) { body { color: red; } } CSS The most basic rule is to put all your visual styles as well as your base page styles in regular CSS declarations, and place styles for larger screens in media queries. Crazy, right?
  • 48. // Small Screen Style body { color: blue; } // Large Screen Style @media only screen (and min-width: 768px) { body { color: red; } } CSS Use min-width instead of max-width.
  • 49. Get sassy. // Define your media query variables $small: only screen and (min-width: 20em); $medium: only screen and (min-width: 48em); $large: only screen and (min-width: 80em); // Use your variables in media queries @media #{$small} { ... } Sass Sass is a pretty cool tool. Use it together with compass to define your media queries and make it simple to code up responsive sites.
  • 50. Sass + Media Queries = <3 nav { background: pink; @media #{$large} { background: blue; } } Sass You can even use media queries inside a style declaration!
  • 51. Sass + Media Queries = <3 nav { background: pink; @media #{$large} { background: blue; } } Sass nav { background: pink; } @media only screen and (min-width: 80em) { nav { background: blue; } } CSS Output You can even use media queries inside a style declaration!
  • 52. Ems are your friend. $small: only screen and (min-width: 20em); Sass Ems are based on your base font size so it keeps all sizes proportional to your content.
  • 53. Let the Yeti do the heavy lifting. We work hard to keep Foundation reasonably cutting edge. We decided it was time to change up our thinking and commit to going Mobile First, starting with Foundation 4.
  • 55. Media Queries The Grid Support @media #{$small} { } Sass @media only screen and (min-width: 48em) { } CSS min-width is used for media query breakpoints because we’re designing up. For example, the $small screen size variable is for screens sized 768 pixels and larger.
  • 56. Media Queries The Grid Support <div class=”small-4 large-8 columns”>  <img src=”grumpycat.jpg”> </div> HTML
  • 57. Media Queries The Grid Support font-size: em-calc(21); Sass font-size: 1.313em; CSS Output We wrote a handy function that calculates the correct em value for you in Foundation!
  • 58. Media Queries The Grid Support IE8 Going Mobile First means that any non-mobile styles will have to be placed inside media queries, which IE8 doesn’t support. Ditch IE8 if you’re going Mobile First. Sell your clients and bosses on the benefits of Mobile First design.
  • 59. Implementation Place Non-Mobile Styles in Media Queries Place desktop styles in a media query. Use ems. Use Sass. IE8’s gotta go.
  • 60. And that’s how you can shift your strategy, process, and implementation for mobile first design.
  • 61. Recap And that’s how you can shift your strategy, process, and implementation for mobile first design.
  • 62. Recap Strategy: Use progressive enhancement And that’s how you can shift your strategy, process, and implementation for mobile first design.
  • 63. Recap Strategy: Use progressive enhancement Process: Mobile first design is user-centered And that’s how you can shift your strategy, process, and implementation for mobile first design.
  • 64. Recap Strategy: Use progressive enhancement Process: Mobile first design is user-centered Mobile is the ultimate design constraint And that’s how you can shift your strategy, process, and implementation for mobile first design.
  • 65. Recap Strategy: Use progressive enhancement Process: Mobile first design is user-centered Mobile is the ultimate design constraint Implementation: Place non-mobile code in media queries And that’s how you can shift your strategy, process, and implementation for mobile first design.
  • 66. Recap Strategy: Use progressive enhancement Process: Mobile first design is user-centered Mobile is the ultimate design constraint Implementation: Place non-mobile code in media queries Use sass to streamline your workflow And that’s how you can shift your strategy, process, and implementation for mobile first design.
  • 67. Recap Strategy: Use progressive enhancement Process: Mobile first design is user-centered Mobile is the ultimate design constraint Implementation: Place non-mobile code in media queries Use sass to streamline your workflow Use ems to keep your layouts proportional And that’s how you can shift your strategy, process, and implementation for mobile first design.
  • 68. Recap Strategy: Use progressive enhancement Process: Mobile first design is user-centered Mobile is the ultimate design constraint Implementation: Place non-mobile code in media queries Use sass to streamline your workflow Use ems to keep your layouts proportional Let Foundation do the heavy lifting. And that’s how you can shift your strategy, process, and implementation for mobile first design.
  • 69. Questions? And that’s how you can shift your strategy, process, and implementation for mobile first design.
  • 70. @ZURB facebook.com/zurb We’re around, catch us if you can... ZURB 100 W Rincon Ace Campbell, CA 95008 ZURB.com getstarted@zurb.com (408) 341-0600 See where we’ll be speaking next at zurb.com/speak