Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Responsive Design Beyond Frameworks

Responsive Design Beyond Frameworks

Frameworks are the easy way out when doing responsive design. But what if you need more?

friedcell

April 14, 2013
Tweet

More Decks by friedcell

Other Decks in Technology

Transcript

  1. Me... • Marko Mrdjenovič aka. friedcell • UX-conscious web developer

    • Parsek, Zemanta, DeckReport • ...now CTO @ CubeSensors
  2. “Web design is responsive design, Responsive Web Design is web

    design, done right.” Andy Clarke, 2011 http://stuffandnonsense.co.uk/blog/about/i_dont_care_about_responsive_web_design/
  3. The idea Create one version of the site design, code

    & content that responds to the limitations of the environment it’s viewed in.
  4. The idea Create one version of the site design, code

    & content that responds to the limitations of the environment it’s viewed in. NOT THE DEVICE!
  5. Devices • Desktop computer • Laptop • Tablet (iPad &

    others) • Phone (iPhone, Android & others)
  6. Contexts • In a bar while waiting for others •

    On a bus on your way to work • In a queue at a post office • At home on a couch • During lunch
  7. Goals • Who are your users? • What are their

    needs? • How are you meeting the needs? • SMART goals
  8. Content • What kinds of content do you need? •

    What is the tone of the content? • How will it be adapted to different sizes? • How is the content structured?
  9. Responsive System A system that defines the rules which govern

    the change of the layout with respect to the viewport.
  10. Responsive System A system that defines the rules which govern

    the change of the layout with respect to the viewport. NOT THE DEVICE!
  11. Content! Look at the content and add breakpoints where it

    makes sense for content to break. Then fine-tune the sizes that are important in terms of visitors.
  12. @media rules body {font-size:87.5%;} @media screen and (min-width:600px) { body

    {font-size:100%;} } @media screen and (min-width:900px) { body {font-size:112.5%} }
  13. @media rules body {font-size:87.5%;} @media screen and (min-width:900px) { body

    {font-size:112.5%} } @media screen and (min-width:600px) { body {font-size:100%;} } NEVER APPLIED
  14. @media rules body {font-size:87.5%;} @media screen and (min-width:900px) { body

    {font-size:112.5%} } @media screen and (min-width:600px) and (max-width:899px) { body {font-size:100%;} }
  15. @media rules body {font-size:87.5%;letter-spacing:1px;} @media screen and (min-width:900px) { body

    {font-size:112.5%;letter-spacing:0;} } @media screen and (min-width:600px) and (max-width:899px) { body {font-size:100%;letter-spacing:0;} }
  16. @media rules @media screen and (-webkit-min-device-pixel-ratio: 1.5), screen and (min--moz-device-pixel-ratio:

    1.5), screen and (-o-min-device-pixel-ratio: 3/2), screen and (min-device-pixel-ratio: 1.5), screen and (min-resolution: 144dpi), screen and (min-resolution: 1.5dppx) { /* retina styles here */ }
  17. Feature detection • Modernizr • DIY from Modernizr source •

    Often not needed because of CSS/HTML features
  18. Fixed / fluid / elastic • Fixed is obsolete •

    Fluid is stuff you should use most • Elastic used for text-based UI
  19. Intrinsic ratios .wrapper { position: relative; height:0;padding-bottom:75%; } .element {

    position: absolute; top:0;left:0;width:100%;height:100%; } http://alistapart.com/article/creating-intrinsic-ratios-for-video
  20. Other options • Use background images with background-size cover /

    contain • Use fixed sized images inside overflow:hidden responsive containers • ...
  21. More • Responsive Web Design - Ethan Marcotte • Responsive

    Patterns • Responsive Web Design Weekly
  22. How to decide • Write down things users do on

    the desktop version & mobile version • Order them by priority • Compare • If fuzzy do m., otherwise responsive http://www.cennydd.co.uk/2013/the-gradient-chart
  23. Even if you go m. build it responsive, not all

    phones have the same resolution.
  24. "You've got to start with the customer experience and work

    back toward the technology, not the other way around." Steve Jobs, 1997