| One aspect of building a website, especially in SharePoint, that doesn't necessarily get a lot of thought is how the site will look on different devices. Almost everyone nowadays has a laptop and a phone and probably an iPad too. So what happens if they want to look at their SharePoint site to do something from a device that isn't a computer or laptop? How will the site look on the device? Will it just be the same computer browser version that will require the user to scroll all around the page and zoom in just to do anything?
With responsive branding, a SharePoint site can resize and look good on any device. Responsive branding eliminates the need to build multiple versions of the same page for different devices. With a few prebuilt pages that have custom branding in them, you'll barely have to worry about making the site look good on other devices.
What this boils down to is a design first approach to customizing SharePoint to be easy for users to use and navigate. In fact, SimpleSharepoint has developed many navigation add-ons for SharePoint to make it more user friendly, you can find them here.
This blog post provides design guidance for responsive design using a very popular framework called Bootstrap. You can use a number of different frameworks, but for SharePoint, we found this one to be most compatible and easy to maintain.
Each page type in the SharePoint authoring experience can have its own rules for how it applies the responsive grid. This is to ensure that each page looks great, regardless of what device it's designed for, and that the experience is optimized for that environment. The basic grid in the SharePoint desktop experience is a 12-column structure. The number of columns and gutter width adjust based on the screen width. The below illustration shows the layouts and how they are linked together in a heirachy:
- Masterpages + CSS
- Responsive layouts pages
Here are some quick pro-tips on using this framework on your SharePoint site:
- Add vertical spacing - You can easily add vertical spacing to your columns with this code:
[class*="col-"] {margin-bottom: 30px;}
How to disable responsiveness - There can be situations when you would prefer your page to behave as a non-responsive. These could be when preparing your web page for print or generating output for PDF. Basic steps to disable responsiveness:
- Omit a <meta name="viewport" ...>
- Set a fix width for your .container. E.g., .container {width: 1000px !important;}
- How to use heading classes - You often face a problem when you need to have a visually small heading but it should be h2. To mimic the appearance of h4, just add .h4 to your h2. See the following example:
<h2 class="h4">This heading will look like h4 but it is h2.</h2>
Ready to dig in? More info on this add-on can be found here: Bootstrap
We love helping with SharePoint and it's all we do so feel free to contact us!
Mention this post and we'll send you a white paper on all of the ways we can help you customize SharePoint for your needs! |
Action History /_layouts/15/images/Infowise/SmartActionPro/history16x16.png javascript:SP.SOD.registerSod('smartactionprosupport.js', '/_layouts/15/Infowise/SmartActionPro/smartactionprosupport.js');SP.SOD.execute('smartactionprosupport.js', 'iwsapShowActionHistory', null, '{SiteUrl}', '{ListId}', '', '{ItemId}', '15/'); 0x0 0x1 ContentType 0x01 1001 Run Actions /_layouts/15/images/Infowise/SmartActionPro/run16x16.png javascript:SP.SOD.registerSod('smartactionprosupport.js', '/_layouts/15/Infowise/SmartActionPro/smartactionprosupport.js');SP.SOD.execute('smartactionprosupport.js', 'iwsapShowExecuteActionDialog', null, '{SiteUrl}', '{ListId}', '{ItemId}', ''); 0x0 0x1 ContentType 0x01 1001 Compliance Details javascript:if (typeof CalloutManager !== 'undefined' && Boolean(CalloutManager) && Boolean(CalloutManager.closeAll)) CalloutManager.closeAll(); commonShowModalDialog('{SiteUrl}'+
'/_layouts/15/itemexpiration.aspx'
+'?ID={ItemId}&List={ListId}', 'center:1;dialogHeight:500px;dialogWidth:500px;resizable:yes;status:no;location:no;menubar:no;help:no', function GotoPageAfterClose(pageid){if(pageid == 'hold') {STSNavigate(unescape(decodeURI('{SiteUrl}'))+
'/_layouts/15/hold.aspx'
+'?ID={ItemId}&List={ListId}'); return false;} if(pageid == 'audit') {STSNavigate(unescape(decodeURI('{SiteUrl}'))+
'/_layouts/15/Reporting.aspx'
+'?Category=Auditing&backtype=item&ID={ItemId}&List={ListId}'); return false;} if(pageid == 'config') {STSNavigate(unescape(decodeURI('{SiteUrl}'))+
'/_layouts/15/expirationconfig.aspx'
+'?ID={ItemId}&List={ListId}'); return false;}}, null); 0x0 0x1 ContentType 0x01 898 Document Set Version History /_layouts/15/images/versions.gif?rev=40 javascript:SP.UI.ModalDialog.ShowPopupDialog('{SiteUrl}'+
'/_layouts/15/DocSetVersions.aspx'
+ '?List={ListId}&ID={ItemId}') 0x0 0x0 ContentType 0x0120D520 330 Send To other location /_layouts/15/images/sendOtherLoc.gif?rev=40 javascript:GoToPage('{SiteUrl}' +
'/_layouts/15/docsetsend.aspx'
+ '?List={ListId}&ID={ItemId}') 0x0 0x0 ContentType 0x0120D520 350 Add Alert /_layouts/15/images/Infowise/SmartAlertPro/alert16x16.gif javascript:iwAlertOpenDialog('{SiteUrl}/_layouts/15/Infowise/Settings/Design.aspx?SPHostUrl={SiteUrl}&List={ListId}&ID={ItemId}&Mode=Alerts&Modal=1', 'Add Alert'); 0x80 0x0 ContentType 0x01 1001
Action History /_layouts/15/images/Infowise/SmartActionPro/history16x16.png javascript:SP.SOD.registerSod('smartactionprosupport.js', '/_layouts/15/Infowise/SmartActionPro/smartactionprosupport.js');SP.SOD.execute('smartactionprosupport.js', 'iwsapShowActionHistory', null, '{SiteUrl}', '{ListId}', '', '{ItemId}', '15/'); 0x0 0x1 ContentType 0x01 1001 Run Actions /_layouts/15/images/Infowise/SmartActionPro/run16x16.png javascript:SP.SOD.registerSod('smartactionprosupport.js', '/_layouts/15/Infowise/SmartActionPro/smartactionprosupport.js');SP.SOD.execute('smartactionprosupport.js', 'iwsapShowExecuteActionDialog', null, '{SiteUrl}', '{ListId}', '{ItemId}', ''); 0x0 0x1 ContentType 0x01 1001 Compliance Details javascript:if (typeof CalloutManager !== 'undefined' && Boolean(CalloutManager) && Boolean(CalloutManager.closeAll)) CalloutManager.closeAll(); commonShowModalDialog('{SiteUrl}'+
'/_layouts/15/itemexpiration.aspx'
+'?ID={ItemId}&List={ListId}', 'center:1;dialogHeight:500px;dialogWidth:500px;resizable:yes;status:no;location:no;menubar:no;help:no', function GotoPageAfterClose(pageid){if(pageid == 'hold') {STSNavigate(unescape(decodeURI('{SiteUrl}'))+
'/_layouts/15/hold.aspx'
+'?ID={ItemId}&List={ListId}'); return false;} if(pageid == 'audit') {STSNavigate(unescape(decodeURI('{SiteUrl}'))+
'/_layouts/15/Reporting.aspx'
+'?Category=Auditing&backtype=item&ID={ItemId}&List={ListId}'); return false;} if(pageid == 'config') {STSNavigate(unescape(decodeURI('{SiteUrl}'))+
'/_layouts/15/expirationconfig.aspx'
+'?ID={ItemId}&List={ListId}'); return false;}}, null); 0x0 0x1 ContentType 0x01 898 Document Set Version History /_layouts/15/images/versions.gif?rev=40 javascript:SP.UI.ModalDialog.ShowPopupDialog('{SiteUrl}'+
'/_layouts/15/DocSetVersions.aspx'
+ '?List={ListId}&ID={ItemId}') 0x0 0x0 ContentType 0x0120D520 330 Send To other location /_layouts/15/images/sendOtherLoc.gif?rev=40 javascript:GoToPage('{SiteUrl}' +
'/_layouts/15/docsetsend.aspx'
+ '?List={ListId}&ID={ItemId}') 0x0 0x0 ContentType 0x0120D520 350 Add Alert /_layouts/15/images/Infowise/SmartAlertPro/alert16x16.gif javascript:iwAlertOpenDialog('{SiteUrl}/_layouts/15/Infowise/Settings/Design.aspx?SPHostUrl={SiteUrl}&List={ListId}&ID={ItemId}&Mode=Alerts&Modal=1', 'Add Alert'); 0x80 0x0 ContentType 0x01 1001
|
|
|