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

Design Beyond the pixels

Avatar for Hervé Mischler Hervé Mischler
December 11, 2012

Design Beyond the pixels

Presentation for #FranceHTML5 Meetup

Avatar for Hervé Mischler

Hervé Mischler

December 11, 2012
Tweet

More Decks by Hervé Mischler

Other Decks in Design

Transcript

  1. 2,000 1,600 1,200 800 400 Internet Users (MM) 0 2007

    2008 2009 2010 2011 2012 2013 2014 2015 Source: Morgan Stanley Research Mobile internet users Desktop internet users
  2. “f you put water into a cup, it becomes the

    cup. ou put water into a bottle and it becomes the bottle. Bruce Lee http://www.slideshare.net/MadPowHxD/josh-clark-hxd-presentation
  3. @font-face { font-family: "FontAwesome"; src: url('../font/fontawesome-webfont.eot'); src: url('../font/fontawesome-webfont.eot?#iefix') format('eot'), url('../font/fontawesome-webfont.woff')

    format('woff'), url('../font/fontawesome-webfont.ttf') format('truetype'), url('../font/fontawesome-webfont.svg#FontAwesome') format('svg'); font-weight: normal; font-style: normal; }
  4. CSS [class^="icon-"]:before, [class*=" icon-"]:before { font-family: FontAwesome; font-weight: normal; font-style:

    normal; speak: none; -webkit-font-smoothing: antialiased; } HTML <div class=”icon-glass”></div>
  5. /* Font Awesome uses the Unicode Private Use Area (PUA)

    to ensure screen readers do not read off random characters that represent icons */ .icon-glass:before { content: "\f000"; } .icon-music:before { content: "\f001"; } .icon-search:before { content: "\f002"; } .icon-envelope:before { content: "\f003"; } .icon-heart:before { content: "\f004"; } .icon-star:before { content: "\f005"; } .icon-star-empty:before { content: "\f006"; }
  6. CSS [data-icon]:before { font-family: FontAwesome; content: attr(data-icon); font-weight: normal; font-style:

    normal; speak: none; -webkit-font-smoothing: antialiased; } HTML <div data-icon="\f000"></div>
  7. /* ===================================== IOS =====================================*/ $fontfamily: helvetica, sans-serif; $fontmini: 0.75em; //12px

    $fontsmall: 0.875em; //14px $fontmedium: 1.0625em; //17px $fontlarge: 1.25em; //20px $baseline: 1em; //16px $baseheight: 2.75em; //44px $navwidth: 20em; //320px
  8. /* ===================================== Android =====================================*/ $fontfamily: "roboto","droid-sans", sans-serif; $fontmini: 0.75em; //12px

    $fontsmall: 0.875em; //14px $fontmedium: 1.125em; //18px $fontlarge: 1.375em; //22px $baseline: 1em; //16px $baseheight: 3em; //48px $navwidth: 20em; //320px