Top Banner
Responsive Web Design Allan Huang @ esobi Inc.
24
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Responsive Web Design

Responsive Web Design

Allan Huang @ esobi Inc.

Page 2: Responsive Web Design

Agenda

10 Web Design Trends Bootstrap

Global Style CSS Grid System Layouts Responsive Design Base CSS Base Components JavaScript in Bootstrap

Bootstrap Advantage Browser Compatible

Page 3: Responsive Web Design

10 Web Design Trends

Content First Efficient, Searchable, Accessible, Multi-Platform C

ontent Simplicity of Design Interaction and Content

Simplification! Content Accessible and Readable on Devices

UX Centered Design UI Design, Visual Styling, Code Performance,

Uptime, Feature Set, Research Methods, Development Methodologies...

Page 4: Responsive Web Design

10 Web Design Trends

App Style Interfaces Imitate Mobile App Style and Interfaces

Unification of Desktop & Mobile into Single Version SVG & Responsive Techniques

SVG, Web Fonts, Design with Typography, Icon Fonts... Flat Colors and No more Skeuomorphism

Simplicity, Minimalism, Clear Layouts, App-Style Interfaces, Design with Typography, Less Decoration, Less Skeuomorphic Interfaces, Flat Style, Flat Colors

Page 5: Responsive Web Design

10 Web Design Trends for 2013 Technology Agnostic

HTML/ CSS/ JavaScript -> CSS3, SVG, WebGL… Experimentation and innovation in device sens

ors and interaction Touch-enabled Interfaces, Device Sensor, Speech-

Based... The Internet of things

Ecosystem of Connected Services, e.g. Smart Fridge, Smart TV, Smart Watch…

Page 6: Responsive Web Design

Bootstrap

Page 7: Responsive Web Design

Global Style

An CSS framework based on jQuery JavaScript framework

Bootstrap version 2.3.2 HTML5 doctype

Declaration Basic global display, ty

pography, and link styles

Page 8: Responsive Web Design

Fixed Grid System

The default grid system utilizes 12-columns, making for a 940px wide container without responsive features enabled.

Below 767px viewports, the columns become fluid and stack vertically.

Page 9: Responsive Web Design

Fluid Grid System

The fluid grid system uses percents instead of pixels for column widths with responsive features enabled.

Page 10: Responsive Web Design

Fixed Layout

Provides a common fixed-width (and optionally responsive) layout with only class="container" required.

Page 11: Responsive Web Design

Fluid Layout

Create a fluid, two-column page with class="container-fluid" — great for applications and docs.

Page 12: Responsive Web Design

Responsive Design

Include the meta tag — viewport and css file — bootstrap-responsive.css within head tag

Supported devices

Page 13: Responsive Web Design

Supported Media Query

Media queries allow for custom CSS based on a number of conditions — ratios, widths, display type, etc — but usually focuses around min-width and max-width

Page 14: Responsive Web Design

Media Query Types and Features Media Types

all | aural | braille | embossed | handheld | print | projection | screen | tty | tv Media Features

(max- / min-) width (max- / min-) height (max- / min-) device-width (max- / min-) device-height orientation: portrait / landscape aspect-ratio (max- / min-) device-aspect-ratio color color-index monochrome (max- / min-) resolution scan grid

Page 15: Responsive Web Design

Media Query Examples

Page 16: Responsive Web Design

Responsive Utility CSS Classes For faster mobile-friendly development, use these

utility classes for showing and hiding content by device.

Responsive utilities should not be used with tables, and as such are not supported.

Page 17: Responsive Web Design

Base CSS

Typography Code Tables Forms Buttons Images Icons by Glyphicons

Page 18: Responsive Web Design

Base Components

Button groups Button dropdown menus Nav lists Navbar components Breadcrumbs Pagination Labels and badges Typographic components Thumbnails Alerts Progress bars Media Object Miscellaneous

Page 19: Responsive Web Design

JavaScript in Bootstrap

Transitions Modal Dropdowns ScrollSpy Togglable tabs Tooltips Popovers Alert messages Buttons Alerts Buttons Collapse Carousel Typeahead Affix

Page 20: Responsive Web Design

Advantages

Easy to get started LESS — Dynamic Stylesheet Language

Great grid system Bootstrap is built on responsive 12-column grids, l

ayouts and components Base styling for most HTML elements

All these fundamental HTML elements have been styled and enhanced with extensible classes

Page 21: Responsive Web Design

Advantages

Extensive list of components Styling of every single element follows a consisten

t theme Bundled JavaScript plugins

The components are made interactive with the numerous JavaScript plugins bundled in the bootstrap package

Good documentation Provides a great documentation with examples an

d demo

Page 22: Responsive Web Design

Browser Compatible

Normalize CSS Makes browsers render all elements more consistently and

in line with modern standards Html5shiv JS

Enable use of HTML5 sectioning elements in legacy IE 6-8 Respond JS

A fast & lightweight polyfill for min/max-width CSS3 Media Queries for IE 6-8

Selectivizr JS Emulates CSS3 pseudo-classes and attribute selectors in I

E 6-8

Page 23: Responsive Web Design

Reference

10 Web Design Trends for 2013 Bootstrap CSS Framework 6 Reasons to Choose the Bootstrap CSS Frame

work Device pixel density tests Media Query Snippets The Absolute Beginners Guide to LESS Free themes for Twitter Bootstrap

Page 24: Responsive Web Design

Q&A