SlideShare ist ein Scribd-Unternehmen logo
1 von 44
Bootstrap for Beginners 
Your introduction to Responsive Design and SharePoint 
D’arce Hess 
SharePoint Interface Developer 
SharePoint Saturday New Hampshire #SPSNH – 10/18/2014
The Test 
1 .Back_Row{ 
2 move to front 
3 }
For Coders 
1 $(“tr:last”).each(function () { 
2 moveForward(); 
3 });
Who am I? 
D’arce Hess 
Developer, Athlete and Musician 
Atrion 
Blog: www.thebrandingbutterfly.com 
Website: www.atrion.net 
Email: dhess@atrion.net 
@darcehess 
www.linkedin.com/in/darcehess/ 
http://www.youtube.com/user/DarceHess
Agenda 
Introduction 
to Bootstrap 
Sass & LESS 
Responsive 
Design 
Boot Camp 
Integrating 
with 
SharePoint 
It’s a Bug’s 
Life 
Voila Questions
INTRODUCTION 
TO BOOTSTRAP
What is Bootstrap? 
“Bootstrap is the most popular HTML, CSS and 
JS framework for developing responsive, mobile 
first projects on the web” 
Where to get it: 
http://getbootstrap.com/
Why should we consider using it? 
Pros 
• Allows for faster prototyping 
• Grid has already been established 
• Easy to engage newer web developers 
• SASS and LESS 
Cons 
• Can be bloated 
• Some resets need to be made to work with 
SharePoint 
• May be too restrictive for experienced developers
The Grid
Our Mock Up 
• Keep it simple 
• Think Containers, Not 
Content
After Development
DEMO
How to break it down 
• Contains a container 
• Contains a row 
• Contains columns that 
equal to 12
Containers
Rows 
Inside each container is 
a row. You can also 
have containers inside 
of a row (nested). 
A row equals 12 
columns total.
Columns 
Every row needs to have 12 columns 
You can split the columns in any 
division by 12
How to know what column size to use 
You can add multiple classes to an element to adjust how it will display on 
different devices.
The Box Model 
Bootstrap uses box-sizing: border-box; 
This means that padding does not affect the computed width of an element. 
SharePoint uses box-sizing: content-box; 
This means that if you add a border to an element it equals the element + 2px.
Bootstrap Extras 
Glyphicons Dropdowns Button 
Dropdowns 
Several types of 
navigation 
Forms Pagination
Sass & LESS
Sass 
Sass is a pre-processor for CSS 
English translation: You can now write CSS and compile the same way you 
would write regular code. 
Variables 
Compiles to 
Nesting
Sass - continued 
Operators 
Do you remember your order of 
operations? 
Mixins
Sass and Less Support 
Visual Studio Plug-ins 
Mindscape Web Workbench 
SassyStudio
RESPONSIVE 
DESIGN 
BOOTCAMP
RWD History Lesson 
The term “Responsive Web Design” was coined by Ethan Marcotte in his 
article “A List Apart”. 
States that there are three requirements to implement Responsive Design: 
• CSS3 Media Queries 
• Fluid Grid 
• Flexible Images 
Three main types 
• Responsive Web Design 
• Adaptive Design 
• Progressive Enhancement (mobile-first)
With great power…. 
Just because you can, doesn’t mean that you should! 
Time to think about the user experience: 
• Do you want your users to scroll forever when down on a mobile 
device? 
• That beautiful banner image and rotator do not add any value on a 
phone. 
• Mobile users are using data to load your site, size of images and files 
matters. Time to optimize. 
• Think of options for links and buttons to be easier to use for touch. 
• Remember, there is no hover functionality on a mobile device
INTEGRATION 
WITH 
SHAREPOINT
CodePlex – Responsive SharePoint 
To help get you started: This was a labor of love created by community 
members for Community members. 
http://responsivesharepoint.codeplex.com/
Bring in the .Net controls 
Set up your frame the same and then bring in the webpart containers inside of your columns 
This is a page layout example
Master Page Controls 
Master page
MySites and Team Sites 
Both of these layouts us the “Wiki” page layout. These are out-of-the-box layouts 
that do not come with Publishing Features enabled. 
This means you cannot create a custom layout for these pages. You can make 
them responsive by adjusting the tables in the layout, but it is very difficult to do.
IT’S A BUG’S LIFE
Bootstrap 3 resets for SharePoint
Browser Compatibility 
SharePoint 2010 
SharePoint 2010 automatically reverts users to using IE8. 
You will need to plan on installing the following javascript libraries to emulate 
HTML5 and CSS3 properties 
• Respond.js 
• Modernizr 
• HTML5 shiv 
You will need to adjust your media queries
Browser Compatibility - continued 
SharePoint 2013 
SharePoint 2013 supports modern browsers staring with IE9+ 
<form> </form tag is not supported. 
If using Design Manager, all code must be able to be 
Validated through an IE6 xml validator. 
Office 365 
Proceed with caution. If Microsoft locks master pages, this will become 
a lot more difficult to create.
Tables – Yup, I said it 
Okay, get it out of your system. Tables still exist in SharePoint and there is some 
information that should be presented in tables. Tables are hard to deal with and 
they are made to be rigid. 
For minor tables of information, we can use FooTable as an option. It is jQuery 
plug-in that will combine information from fields into an expandable container.
FooTable Example
VOILA
Live Examples 
CalGuard 
http://www.calguard.ca.gov
Additional Example 
San Jose Community College District 
http://www.sjeccd.edu/
QUESTIONS
Was made possible by the generous 
support of the following sponsors… 
And by your participation… Thank you!
Join us for the raffle & SharePint following the 
last session 
Be sure to fill out your eval form & 
turn in at the end of the day for a 
ticket to the BIG raffle!
THANK YOU

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

FULL stack -> MEAN stack
FULL stack -> MEAN stackFULL stack -> MEAN stack
FULL stack -> MEAN stack
 
Javascript
JavascriptJavascript
Javascript
 
Grocery app aj
Grocery app ajGrocery app aj
Grocery app aj
 
Basics of JavaScript
Basics of JavaScriptBasics of JavaScript
Basics of JavaScript
 
SRS For Online Store
SRS For Online StoreSRS For Online Store
SRS For Online Store
 
Laravel ppt
Laravel pptLaravel ppt
Laravel ppt
 
Epics and User Stories
Epics and User StoriesEpics and User Stories
Epics and User Stories
 
Javascript
JavascriptJavascript
Javascript
 
Flipkart Software requirements specification SRS
Flipkart Software requirements specification SRSFlipkart Software requirements specification SRS
Flipkart Software requirements specification SRS
 
Javascript basics
Javascript basicsJavascript basics
Javascript basics
 
Library management system project
Library management system projectLibrary management system project
Library management system project
 
JavaScript Programming
JavaScript ProgrammingJavaScript Programming
JavaScript Programming
 
Online shopping portal: Software Project Plan
Online shopping portal: Software Project PlanOnline shopping portal: Software Project Plan
Online shopping portal: Software Project Plan
 
Online shopping report-6 month project
Online shopping report-6 month projectOnline shopping report-6 month project
Online shopping report-6 month project
 
On-line book store presentation
On-line book store presentation On-line book store presentation
On-line book store presentation
 
Online News Portal System
Online News Portal SystemOnline News Portal System
Online News Portal System
 
Learn react-js
Learn react-jsLearn react-js
Learn react-js
 
Intro to front end development Basic
Intro to front end development BasicIntro to front end development Basic
Intro to front end development Basic
 
Order now – restaurant management system
Order now – restaurant management systemOrder now – restaurant management system
Order now – restaurant management system
 
Supermarket management system
Supermarket management systemSupermarket management system
Supermarket management system
 

Andere mochten auch

sptc_presentation
sptc_presentationsptc_presentation
sptc_presentation
D'arce Hess
 
Branding 101
Branding 101Branding 101
Branding 101
D'arce Hess
 

Andere mochten auch (13)

Themes & Composed Looks in SharePoint 2013 & O365
Themes & Composed Looks in SharePoint 2013 & O365Themes & Composed Looks in SharePoint 2013 & O365
Themes & Composed Looks in SharePoint 2013 & O365
 
Responsive Web Design
Responsive Web DesignResponsive Web Design
Responsive Web Design
 
Intro to Design Manager
Intro to Design ManagerIntro to Design Manager
Intro to Design Manager
 
Putting on your Design Bootstraps, Intro to Responsive Design in SharePoint
Putting on your Design Bootstraps, Intro to Responsive Design in SharePointPutting on your Design Bootstraps, Intro to Responsive Design in SharePoint
Putting on your Design Bootstraps, Intro to Responsive Design in SharePoint
 
sptc_presentation
sptc_presentationsptc_presentation
sptc_presentation
 
Content Management & Page Structure - Best Practices for Structuring Content ...
Content Management & Page Structure - Best Practices for Structuring Content ...Content Management & Page Structure - Best Practices for Structuring Content ...
Content Management & Page Structure - Best Practices for Structuring Content ...
 
WordPress and Business Intelligence
WordPress and Business IntelligenceWordPress and Business Intelligence
WordPress and Business Intelligence
 
The Mobile Revolution
The Mobile RevolutionThe Mobile Revolution
The Mobile Revolution
 
The good, the bad, the ugly - Best Practices for Design in SharePoint
The good, the bad, the ugly - Best Practices for Design in SharePointThe good, the bad, the ugly - Best Practices for Design in SharePoint
The good, the bad, the ugly - Best Practices for Design in SharePoint
 
Custom User Interface Creation with Content Types in Sharepoint 2013/O365
Custom User Interface Creation with Content Types in Sharepoint 2013/O365Custom User Interface Creation with Content Types in Sharepoint 2013/O365
Custom User Interface Creation with Content Types in Sharepoint 2013/O365
 
Intro to design_manager
Intro to design_managerIntro to design_manager
Intro to design_manager
 
Branding 101
Branding 101Branding 101
Branding 101
 
Branding 101 extended
Branding 101 extendedBranding 101 extended
Branding 101 extended
 

Ähnlich wie Bootstrap for Beginners

Web Design & UI/UX Bootcamp [Online & Offline] In Bangla
Web Design & UI/UX Bootcamp [Online & Offline] In BanglaWeb Design & UI/UX Bootcamp [Online & Offline] In Bangla
Web Design & UI/UX Bootcamp [Online & Offline] In Bangla
Stack Learner
 
CVNUG - Share Point Development
CVNUG - Share Point DevelopmentCVNUG - Share Point Development
CVNUG - Share Point Development
ryanaoliveira
 

Ähnlich wie Bootstrap for Beginners (20)

The A to Z of Building a Responsive SharePoint Site with Bootstrap
The A to Z of Building a Responsive SharePoint Site with BootstrapThe A to Z of Building a Responsive SharePoint Site with Bootstrap
The A to Z of Building a Responsive SharePoint Site with Bootstrap
 
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
 
Design Systems are Coming... Are you Ready?
Design Systems are Coming... Are you Ready?Design Systems are Coming... Are you Ready?
Design Systems are Coming... Are you Ready?
 
SPS Monaco 2017 - The Lay of the Land of Client-Side Development circa 2017
SPS Monaco 2017 - The Lay of the Land of Client-Side Development circa 2017SPS Monaco 2017 - The Lay of the Land of Client-Side Development circa 2017
SPS Monaco 2017 - The Lay of the Land of Client-Side Development circa 2017
 
Web Design & UI/UX Bootcamp [Online & Offline] In Bangla
Web Design & UI/UX Bootcamp [Online & Offline] In BanglaWeb Design & UI/UX Bootcamp [Online & Offline] In Bangla
Web Design & UI/UX Bootcamp [Online & Offline] In Bangla
 
SEF 2014 - Responsive Design in SharePoint 2013
SEF 2014 - Responsive Design in SharePoint 2013SEF 2014 - Responsive Design in SharePoint 2013
SEF 2014 - Responsive Design in SharePoint 2013
 
CSS3 and a brief introduction to Google Maps API v3
CSS3 and a brief introduction to Google Maps API v3 CSS3 and a brief introduction to Google Maps API v3
CSS3 and a brief introduction to Google Maps API v3
 
SharePoint as a Web CMS
SharePoint as a Web CMSSharePoint as a Web CMS
SharePoint as a Web CMS
 
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 seminar presentation
Bootstrap seminar presentationBootstrap seminar presentation
Bootstrap seminar presentation
 
Mobile Monday Presentation: Responsive Web Design
Mobile Monday Presentation: Responsive Web DesignMobile Monday Presentation: Responsive Web Design
Mobile Monday Presentation: Responsive Web Design
 
Convert PSD to Twitter Bootstrap
Convert PSD to Twitter BootstrapConvert PSD to Twitter Bootstrap
Convert PSD to Twitter Bootstrap
 
RWD - Bootstrap
RWD - BootstrapRWD - Bootstrap
RWD - Bootstrap
 
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
 
Responsive Web Design Tutorial PDF for Beginners
Responsive Web Design Tutorial PDF for BeginnersResponsive Web Design Tutorial PDF for Beginners
Responsive Web Design Tutorial PDF for Beginners
 
How to choose the best frontend framework in 2022
How to choose the best frontend framework in 2022How to choose the best frontend framework in 2022
How to choose the best frontend framework in 2022
 
SEF2013 - Create a Business Solution, Step by Step, with No Managed Code
SEF2013 - Create a Business Solution, Step by Step, with No Managed CodeSEF2013 - Create a Business Solution, Step by Step, with No Managed Code
SEF2013 - Create a Business Solution, Step by Step, with No Managed Code
 
Enhancing SharePoint with Responsive Web Design
Enhancing SharePoint with Responsive Web DesignEnhancing SharePoint with Responsive Web Design
Enhancing SharePoint with Responsive Web Design
 
Scalable front-end architecture with Bootstrap 3 + Atomic CSS
Scalable front-end architecture with Bootstrap 3 + Atomic CSSScalable front-end architecture with Bootstrap 3 + Atomic CSS
Scalable front-end architecture with Bootstrap 3 + Atomic CSS
 
CVNUG - Share Point Development
CVNUG - Share Point DevelopmentCVNUG - Share Point Development
CVNUG - Share Point Development
 

Mehr von D'arce Hess

Mehr von D'arce Hess (18)

Collaboration from the Trenches : Building your Internal Communities with Mic...
Collaboration from the Trenches : Building your Internal Communities with Mic...Collaboration from the Trenches : Building your Internal Communities with Mic...
Collaboration from the Trenches : Building your Internal Communities with Mic...
 
Microsoft Teams for Education
Microsoft Teams for EducationMicrosoft Teams for Education
Microsoft Teams for Education
 
Collaboraton from the trenches
Collaboraton from the trenchesCollaboraton from the trenches
Collaboraton from the trenches
 
Breaking down the Microsoft Teams Architecture 200
Breaking down the Microsoft Teams Architecture 200Breaking down the Microsoft Teams Architecture 200
Breaking down the Microsoft Teams Architecture 200
 
Design your Modern Intranet using SharePoint PnP Design Assets
Design your Modern Intranet using SharePoint PnP Design Assets Design your Modern Intranet using SharePoint PnP Design Assets
Design your Modern Intranet using SharePoint PnP Design Assets
 
Empowering Business Users with Flexible SharePoint Customization
Empowering Business Users with Flexible SharePoint Customization Empowering Business Users with Flexible SharePoint Customization
Empowering Business Users with Flexible SharePoint Customization
 
It's Alive! Bring your Intranet to Life with PowerApps and Flow
It's Alive! Bring your Intranet to Life with PowerApps and FlowIt's Alive! Bring your Intranet to Life with PowerApps and Flow
It's Alive! Bring your Intranet to Life with PowerApps and Flow
 
Developing User-Friendly SPFx Web Parts with Governance In-Mind
Developing User-Friendly SPFx Web Parts with Governance In-MindDeveloping User-Friendly SPFx Web Parts with Governance In-Mind
Developing User-Friendly SPFx Web Parts with Governance In-Mind
 
End User Adoption for the Real World
End User Adoption for the Real WorldEnd User Adoption for the Real World
End User Adoption for the Real World
 
Your Road to Modern Communication Sites
Your Road to Modern Communication SitesYour Road to Modern Communication Sites
Your Road to Modern Communication Sites
 
Your Road to Communication Sites
Your Road to Communication SitesYour Road to Communication Sites
Your Road to Communication Sites
 
Content Management and Page Structure for SharePoint
Content Management and Page Structure for SharePointContent Management and Page Structure for SharePoint
Content Management and Page Structure for SharePoint
 
Your Road to Modern Communication Sites
Your Road to Modern Communication SitesYour Road to Modern Communication Sites
Your Road to Modern Communication Sites
 
Good bad ugly_presentation
Good bad ugly_presentationGood bad ugly_presentation
Good bad ugly_presentation
 
Your Intranet, Your Way
Your Intranet, Your WayYour Intranet, Your Way
Your Intranet, Your Way
 
Your Intranet, Your Way
Your Intranet, Your WayYour Intranet, Your Way
Your Intranet, Your Way
 
Responsive Design & SharePoint - Is it right for you?
Responsive Design & SharePoint - Is it right for you?Responsive Design & SharePoint - Is it right for you?
Responsive Design & SharePoint - Is it right for you?
 
The Mobile Revolution
The Mobile RevolutionThe Mobile Revolution
The Mobile Revolution
 

KĂźrzlich hochgeladen

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

KĂźrzlich hochgeladen (20)

Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
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
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
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
 
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
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
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
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 

Bootstrap for Beginners

  • 1. Bootstrap for Beginners Your introduction to Responsive Design and SharePoint D’arce Hess SharePoint Interface Developer SharePoint Saturday New Hampshire #SPSNH – 10/18/2014
  • 2. The Test 1 .Back_Row{ 2 move to front 3 }
  • 3. For Coders 1 $(“tr:last”).each(function () { 2 moveForward(); 3 });
  • 4. Who am I? D’arce Hess Developer, Athlete and Musician Atrion Blog: www.thebrandingbutterfly.com Website: www.atrion.net Email: dhess@atrion.net @darcehess www.linkedin.com/in/darcehess/ http://www.youtube.com/user/DarceHess
  • 5. Agenda Introduction to Bootstrap Sass & LESS Responsive Design Boot Camp Integrating with SharePoint It’s a Bug’s Life Voila Questions
  • 7. What is Bootstrap? “Bootstrap is the most popular HTML, CSS and JS framework for developing responsive, mobile first projects on the web” Where to get it: http://getbootstrap.com/
  • 8. Why should we consider using it? Pros • Allows for faster prototyping • Grid has already been established • Easy to engage newer web developers • SASS and LESS Cons • Can be bloated • Some resets need to be made to work with SharePoint • May be too restrictive for experienced developers
  • 10. Our Mock Up • Keep it simple • Think Containers, Not Content
  • 12. DEMO
  • 13. How to break it down • Contains a container • Contains a row • Contains columns that equal to 12
  • 15. Rows Inside each container is a row. You can also have containers inside of a row (nested). A row equals 12 columns total.
  • 16. Columns Every row needs to have 12 columns You can split the columns in any division by 12
  • 17. How to know what column size to use You can add multiple classes to an element to adjust how it will display on different devices.
  • 18. The Box Model Bootstrap uses box-sizing: border-box; This means that padding does not affect the computed width of an element. SharePoint uses box-sizing: content-box; This means that if you add a border to an element it equals the element + 2px.
  • 19. Bootstrap Extras Glyphicons Dropdowns Button Dropdowns Several types of navigation Forms Pagination
  • 21. Sass Sass is a pre-processor for CSS English translation: You can now write CSS and compile the same way you would write regular code. Variables Compiles to Nesting
  • 22. Sass - continued Operators Do you remember your order of operations? Mixins
  • 23. Sass and Less Support Visual Studio Plug-ins Mindscape Web Workbench SassyStudio
  • 25. RWD History Lesson The term “Responsive Web Design” was coined by Ethan Marcotte in his article “A List Apart”. States that there are three requirements to implement Responsive Design: • CSS3 Media Queries • Fluid Grid • Flexible Images Three main types • Responsive Web Design • Adaptive Design • Progressive Enhancement (mobile-first)
  • 26. With great power…. Just because you can, doesn’t mean that you should! Time to think about the user experience: • Do you want your users to scroll forever when down on a mobile device? • That beautiful banner image and rotator do not add any value on a phone. • Mobile users are using data to load your site, size of images and files matters. Time to optimize. • Think of options for links and buttons to be easier to use for touch. • Remember, there is no hover functionality on a mobile device
  • 28. CodePlex – Responsive SharePoint To help get you started: This was a labor of love created by community members for Community members. http://responsivesharepoint.codeplex.com/
  • 29. Bring in the .Net controls Set up your frame the same and then bring in the webpart containers inside of your columns This is a page layout example
  • 30. Master Page Controls Master page
  • 31. MySites and Team Sites Both of these layouts us the “Wiki” page layout. These are out-of-the-box layouts that do not come with Publishing Features enabled. This means you cannot create a custom layout for these pages. You can make them responsive by adjusting the tables in the layout, but it is very difficult to do.
  • 33. Bootstrap 3 resets for SharePoint
  • 34. Browser Compatibility SharePoint 2010 SharePoint 2010 automatically reverts users to using IE8. You will need to plan on installing the following javascript libraries to emulate HTML5 and CSS3 properties • Respond.js • Modernizr • HTML5 shiv You will need to adjust your media queries
  • 35. Browser Compatibility - continued SharePoint 2013 SharePoint 2013 supports modern browsers staring with IE9+ <form> </form tag is not supported. If using Design Manager, all code must be able to be Validated through an IE6 xml validator. Office 365 Proceed with caution. If Microsoft locks master pages, this will become a lot more difficult to create.
  • 36. Tables – Yup, I said it Okay, get it out of your system. Tables still exist in SharePoint and there is some information that should be presented in tables. Tables are hard to deal with and they are made to be rigid. For minor tables of information, we can use FooTable as an option. It is jQuery plug-in that will combine information from fields into an expandable container.
  • 38. VOILA
  • 39. Live Examples CalGuard http://www.calguard.ca.gov
  • 40. Additional Example San Jose Community College District http://www.sjeccd.edu/
  • 42. Was made possible by the generous support of the following sponsors… And by your participation… Thank you!
  • 43. Join us for the raffle & SharePint following the last session Be sure to fill out your eval form & turn in at the end of the day for a ticket to the BIG raffle!