Top Banner
Responsive Web Design
41

Responsive Web Design and SharePoint

Jan 10, 2017

Download

Software

Stefan Bauer
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 and SharePoint

ResponsiveWeb Design

Page 2: Responsive Web Design and SharePoint

MOBILE TABLET DESKTOP

Page 3: Responsive Web Design and SharePoint
Page 4: Responsive Web Design and SharePoint

It is NOT about DEVICES

Page 5: Responsive Web Design and SharePoint

It is aboutCONTENT & CONTEXT

Page 6: Responsive Web Design and SharePoint
Page 7: Responsive Web Design and SharePoint

Ethan MarcotteResponsive Web Design – A list apartMay 25, 2010

Page 8: Responsive Web Design and SharePoint

FLUIDGRID

FLEXIBLEMEDIA

MEDIAQUERIES

Page 9: Responsive Web Design and SharePoint

Origin of

GRID SYSTEMSPrint DesignGraphic DesignSwiss Design

Page 10: Responsive Web Design and SharePoint

Divides the available space

verticalGRID COLUMNS

horizontalGRID ROWS

space betweenGUTTER

Page 11: Responsive Web Design and SharePoint

Grid systems in web design

FIXED

Column width in px - pixels

Example:• 960.gs

• Optimized for 1024px

FLUID

Column width in%

vw - View Widthvh - View Height

em, rem

Example:• 13 of the best responsive grid

system• countless

Page 12: Responsive Web Design and SharePoint

4 3

6212

COLUMNS

Page 13: Responsive Web Design and SharePoint

Benefit of Grid SystemsClarity / Order

Grids bring order to a layout making it easier for visitors to find and navigate through information.

EfficiencyGrids allow designers to quickly add elements to a layout because many layout decisions are addressed while building the grid structure.

EconomyGrids make it easier for other designers to work and collaborate on the design as they provide a plan for where to place elements.

Consistency / HarmonyGrids lead to consistency in the layout of pages across a single site or even several sites creating a structural harmony in the design.

Source:Why grid?

Page 14: Responsive Web Design and SharePoint

FLEXIBLEMEDIA

IMAGESVIDEOS

TYPOGRAPHY

Page 15: Responsive Web Design and SharePoint

Responsive Media - Images

Page 16: Responsive Web Design and SharePoint

Technical – Responsive Image - Basics

• Mobile device: slow loading image• Desktop: Bad image quality on desktop

Page 17: Responsive Web Design and SharePoint

<picture> - Better Responsive Images

Page 18: Responsive Web Design and SharePoint

Responsive Media - Images

Page 19: Responsive Web Design and SharePoint

Responsive Media – Images - optimised

Page 20: Responsive Web Design and SharePoint

Responsive Media – Images -SVGScalable Vector Graphics

XML based definition of a vector graphics

Native drawing in browser

Scales without getting blurry

Replacement for: GIF, Icon Fonts

Page 21: Responsive Web Design and SharePoint

Example – Office 365 Logo

RectangleCircleEllipsesPolygonPolylinePathTextStroke

Page 22: Responsive Web Design and SharePoint

How to use SVG in HTML• Directly embed in HTML• Use it as background in CSS• <img> tag• <object> embedding• Data embed

Base64data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL...

UTF-8, not encodeddata:image/svg+xml;charset=UTF-8,<svg ...> ... </svg>

UTF-8, optimized encoding for compatibilitydata:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://...’

Fully URL encoded ASCIIdata:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%...

Page 23: Responsive Web Design and SharePoint

Icon Fonts vs SVG Symbol Set

Web fontWOFF, TTF, EOT, SVG Font

Every letter is a glyph<g>

USE:content(‘�’)

CONS:Accessibility problemsHard to debug in code

Seren Davies: Death to icon fonts

SVG Symbol SetSVG

Every icon is a<symbol id=“Office365Icon”>

USE:url(’icons.svg#Office365Icon');

PRO:Treated as an image

more on symbol

Page 24: Responsive Web Design and SharePoint

Responsive Video – Html 5

<object>,<embed>StillexistsinHTML5butnotrecommended

Page 25: Responsive Web Design and SharePoint

Responsive Video – Html 5

Based on IFRAMEShttp://embedresponsively.com

YouTube, Vimeo, …

Page 26: Responsive Web Design and SharePoint
Page 27: Responsive Web Design and SharePoint

Responsive Typography

Choose the right font size for content & context

Fluid content size

RESPONSIVE TYPOGRAPHY: THE BASICS

RESPONSIVE TYPOGRAPHY IN ACTION

Units: em, rem, %

Page 28: Responsive Web Design and SharePoint

Media Queries

Page 29: Responsive Web Design and SharePoint

Media Queries•Exists since 2002• "print”, "screen", "aural", "braille", "handheld",

"projection", "tty", "tv”•CSS 3•width, height• device-width, device-height• orientation• aspect-ratio, device-aspect-ratio• color, color-index, monochrome• resolution, scan, grid

Page 30: Responsive Web Design and SharePoint

How it works – Print

Page 31: Responsive Web Design and SharePoint

How it works – Screen

Page 32: Responsive Web Design and SharePoint

Responsive FrameworksSimple Frameworks• The 1140 CSS Grid• cssgrid.net• Golden Grid System• Mueller Grid System• Responsive Grid System• Titan• Responsive Grid System• Less Framework 4• Gridiculo.us• Columnal• Ingrid• 960.gs• Base

Complete Frameworks• Bootstrap• Foundation• Skeleton• YAML• Tuktuk• Gumby• Kube• Groundwork• ResponsiveAeon• Office UI Frabric

Page 33: Responsive Web Design and SharePoint

FRAMEWORKS ARE GREAT BUT …

Page 34: Responsive Web Design and SharePoint

Framework potential pitfalls

• One-size-fits-all• Lookalike issues• Potential for bloat/unneeded stuff (approx. 5% needed for SP)• Might not do everything you need• Compatibility with existing sites• Subscribe to someone else’s structure, naming, style• Technological changes / Structural changes• Learn the framework but not CSS• Lack of accesibilty

Page 35: Responsive Web Design and SharePoint

SharePoint

Page 36: Responsive Web Design and SharePoint

SharePoint - Bootstrap

Page 37: Responsive Web Design and SharePoint

SharePoint – Bootstrap – Branding

Page 38: Responsive Web Design and SharePoint

Avoid pitfalls with Frameworks

I need a burger menu and a grid system?

Trim framework to your needs

Architect your CSS and Branding

Developer your own reusable components

Page 39: Responsive Web Design and SharePoint
Page 40: Responsive Web Design and SharePoint
Page 41: Responsive Web Design and SharePoint