SlideShare a Scribd company logo
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

More Related Content

PPTX
Intro to Branding SharePoint 2013
PDF
Style guide for share point 2013 branding
PPTX
Branding SharePoint 2013
PPTX
SharePoint Branding From Start to Finish
PPTX
Developing branding solutions for 2013
PPTX
Fulfilling the promise of Responsive Design with SharePoint 2013
PPTX
How to Improve the SharePoint UI Using Bootstrap 3
PPTX
Customizing the SharePoint 2013 user interface with JavaScript - Chris OBrien
Intro to Branding SharePoint 2013
Style guide for share point 2013 branding
Branding SharePoint 2013
SharePoint Branding From Start to Finish
Developing branding solutions for 2013
Fulfilling the promise of Responsive Design with SharePoint 2013
How to Improve the SharePoint UI Using Bootstrap 3
Customizing the SharePoint 2013 user interface with JavaScript - Chris OBrien

What's hot (20)

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

Viewers also liked (16)

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

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

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

More from Thomas Daly (20)

PPTX
Building a Microsoft Teams Provisioning Process using Power Apps & Power Auto...
PPTX
M365 global developer bootcamp 2019 Intro to SPFx Version
PPTX
M365 global developer bootcamp 2019 PA
PPTX
M365 global developer bootcamp 2019
PPTX
Cross Site Collection Navigation with SPFX, PowerShell PnP, PnP-JS, Office UI
PPTX
New Jersey Azure Bootcamp 2019
PPTX
Cross Site Collection Navigation
PPTX
Learn from my Mistakes - Building Better Solutions in SPFx
PPTX
Cross Site Collection Navigation using SPFx, Powershell PnP & PnP-JS
PPTX
O365 Developer Bootcamp NJ 2018 - Material
PDF
Things you can do
PPTX
Global o365 developer bootcamp nj - slides
PPTX
Branding Office 365 w/ Front End Tools + SharePoint PnP
PPTX
Global Office 365 Developer Bootcamp - Closing Remarks
PPTX
Introduction to SharePoint Patterns and Practices (PnP)
PPTX
Intro to the Office UI Fabric
PPTX
Branding office 365 with front end tooling
PPTX
Things you can do to brand Office 365 now
PPTX
Gab2017 science-lab
PPTX
NJ Office 365 User Group March 2017 - Intro
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 PA
M365 global developer bootcamp 2019
Cross Site Collection Navigation with SPFX, PowerShell PnP, PnP-JS, Office UI
New Jersey Azure Bootcamp 2019
Cross Site Collection Navigation
Learn from my Mistakes - Building Better Solutions in SPFx
Cross Site Collection Navigation using SPFx, Powershell PnP & PnP-JS
O365 Developer Bootcamp NJ 2018 - Material
Things you can do
Global o365 developer bootcamp nj - slides
Branding Office 365 w/ Front End Tools + SharePoint PnP
Global Office 365 Developer Bootcamp - Closing Remarks
Introduction to SharePoint Patterns and Practices (PnP)
Intro to the Office UI Fabric
Branding office 365 with front end tooling
Things you can do to brand Office 365 now
Gab2017 science-lab
NJ Office 365 User Group March 2017 - Intro

Recently uploaded (20)

PDF
August Patch Tuesday
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Tartificialntelligence_presentation.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Machine learning based COVID-19 study performance prediction
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
TLE Review Electricity (Electricity).pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Mushroom cultivation and it's methods.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Spectroscopy.pptx food analysis technology
August Patch Tuesday
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Programs and apps: productivity, graphics, security and other tools
Spectral efficient network and resource selection model in 5G networks
Tartificialntelligence_presentation.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Machine learning based COVID-19 study performance prediction
Reach Out and Touch Someone: Haptics and Empathic Computing
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
TLE Review Electricity (Electricity).pptx
Unlocking AI with Model Context Protocol (MCP)
A comparative analysis of optical character recognition models for extracting...
Building Integrated photovoltaic BIPV_UPV.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Diabetes mellitus diagnosis method based random forest with bat algorithm
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Mushroom cultivation and it's methods.pdf
Encapsulation_ Review paper, used for researhc scholars
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Spectroscopy.pptx food analysis technology

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