Über das wertvolle Konzept des Responsive Designs wird viel geredet und es wird zurecht gehyped. In der Praxis sieht man sich allerdings schnell Herausforderungen gegenüber, die oft einen massiven Mehraufwand bedeuten. Wann Responsive Design Sinn macht, warum es so großartig ist, welche Stolpersteine so auf dem Weg liegen und was dies für die Erstellungs-Prozesse einer Webseite bedeutet, dies wird hier betrachtet.
3. 1 More than desktop: TVs, laptops, tablets, eReader and
smartphones.
AGE OF
HETEROGENEOUS DEVICES
960 GRID IS SO YESTERDAY
2 Fragmented screen sizes.
3 Websites should always look good and be usable.
4 Different usability concepts, e.g. touch.
4. SERVE THE DEVICES
POSSIBILITIES
DESKTOP ONLY APPS MOBILE WEBSITES RESPONSIVE DESIGN
(apple.com)
5. MAKE IT RESPONSIVE
HOW DOES RESPONSIVE DESIGN WORK?
/* IPAD */
@media screen and (max-device-width: 1024px) {
}
/* IPHONE */
@media screen and (max-device-width: 480px) {
}
6.
7. FRAMEWORKS
GETTING STARTED
TWITTER BOOTSTRAP FOUNDATION INUIT CSS
http://twitter.github.com/bootstrap/ http://foundation.zurb.com/ http://csswizardry.com/inuitcss/
19. „I don´t care who you are or
where you´re from, I still love you“
LOVE YOUR USERS
20. 1 If you want to hide it, think about deleting it.
COMPLEXITY
2 Mobile First (Tablet First)
KEEP IT SIMPLE, STUPID
3 Embrace CSS3.
4 The web IS responsive! We just started to use fixed width.
21. „Mobile users want to see our menu,
hours, and delivery number. Desktop
users definitely want this 1mb png of
someone smiling at a salad.“
MAT MARQUIS (@wilto)
22. RESPONSIVE
TILES .
WHERE TO PUT THEM
by http://www.lukew.com
30. “There is no Mobile Web. There is only
The Web, which we view in different
ways. There is also no Desktop Web.
Or Tablet Web. Thank you.”
STEPHEN HAY (@stephenhay)
31. 1 Remove the mental model of full control!
PREPARE TO
LOSE CONTROL
DON´T OPTIMIZE FOR MOBILE
2 Fluid Layout
OPTIMIZE FOR THE WEB
3 Okay, perhaps optimize for device classes
32. 1 THERE´S NO MOBILE WEB! Today people also use mobile
devices for surfing on the couch.
YOUR USERS
WANT STUFF
DON´T HIDE IT
2 Don´t assume users want other content just because they use
a different device!
3 RESPONSIVE CONTENT IS DANGEROUS. Just be careful.
35. 1 DEVICE BREAKPOINTS
Break at the specific device width. DON´T DO THIS!
BREAKPOINTS
320px? 480px? WTF! 2 DEVICE CLASS BREAKPOINTS
Identify your most important device widths, classify the
devices and set the breakpoints BETWEEN them.
3 NATURAL BREAKPOINTS
Define breakpoints where your layout breaks. Also define
breakpoints where you need a layout change due to space
limitations.
36. FEATURE DETECTION
USE JAVASCRIPT TO BE EVEN
MORE RESPONSIVE
if (Modernizr.touch){
// Touch is supported
} else {
// This is no touch device
}
37. RESS .
RESPONSIVE DESIGN +
SERVER SIDE COMPONENTS
38. 1 There are some things RWD can´t offer.
Images in the right size. Order of Markup.
2 Check HTTP headers and lookup device features in a
database / API.
RESS
3
FINALLY A NEW BUZZWORD Combine it with client side detection and share
information using cookies.
$WURFLWidth = $client->getDeviceCapability('max_image_width');
41. 1 Layout and design for TABLET or MOBILE.
THERE IS NO 2
Start with a FLUID LAYOUT and RESPONSIVE RESET.
ONE-FITS-ALL
APPROACH 3
Define your DEVICE-CLASSES and implement media
queries for them considering DEVICE CLASS
BREAKPOINTS. Only use them for device specific stuff
(menu, perhaps buttons).
BUT HERE IS A STARTER
4
S c a l e d o w n a n d u p t o fi n d yo u r N AT U R A L
BREAKPOINTS where your layout breaks. Implement
media queries for them and fix the layout considering
RESPONSIVE TILES.
5 Use RESS to serve optimized images for each device-class. Use
it for other stuff if needed (text truncate limit, markup order).