Responsive Webdesign –
die Geister, die ich rief
Digital Visions, Wien 04.10.2013
Referent: Sven Wolfermann | maddesigns
Digital Visions, Wien 04.10.2013
Referent: Sven Wolfermann | maddesigns

Tweet an: @Flocke gute Besserung Jens!

(engl. Scrooged) ist eine US-amerikanische Filmkomödie aus dem Jahr 1988 mit Bill Murray in der Hauptrolle.
Der deutsche Filmtitel basiert auf der ersten Hälfte eines Zitats aus Goethes „Der Zauberlehrling“, das sich zum geflügelten Wort entwickelte.


Erstmals mehr Tablets als Notebooks in Deutschland verkauft
19% der Facebook Users nutzen Facebook ausschließlich mobil und haben noch nie einen Desktop-PC genutzt.
Kurzer Rückblick



Heutzutage wissen wir nicht wie und wo der User unsere Website besucht
irgendwas vergessen?


Samsung Android Screen Sizes:
2.8, 3.14, 3.2, 3.4, 3.5, 3.6, 3.65, 3.7, 3.97, 4, 4.2, 4.27, 4.3, 4.5, 4.52, 4.65, 4.8, 5, 5.3, 5.5, 5.8, 6.3, 7, 7.7, 8, 10, 10.1 (Tweet von @dkdsgn)

It's impossible to predict all the complications of a responsive design up front. We need a more fluid workflow!
Using photoshop/fireworks for responsive design is like bringing a knife to a gunfight


Responsive Content Grundsatz: Je kleiner das Gerät, desto wichtiger ist es den wichtigen Inhalt so weit wie möglich am Anfang der Webseite zu zeigen


Adobes neuer Ansatz (public preview)
Edge Reflow ist ein Designtool, kein Entwicklungstool
Testen auf richtigen Geräten ist sehr wichtig


große Verbreitung in Asien


Shopping mit mobilen Geräten
There's no correlation between the size of the screen and the amount of bandwidth available to it.
für Typekit, Google, Fontdeck, Fonts.com, … und selbstgehostete Fonts
<script>
WebFontConfig = {
typekit: { id: 'xxxxxx' }
};
(function() {
var wf = document.createElement('script');
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
'://ajax.googleapis.com/ajax/libs/webfont/1.4.7/webfont.js';
wf.type = 'text/javascript';
wf.async = 'true';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(wf, s);
})();
</script>
CSS Klassen für Font-Events
.wf-loading .wf-active .wf-inactive .wf-<familyname>-<fvd>-loading .wf-<familyname>-<fvd>-active .wf-<familyname>-<fvd>-inactive
h1, h2, h3 {
font-family: sans-serif;
}
.wf-active h1, .wf-active h2, .wf-active h3 {
font-family: "webfont", sans-serif;
}
Aktuelle W3C-Diskussion – <picture> Element
Aufbau wie <video> Element
<picture width="500" height="500"> <source src="large.jpg" media="(min-width: 45em)"> <source src="middle.jpg" media="(min-width: 18em)"> <img src="small.jpg" alt=""> <p>Accessible text</p> </picture>
Polyfill für den <picture> Ansatz
<span data-picture data-alt="Alttext">
<span data-src="small.jpg"></span>
<span data-src="medium.jpg" data-media="(min-width: 400px)"></span>
<span data-src="large.jpg" data-media="(min-width: 800px)"></span>
<span data-src="xlarge.jpg" data-media="(min-width: 1000px)"></span>
<!-- Fallback content for non-JS browsers. Same img src as
the initial, unqualified source element. -->
<noscript>
<img src="small.jpg" alt="Alt">
</noscript>
</span>
<img> durch ein neues Attribut erweitern, das mehrere Bildpfade und -qualitäten enthält
<img alt="The Breakfast Combo"
src="banner.jpeg"
srcset="banner-HD.jpeg 2x,
banner-phone.jpeg 100w,
banner-phone-HD.jpeg 100w 2x">
Das beste aus beiden Vorschlägen
<picture width="500" height="500">
<source media="(min-width: 45em)"
srcset="large-1.jpg 1x, large-2.jpg 2x">
<source media="(min-width: 18em)"
srcset="med-1.jpg 1x, med-2.jpg 2x">
<source srcset="small-1.jpg 1x, small-2.jpg 2x">
<img src="small-1.jpg" alt="">
<p>Accessible text</p>
</picture>
wird mit den Browserherstellern diskutiert, aktuell scheint die Integration vom "srcset"-Attribut voran getrieben zu werden
Support für background-images in Safari 6, Chrome 21
background-image: -webkit-image-set( url(cloud-sd.png) 1x, url(cloud-hd.png) 2x);
<img src="normal-image.jpg" srcset="better-image.jpg 2x">
-› Retina-Support für iOS
neuer Entwurf von Tab Atkins
<img src-1="(max-width: 400px) pic-small.jpg"
src-2="(max-width: 1000px) pic-medium.jpg"
src="pic-large.jpg"
alt="Obama talking to a soldier in hospital scrubs.">
<img src-1="pic.png, picHigh.png 2x, picLow.png .5x">
Wilto's Polyfill Test
Trends are poison. It's such a shame that Responsive design is often degraded to being a “Web design trend”. It isn't. It's a new mindset.
In die Ecke,
Besen! Besen!
Seyd’s gewesen.
Denn als Geister
Ruft euch nur, zu seinem Zwecke,
Erst hervor der alte Meister.
Typografie im Responsive Webdesign
Sven Wolfermann | maddesigns