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

Mobile First Theming with Omega Base Theme

Tory Trone
December 20, 2011

Mobile First Theming with Omega Base Theme

Building Sites from Mobile to Desktop using Drupal 7 and the Omega Base Theme. Presentation given at the monthly Sacramento Drupal Users Group. Watch the presentation at http://torytrone.com/blog/mobile-first-theming-omega

Tory Trone

December 20, 2011
Tweet

Other Decks in Design

Transcript

  1. BEFORE WE DIVE IN • Mobile First • Some PITFALLS

    (WARNING: There Be Dragons!) • Responsive vs Adaptive Design
  2. “ Losing 80% of your screen space forces you to

    focus. Mobile First - Luke Wroblewski www.lukew.com/ff/entry.asp?933
  3. Mobile First Tenants • Cut out the Clutter • What’s

    the Most Important Elements? • Work for all Devices • Progressive Enhancement
  4. “ [P]redicting that within the next five years “more users

    will connect to the Internet over mobile devices than desktop PCs.” Mary Meeker of Morgan Stanley http://gigaom.com/2010/04/12/mary-meeker-mobile- internet-will-soon-overtake-fixed-internet/ By Mathew Ingram
  5. <link rel="stylesheet" type="text/css" media="screen" href="core.css" /> <link rel="stylesheet" type="text/css" media="screen

    and (max-device-width: 480px)" href="global.css" /> <link rel="stylesheet" type="text/css" media="print" href="print.css" />
  6. 320px 480px 768px 992px 1200px iPhone Portrait iPhone Landscape iPad

    Portrait Small Laptop (minus browser chrome) Large Desktop
  7. @media screen and (max-device-width: 480px) { .column { float: none;

    } } CSS @media Rule: http://www.alistapart.com/articles/responsive-web-design/
  8. MOBILE DEVICE ZOOMING iPhone (and others) pretends to be a

    desktop browser by setting the viewport to 980px. <meta name="viewport" content="width=divice-width, target-desityDpi=160dpi, initial-scale=1"> <meta name="MobileOptimized" content="width"> <meta name="HandheldFriendly" content="true"> IE6-8 ignores all Media queries.