SlideShare uma empresa Scribd logo
1 de 32
The A to Z of Building a
Responsive SharePoint Site
with Bootstrap
BY THOMAS DALY
Topics
 What is Bootstrap
 Responsive Design
 Why Bootstrap
 Implementation
 Grids
 Media Queries
 UI Components
 Expectations
 SharePoint Considerations
 Tools
 Resources
 Live Examples / Intranet Site
 Real World Examples
About Me
 Senior SharePoint Consultant Extraordinaire
 Branding & Developer
 Focused on the UI side of things
 Community Involvement
 Speaker
 NJ SharePoint User Group Organizer
 SharePoint Saturday NYC Organizer
 SharePoint Saturday NJ Organizer
 My SharePoint Blog
 MSDN forums (eh not so much)
About Bootstrap
... AND RESPONSIVE DESIGN
What is Bootstrap?
 The most popular HTML, CSS, and JS framework
 Used for developing responsive, mobile first projects
on the web.
 Mobile First Strategy
 Works and looks great on the mobile device.
 As the devices scale in the size the content scales
and experience is enhanced.
What is Bootstrap?
Responsive Web Design
 Crafting sites that provide an
optimal viewing and interaction
experience
 Easy reading and navigation
 Minimal resizing, panning, and
scrolling
 Works across a wide range of
devices
Illustration by Stéphanie Walter
Why Choose Bootstrap?
 Speed of Development
 Use of ready made code blocks and pre-defined styles.
 Responsiveness
 Mobile devices continue to grow in popularity year after year.
 Use of Bootstrap's grid system and classes make it easier.
 Consistency
 Uniformity, same experience across Internet Explorer, Chrome, and Firefox
 Customizable
 Ability to fine tune your bootstrap package.
 Support
 Large user community behind it. Constantly being updated. Lots of documentation
 Themes
 There are a large number of Themes available and either free or very inexpensive
Similar Responsive Frameworks
 Bootstrap is not alone. There are numerous frameworks that are similar. The key to
picking one is to understand your requirements.
 Semantic UI
 ZURB Foundation
 Skeleton
 HTML Boilerplate
 Almost infinitely more…
Bootstrap Components
 Grids – Defining pages in terms of columns and rows
 Typography – Headings / body elements
 Glyphs – icons that are font based, scalable
 Navigation – responsive navigation
 Images – responsive images
 Helper Classes – clearfix / show / hide / centers
 Responsive Utilities – hide / show content via class
 Javascript - Carousel, Tooltip, Tab, Modal, Alerts
Grid System
 Easy to use grid system for creating rows & columns for your content
https://getbootstrap.com/examples/grid/
Example Grid: Mobile, Tablet, & Desktop
Media Queries
 Allows you to craft CSS to scope media features
such as height or width.
 Bootstrap has pre-defined breakpoints mobile,
tablet, desktop, & large desktop
 Necessary to know in order to achieve
responsive.
Bootstrap & SP2013 / O365
My Personal Disclaimer
 Mobile Design works best on sites where you the developer, designer, or owner
have the most control over the content being displayed and how the users
interacts with that content.
 SharePoint Lists, Libraries, Web Parts, Page Layouts, Site Templates are generally
not responsive, and therefore can be difficult (sometimes impossible) to convert.
 To obtain 100% perfect mobile experience will take a lot of work. It’s
recommended that your sites have custom master page, css, page layouts, and
web parts.
What to Expect with SharePoint &
Bootstrap
 SharePoint is semi-responsive, but some aspects cannot be made responsive
without extensive amounts of time and effort.
 When creating new items (page layouts, web parts, display templates) you’ll be
able to put your best foot forward for mobile. As the screen real estate increases
your content will grow and gradually be enhanced.
 When working with existing SharePoint components, you’ll be forces to write
media queries to gracefully degrade these items to work on smaller screen real
estate.
Getting Started
 Bootstrap v.3.3.5
 Bootstrap Content Delivery Network (CDN)
 Install steps & Page Examples
 http://getbootstrap.com/getting-started
 http://getbootstrap.com/getting-started/#examples
Master Page Modifications
 HTML5 doctype
 Bootstrap makes use of certain HTML elements
and CSS properties that require the use of the
HTML5 doctype. Include it at the beginning of all
your projects.
 Meta Tags
 To ensure proper rendering and touch zooming,
add the viewport meta tag to your <head>.
SharePoint Considerations
Devices
 Turn off Mobile Browsing
 This will make mobile devices use the normal UI
Mobile Browsing View
SharePoint Considerations
Box Model Issues
 Bootstrap uses border-box
 SharePoint uses content-box
 This causes SharePoint components
to look broken in particular areas
 Apply a reset to the broken pieces
The Box Model Explained
Box Sizing Explained
 border-box
 The width and height properties (and
min/max properties) includes content,
padding and border, but not the margin
 content-box
 The width and height properties (and
min/max properties) includes only the
content. Border, padding, or margin are
not included
https://jsfiddle.net/e9gn3q83/
SharePoint Considerations
Navigation
 The most challenging task
 You’ll need to change the default HTML markup
 http://thomasdaly.net/2015/06/28/bootstrap-
responsive-navigation-in-sharepoint/
 Navigation will no longer be hover, but touch.
 This can disable top tier nodes w/ children
SharePoint Considerations
Sites & Pages
Publishing (the way to go)
 Publishing Feature is required
 Publishing Sites use page layouts
 Custom Page Layouts are the best way to
control how the page responds
 Wrap your Web Part Zones & Content
Areas in columns and rows using the
Bootstrap grid classes
Team Sites
 Team Sites are not good because they use
Text Layouts
 Text Layouts are pre-defined, not
customizable, and not responsive
 Existing Team Sites pages would need to
be re-created using a custom responsive
page layout.
SharePoint Considerations
Web Parts
 Try to plan ahead which web parts will be allowed, or define a set of web parts that you will be
primarily using throughout your site.
 The best types of web parts are Custom, Data Views or Content By Search
 Custom & Data Views – you can create the html markup and styles
 Content By Search – you can utilize display templates which allow you to control the html. (styles can
be applied separately)
 The worst types of web parts are Out Of The Box (OOTB) & List Views
 Out Of The Box (OOTB) web parts you have no control over how they render.
 List Views columns can break your design (unless you change to custom display template)
SharePoint Considerations
Site Templates
 You can make Search, Wiki,
Community Portal, Blog Sites
responsive but not easily
 Be prepared to write media queries
to override default styles per each
type of template
 Difficult, Yes. Challenging, Yes. But
Possible
SharePoint Considerations
Lists & Libraries
 Not very responsive and would be very
tough to make responsive
 Similar issue are web parts, columns and
<tables> are the enemy.
 Lists & Libraries are <table> based html
elements and these components are not
that responsive
 Difficult, Extreme. Possible, with code?
Advice = Stay Away
Other Stuff
TOOLS, EXAMPLES, REFERENCES
Tools for the Job
 Chrome
 Emulation Mode
 Nice Presets
 FireFox
 Emulation Mode
 OK Presets
 Internet Explorer
Other Bootstrap / SharePoint Projects
 Bootstrap – online documentation, examples
 http://getbootstrap.com/
 Responsive SharePoint CodePlex Project (foundations or server only)
 Bootstrap (2 & 3)
 ZURB Foundation (4)
 https://responsivesharepoint.codeplex.com/
 ShareBoot – Responsive SharePoint 2013 Theme
 http://www.topsharepoint.com/shareboot-responsive-sharepoint-2013-theme
 Twitter Bootstrap for SharePoint (2010)
 Bootstrap v2.2.1
 https://bootstrapsharepoint.codeplex.com/
Alternative PnP Project
 SharePoint 2013/2016 Responsive UI
 This solution provides you the capability to enable Responsive UI for a Site Collection in Microsoft SharePoint 2013/2016
on-premises. The solution leverages some JavaScript embedding and CSS overriding, in order to make responsive the out
of the box UI of a classic Team Site (STS#0).
 Solution Overview
 The solution leverages some JavaScript embedding and CSS overriding to convert the out of the box UI of any SharePoint
2013/2016 Team Site (STS#0) into a Responsive UI. The Responsive UI supports three rendering models:
 Desktop: screen width above 768px
 Tablet: screen width between 481px and 768px
 SmartPhone: screen width lower than or equal to 480px
 https://github.com/OfficeDev/PnP-Tools/tree/master/Solutions/SharePoint.UI.Responsive
Real World Examples
 B&R Business Solutions
 O365 Public
 http://www.bandrsolutions.com
 Center for Retail Compliance
 SP2013, On-Prem Public
 http://www.retailcompliancecenter.org/
 ATIDAN
 O365 Public
 http://www.atidan.com

Mais conteúdo relacionado

Mais procurados

Things I've learnt when skinning and customizing a SharePoint 2010 Site
Things I've learnt when skinning and customizing a SharePoint 2010 SiteThings I've learnt when skinning and customizing a SharePoint 2010 Site
Things I've learnt when skinning and customizing a SharePoint 2010 Site
Justin Lee
 

Mais procurados (20)

SharePoint 2013 Client-Side Rendering (CSR) & JSLink Templates
SharePoint 2013 Client-Side Rendering (CSR) & JSLink TemplatesSharePoint 2013 Client-Side Rendering (CSR) & JSLink Templates
SharePoint 2013 Client-Side Rendering (CSR) & JSLink Templates
 
Create your own SharePoint Master Pages and Page Layouts
Create your own SharePoint Master Pages and Page LayoutsCreate your own SharePoint Master Pages and Page Layouts
Create your own SharePoint Master Pages and Page Layouts
 
Enhance SharePoint 2013 with Responsive Web Design
Enhance SharePoint 2013 with Responsive Web DesignEnhance SharePoint 2013 with Responsive Web Design
Enhance SharePoint 2013 with Responsive Web Design
 
Branding sharepoint project
Branding sharepoint projectBranding sharepoint project
Branding sharepoint project
 
Popping the Hood: How to Create Custom SharePoint Branding by Randy Drisgill ...
Popping the Hood: How to Create Custom SharePoint Branding by Randy Drisgill ...Popping the Hood: How to Create Custom SharePoint Branding by Randy Drisgill ...
Popping the Hood: How to Create Custom SharePoint Branding by Randy Drisgill ...
 
Branding Modern SharePoint
Branding Modern SharePointBranding Modern SharePoint
Branding Modern SharePoint
 
Becoming a SharePoint Design Ninja
Becoming a SharePoint Design NinjaBecoming a SharePoint Design Ninja
Becoming a SharePoint Design Ninja
 
Branding Deployment in Office 365 and SharePoint 2013/2016
Branding Deployment in Office 365 and SharePoint 2013/2016Branding Deployment in Office 365 and SharePoint 2013/2016
Branding Deployment in Office 365 and SharePoint 2013/2016
 
Step into the SharePoint branding world, tools and techniques
Step into the SharePoint branding world, tools and techniquesStep into the SharePoint branding world, tools and techniques
Step into the SharePoint branding world, tools and techniques
 
Things I've learnt when skinning and customizing a SharePoint 2010 Site
Things I've learnt when skinning and customizing a SharePoint 2010 SiteThings I've learnt when skinning and customizing a SharePoint 2010 Site
Things I've learnt when skinning and customizing a SharePoint 2010 Site
 
Branding SharePoint from Prototype to Deployment - Workshop
Branding SharePoint from Prototype to Deployment - WorkshopBranding SharePoint from Prototype to Deployment - Workshop
Branding SharePoint from Prototype to Deployment - Workshop
 
Transform SharePoint List Forms with HTML and CSS
Transform SharePoint List Forms with HTML and CSSTransform SharePoint List Forms with HTML and CSS
Transform SharePoint List Forms with HTML and CSS
 
SharePoint 2013 Branding
SharePoint 2013 BrandingSharePoint 2013 Branding
SharePoint 2013 Branding
 
Make SharePoint Look Not Like SharePoint - SPSNashville - Cathy Dew
Make SharePoint Look Not Like SharePoint - SPSNashville - Cathy DewMake SharePoint Look Not Like SharePoint - SPSNashville - Cathy Dew
Make SharePoint Look Not Like SharePoint - SPSNashville - Cathy Dew
 
SPSSTHLM - Using JSLink and Display Templates for ITPros
SPSSTHLM - Using JSLink and Display Templates for ITProsSPSSTHLM - Using JSLink and Display Templates for ITPros
SPSSTHLM - Using JSLink and Display Templates for ITPros
 
The Evolution of Branding in Office 365 - SPSATL 2015 - CDew
The Evolution of Branding in Office 365 - SPSATL 2015 - CDewThe Evolution of Branding in Office 365 - SPSATL 2015 - CDew
The Evolution of Branding in Office 365 - SPSATL 2015 - CDew
 
Transform SharePoint default list forms with HTML, CSS and JavaScript
Transform SharePoint default list forms with HTML, CSS and JavaScriptTransform SharePoint default list forms with HTML, CSS and JavaScript
Transform SharePoint default list forms with HTML, CSS and JavaScript
 
Create Engaging Branded SharePoint Portals and Plan for Content
Create Engaging Branded SharePoint Portals and Plan for ContentCreate Engaging Branded SharePoint Portals and Plan for Content
Create Engaging Branded SharePoint Portals and Plan for Content
 
Your SharePoint 2013 Branding Initiation
Your SharePoint 2013 Branding InitiationYour SharePoint 2013 Branding Initiation
Your SharePoint 2013 Branding Initiation
 
SharePoint Branding Guidance @ SharePoint Saturday San Diego
SharePoint Branding Guidance @ SharePoint Saturday San DiegoSharePoint Branding Guidance @ SharePoint Saturday San Diego
SharePoint Branding Guidance @ SharePoint Saturday San Diego
 

Destaque

Building SharePoint Single Page Applications Using AngularJS
Building SharePoint Single Page Applications Using AngularJSBuilding SharePoint Single Page Applications Using AngularJS
Building SharePoint Single Page Applications Using AngularJS
SharePointInstitute
 

Destaque (16)

Introduction to a Responsive Master Page with the Design Manager
Introduction to a Responsive Master Page with the Design ManagerIntroduction to a Responsive Master Page with the Design Manager
Introduction to a Responsive Master Page with the Design Manager
 
Enhance the Usability of Your SharePoint Site with JSLink #Collab365 #C365114...
Enhance the Usability of Your SharePoint Site with JSLink #Collab365 #C365114...Enhance the Usability of Your SharePoint Site with JSLink #Collab365 #C365114...
Enhance the Usability of Your SharePoint Site with JSLink #Collab365 #C365114...
 
Backup & Restore SharePoint 2013 Farm
Backup & Restore SharePoint 2013 FarmBackup & Restore SharePoint 2013 Farm
Backup & Restore SharePoint 2013 Farm
 
Presentation Backup & Restore SharePoint 2013 Farm
Presentation Backup & Restore SharePoint 2013 FarmPresentation Backup & Restore SharePoint 2013 Farm
Presentation Backup & Restore SharePoint 2013 Farm
 
SPSNYC 2016 Event Slides [Opening / Closing Remarks]
SPSNYC 2016 Event Slides [Opening / Closing Remarks]SPSNYC 2016 Event Slides [Opening / Closing Remarks]
SPSNYC 2016 Event Slides [Opening / Closing Remarks]
 
JSLink for ITPros - SharePoint Saturday Jersey
JSLink for ITPros - SharePoint Saturday JerseyJSLink for ITPros - SharePoint Saturday Jersey
JSLink for ITPros - SharePoint Saturday Jersey
 
Building SharePoint Single Page Applications Using AngularJS
Building SharePoint Single Page Applications Using AngularJSBuilding SharePoint Single Page Applications Using AngularJS
Building SharePoint Single Page Applications Using AngularJS
 
SharePoint Development Workshop
SharePoint Development WorkshopSharePoint Development Workshop
SharePoint Development Workshop
 
SharePoint and the User Interface with JavaScript
SharePoint and the User Interface with JavaScriptSharePoint and the User Interface with JavaScript
SharePoint and the User Interface with JavaScript
 
Bringing HTML5 alive in SharePoint
Bringing HTML5 alive in SharePointBringing HTML5 alive in SharePoint
Bringing HTML5 alive in SharePoint
 
Chris O'Brien - Intro to Power BI for Office 365 devs (March 2017)
Chris O'Brien - Intro to Power BI for Office 365 devs (March 2017)Chris O'Brien - Intro to Power BI for Office 365 devs (March 2017)
Chris O'Brien - Intro to Power BI for Office 365 devs (March 2017)
 
Trends in Designing Portals for #SharePoint 2013 #SPC14 #SPC2013
Trends in Designing Portals for #SharePoint 2013 #SPC14 #SPC2013Trends in Designing Portals for #SharePoint 2013 #SPC14 #SPC2013
Trends in Designing Portals for #SharePoint 2013 #SPC14 #SPC2013
 
Why Use Low-Code Software for Your BSS?
Why Use Low-Code Software for Your BSS?Why Use Low-Code Software for Your BSS?
Why Use Low-Code Software for Your BSS?
 
DZone’s 2016 Guide To Building And Deploying Applications In The Cloud
DZone’s 2016 Guide To Building And Deploying Applications In The CloudDZone’s 2016 Guide To Building And Deploying Applications In The Cloud
DZone’s 2016 Guide To Building And Deploying Applications In The Cloud
 
Bootstrap Introduction
Bootstrap IntroductionBootstrap Introduction
Bootstrap Introduction
 
Cross Site Publishing Solution for corporate news in SP 2013
Cross Site Publishing Solution for corporate news in SP 2013Cross Site Publishing Solution for corporate news in SP 2013
Cross Site Publishing Solution for corporate news in SP 2013
 

Semelhante a The A to Z of Building a Responsive SharePoint Site with Bootstrap

Branding share point 2013
Branding share point 2013Branding share point 2013
Branding share point 2013
Khoa Quach
 
CVNUG - Share Point Development
CVNUG - Share Point DevelopmentCVNUG - Share Point Development
CVNUG - Share Point Development
ryanaoliveira
 
Sharepoint tips and tricks
Sharepoint tips and tricksSharepoint tips and tricks
Sharepoint tips and tricks
Jeff Wisniewski
 
Site Templates in SP 13
Site Templates in SP 13Site Templates in SP 13
Site Templates in SP 13
Shahzad S
 

Semelhante a The A to Z of Building a Responsive SharePoint Site with Bootstrap (20)

Bootstrap for Beginners
Bootstrap for BeginnersBootstrap for Beginners
Bootstrap for Beginners
 
Branding share point 2013
Branding share point 2013Branding share point 2013
Branding share point 2013
 
The Pragmatist's Approach to SharePoint Branding
The Pragmatist's Approach to SharePoint BrandingThe Pragmatist's Approach to SharePoint Branding
The Pragmatist's Approach to SharePoint Branding
 
Bootstrap vs React Which is the best front-end framework.pdf
Bootstrap vs React Which is the best front-end framework.pdfBootstrap vs React Which is the best front-end framework.pdf
Bootstrap vs React Which is the best front-end framework.pdf
 
Bootstrap 4 Online Training Course Book Sample
Bootstrap 4 Online Training Course Book SampleBootstrap 4 Online Training Course Book Sample
Bootstrap 4 Online Training Course Book Sample
 
AUSPC 2011: How we did it: NothingButSharePoint.com
AUSPC 2011: How we did it: NothingButSharePoint.comAUSPC 2011: How we did it: NothingButSharePoint.com
AUSPC 2011: How we did it: NothingButSharePoint.com
 
CVNUG - Share Point Development
CVNUG - Share Point DevelopmentCVNUG - Share Point Development
CVNUG - Share Point Development
 
Sharepoint tips and tricks
Sharepoint tips and tricksSharepoint tips and tricks
Sharepoint tips and tricks
 
Blooming SharePoint Design
Blooming SharePoint DesignBlooming SharePoint Design
Blooming SharePoint Design
 
Bootstrap seminar presentation
Bootstrap seminar presentationBootstrap seminar presentation
Bootstrap seminar presentation
 
9182618.ppt
9182618.ppt9182618.ppt
9182618.ppt
 
Convert PSD to Twitter Bootstrap
Convert PSD to Twitter BootstrapConvert PSD to Twitter Bootstrap
Convert PSD to Twitter Bootstrap
 
What's new in SharePoint 2013 - Discover it
What's new in SharePoint 2013 - Discover itWhat's new in SharePoint 2013 - Discover it
What's new in SharePoint 2013 - Discover it
 
Introduction to Branding SharePoint
Introduction to Branding SharePointIntroduction to Branding SharePoint
Introduction to Branding SharePoint
 
Site Templates in SP 13
Site Templates in SP 13Site Templates in SP 13
Site Templates in SP 13
 
How we make websites (IWMW2009)
How we make websites (IWMW2009)How we make websites (IWMW2009)
How we make websites (IWMW2009)
 
Branding 101
Branding 101Branding 101
Branding 101
 
You got Microsoft Teams! Now let's build modern intranet on SharePoint - Team...
You got Microsoft Teams! Now let's build modern intranet on SharePoint - Team...You got Microsoft Teams! Now let's build modern intranet on SharePoint - Team...
You got Microsoft Teams! Now let's build modern intranet on SharePoint - Team...
 
RWD - Bootstrap
RWD - BootstrapRWD - Bootstrap
RWD - Bootstrap
 
SharePoint as a Web CMS
SharePoint as a Web CMSSharePoint as a Web CMS
SharePoint as a Web CMS
 

Mais de Thomas Daly

Mais de Thomas Daly (20)

Building a Microsoft Teams Provisioning Process using Power Apps & Power Auto...
Building a Microsoft Teams Provisioning Process using Power Apps & Power Auto...Building a Microsoft Teams Provisioning Process using Power Apps & Power Auto...
Building a Microsoft Teams Provisioning Process using Power Apps & Power Auto...
 
M365 global developer bootcamp 2019 Intro to SPFx Version
M365 global developer bootcamp 2019 Intro to SPFx VersionM365 global developer bootcamp 2019 Intro to SPFx Version
M365 global developer bootcamp 2019 Intro to SPFx Version
 
M365 global developer bootcamp 2019 PA
M365 global developer bootcamp 2019  PAM365 global developer bootcamp 2019  PA
M365 global developer bootcamp 2019 PA
 
M365 global developer bootcamp 2019
M365 global developer bootcamp 2019M365 global developer bootcamp 2019
M365 global developer bootcamp 2019
 
Cross Site Collection Navigation with SPFX, PowerShell PnP, PnP-JS, Office UI
Cross Site Collection Navigation with SPFX, PowerShell PnP, PnP-JS, Office UICross Site Collection Navigation with SPFX, PowerShell PnP, PnP-JS, Office UI
Cross Site Collection Navigation with SPFX, PowerShell PnP, PnP-JS, Office UI
 
New Jersey Azure Bootcamp 2019
New Jersey Azure Bootcamp 2019New Jersey Azure Bootcamp 2019
New Jersey Azure Bootcamp 2019
 
Cross Site Collection Navigation
Cross Site Collection NavigationCross Site Collection Navigation
Cross Site Collection Navigation
 
Learn from my Mistakes - Building Better Solutions in SPFx
Learn from my  Mistakes - Building Better Solutions in SPFxLearn from my  Mistakes - Building Better Solutions in SPFx
Learn from my Mistakes - Building Better Solutions in SPFx
 
Cross Site Collection Navigation using SPFx, Powershell PnP & PnP-JS
Cross Site Collection Navigation using SPFx, Powershell PnP & PnP-JSCross Site Collection Navigation using SPFx, Powershell PnP & PnP-JS
Cross Site Collection Navigation using SPFx, Powershell PnP & PnP-JS
 
O365 Developer Bootcamp NJ 2018 - Material
O365 Developer Bootcamp NJ 2018 - MaterialO365 Developer Bootcamp NJ 2018 - Material
O365 Developer Bootcamp NJ 2018 - Material
 
Things you can do
Things you can doThings you can do
Things you can do
 
Global o365 developer bootcamp nj - slides
Global o365 developer bootcamp   nj - slidesGlobal o365 developer bootcamp   nj - slides
Global o365 developer bootcamp nj - slides
 
Branding Office 365 w/ Front End Tools + SharePoint PnP
Branding Office 365 w/ Front End Tools + SharePoint PnPBranding Office 365 w/ Front End Tools + SharePoint PnP
Branding Office 365 w/ Front End Tools + SharePoint PnP
 
Global Office 365 Developer Bootcamp - Closing Remarks
Global Office 365 Developer Bootcamp - Closing RemarksGlobal Office 365 Developer Bootcamp - Closing Remarks
Global Office 365 Developer Bootcamp - Closing Remarks
 
Introduction to SharePoint Patterns and Practices (PnP)
Introduction to SharePoint Patterns and Practices (PnP)Introduction to SharePoint Patterns and Practices (PnP)
Introduction to SharePoint Patterns and Practices (PnP)
 
Intro to the Office UI Fabric
Intro to the Office UI FabricIntro to the Office UI Fabric
Intro to the Office UI Fabric
 
Branding office 365 with front end tooling
Branding office 365 with front end toolingBranding office 365 with front end tooling
Branding office 365 with front end tooling
 
Things you can do to brand Office 365 now
Things you can do to brand Office 365 nowThings you can do to brand Office 365 now
Things you can do to brand Office 365 now
 
Gab2017 science-lab
Gab2017 science-labGab2017 science-lab
Gab2017 science-lab
 
NJ Office 365 User Group March 2017 - Intro
NJ Office 365 User Group March 2017 - IntroNJ Office 365 User Group March 2017 - Intro
NJ Office 365 User Group March 2017 - Intro
 

Último

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Último (20)

A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 

The A to Z of Building a Responsive SharePoint Site with Bootstrap

  • 1. The A to Z of Building a Responsive SharePoint Site with Bootstrap BY THOMAS DALY
  • 2. Topics  What is Bootstrap  Responsive Design  Why Bootstrap  Implementation  Grids  Media Queries  UI Components  Expectations  SharePoint Considerations  Tools  Resources  Live Examples / Intranet Site  Real World Examples
  • 3. About Me  Senior SharePoint Consultant Extraordinaire  Branding & Developer  Focused on the UI side of things  Community Involvement  Speaker  NJ SharePoint User Group Organizer  SharePoint Saturday NYC Organizer  SharePoint Saturday NJ Organizer  My SharePoint Blog  MSDN forums (eh not so much)
  • 4. About Bootstrap ... AND RESPONSIVE DESIGN
  • 5. What is Bootstrap?  The most popular HTML, CSS, and JS framework  Used for developing responsive, mobile first projects on the web.  Mobile First Strategy  Works and looks great on the mobile device.  As the devices scale in the size the content scales and experience is enhanced.
  • 7. Responsive Web Design  Crafting sites that provide an optimal viewing and interaction experience  Easy reading and navigation  Minimal resizing, panning, and scrolling  Works across a wide range of devices
  • 9. Why Choose Bootstrap?  Speed of Development  Use of ready made code blocks and pre-defined styles.  Responsiveness  Mobile devices continue to grow in popularity year after year.  Use of Bootstrap's grid system and classes make it easier.  Consistency  Uniformity, same experience across Internet Explorer, Chrome, and Firefox  Customizable  Ability to fine tune your bootstrap package.  Support  Large user community behind it. Constantly being updated. Lots of documentation  Themes  There are a large number of Themes available and either free or very inexpensive
  • 10. Similar Responsive Frameworks  Bootstrap is not alone. There are numerous frameworks that are similar. The key to picking one is to understand your requirements.  Semantic UI  ZURB Foundation  Skeleton  HTML Boilerplate  Almost infinitely more…
  • 11. Bootstrap Components  Grids – Defining pages in terms of columns and rows  Typography – Headings / body elements  Glyphs – icons that are font based, scalable  Navigation – responsive navigation  Images – responsive images  Helper Classes – clearfix / show / hide / centers  Responsive Utilities – hide / show content via class  Javascript - Carousel, Tooltip, Tab, Modal, Alerts
  • 12. Grid System  Easy to use grid system for creating rows & columns for your content https://getbootstrap.com/examples/grid/
  • 13. Example Grid: Mobile, Tablet, & Desktop
  • 14. Media Queries  Allows you to craft CSS to scope media features such as height or width.  Bootstrap has pre-defined breakpoints mobile, tablet, desktop, & large desktop  Necessary to know in order to achieve responsive.
  • 16. My Personal Disclaimer  Mobile Design works best on sites where you the developer, designer, or owner have the most control over the content being displayed and how the users interacts with that content.  SharePoint Lists, Libraries, Web Parts, Page Layouts, Site Templates are generally not responsive, and therefore can be difficult (sometimes impossible) to convert.  To obtain 100% perfect mobile experience will take a lot of work. It’s recommended that your sites have custom master page, css, page layouts, and web parts.
  • 17. What to Expect with SharePoint & Bootstrap  SharePoint is semi-responsive, but some aspects cannot be made responsive without extensive amounts of time and effort.  When creating new items (page layouts, web parts, display templates) you’ll be able to put your best foot forward for mobile. As the screen real estate increases your content will grow and gradually be enhanced.  When working with existing SharePoint components, you’ll be forces to write media queries to gracefully degrade these items to work on smaller screen real estate.
  • 18. Getting Started  Bootstrap v.3.3.5  Bootstrap Content Delivery Network (CDN)  Install steps & Page Examples  http://getbootstrap.com/getting-started  http://getbootstrap.com/getting-started/#examples
  • 19. Master Page Modifications  HTML5 doctype  Bootstrap makes use of certain HTML elements and CSS properties that require the use of the HTML5 doctype. Include it at the beginning of all your projects.  Meta Tags  To ensure proper rendering and touch zooming, add the viewport meta tag to your <head>.
  • 20. SharePoint Considerations Devices  Turn off Mobile Browsing  This will make mobile devices use the normal UI Mobile Browsing View
  • 21. SharePoint Considerations Box Model Issues  Bootstrap uses border-box  SharePoint uses content-box  This causes SharePoint components to look broken in particular areas  Apply a reset to the broken pieces The Box Model Explained
  • 22. Box Sizing Explained  border-box  The width and height properties (and min/max properties) includes content, padding and border, but not the margin  content-box  The width and height properties (and min/max properties) includes only the content. Border, padding, or margin are not included https://jsfiddle.net/e9gn3q83/
  • 23. SharePoint Considerations Navigation  The most challenging task  You’ll need to change the default HTML markup  http://thomasdaly.net/2015/06/28/bootstrap- responsive-navigation-in-sharepoint/  Navigation will no longer be hover, but touch.  This can disable top tier nodes w/ children
  • 24. SharePoint Considerations Sites & Pages Publishing (the way to go)  Publishing Feature is required  Publishing Sites use page layouts  Custom Page Layouts are the best way to control how the page responds  Wrap your Web Part Zones & Content Areas in columns and rows using the Bootstrap grid classes Team Sites  Team Sites are not good because they use Text Layouts  Text Layouts are pre-defined, not customizable, and not responsive  Existing Team Sites pages would need to be re-created using a custom responsive page layout.
  • 25. SharePoint Considerations Web Parts  Try to plan ahead which web parts will be allowed, or define a set of web parts that you will be primarily using throughout your site.  The best types of web parts are Custom, Data Views or Content By Search  Custom & Data Views – you can create the html markup and styles  Content By Search – you can utilize display templates which allow you to control the html. (styles can be applied separately)  The worst types of web parts are Out Of The Box (OOTB) & List Views  Out Of The Box (OOTB) web parts you have no control over how they render.  List Views columns can break your design (unless you change to custom display template)
  • 26. SharePoint Considerations Site Templates  You can make Search, Wiki, Community Portal, Blog Sites responsive but not easily  Be prepared to write media queries to override default styles per each type of template  Difficult, Yes. Challenging, Yes. But Possible
  • 27. SharePoint Considerations Lists & Libraries  Not very responsive and would be very tough to make responsive  Similar issue are web parts, columns and <tables> are the enemy.  Lists & Libraries are <table> based html elements and these components are not that responsive  Difficult, Extreme. Possible, with code? Advice = Stay Away
  • 29. Tools for the Job  Chrome  Emulation Mode  Nice Presets  FireFox  Emulation Mode  OK Presets  Internet Explorer
  • 30. Other Bootstrap / SharePoint Projects  Bootstrap – online documentation, examples  http://getbootstrap.com/  Responsive SharePoint CodePlex Project (foundations or server only)  Bootstrap (2 & 3)  ZURB Foundation (4)  https://responsivesharepoint.codeplex.com/  ShareBoot – Responsive SharePoint 2013 Theme  http://www.topsharepoint.com/shareboot-responsive-sharepoint-2013-theme  Twitter Bootstrap for SharePoint (2010)  Bootstrap v2.2.1  https://bootstrapsharepoint.codeplex.com/
  • 31. Alternative PnP Project  SharePoint 2013/2016 Responsive UI  This solution provides you the capability to enable Responsive UI for a Site Collection in Microsoft SharePoint 2013/2016 on-premises. The solution leverages some JavaScript embedding and CSS overriding, in order to make responsive the out of the box UI of a classic Team Site (STS#0).  Solution Overview  The solution leverages some JavaScript embedding and CSS overriding to convert the out of the box UI of any SharePoint 2013/2016 Team Site (STS#0) into a Responsive UI. The Responsive UI supports three rendering models:  Desktop: screen width above 768px  Tablet: screen width between 481px and 768px  SmartPhone: screen width lower than or equal to 480px  https://github.com/OfficeDev/PnP-Tools/tree/master/Solutions/SharePoint.UI.Responsive
  • 32. Real World Examples  B&R Business Solutions  O365 Public  http://www.bandrsolutions.com  Center for Retail Compliance  SP2013, On-Prem Public  http://www.retailcompliancecenter.org/  ATIDAN  O365 Public  http://www.atidan.com