Showing posts with label css. Show all posts
Showing posts with label css. Show all posts

Wednesday, August 8, 2018

CSS for SharePoint Admins

Design

WebGradients
https://webgradients.com/
Free Fonts
http://iamvdo.me/en/blog/css-font-metrics-line-height-and-vertical-align

Admin


So you want to control what SharePoint displays on one SharePoint page.   CSS is the way to go.  But the CSS learning curve can be steep.  So here is a quick way for SharePoint Admins to add or remove functionallity.
MVP Mike Smith
http://techtrainingnotes.blogspot.com/2012/05/adding-javascript-and-css-to-sharepoint.html

Hide Approve / Reject Workflow Buttons

http://www.enjoysharepoint.com/Articles/Details/how-to-hide-approve-reject-workflow-approval-button-from-ribbon-22062.aspx

Columns Headers

Remove the column headers (Student and Grade ) from this list

First you need to edit the page and insert a content editor web part to your page.  You can put it anywhere on the page but the bottom will cause less issues.

Now edit Content Editor Web Part

image

image

image

Click “Click here to add new content” and select Edit Source from the ribbon
  
Copy and paste the CSS code from below into the HTML Source box.
Note even more CSS in the CSS Reference at the end of the article.
<style>
.ms-viewheadertr { display: none;}
</style>

Under Appearance Set Chrome Type to None
Click OK to save your webpart settings and save your page


If you want to remove everything …
Under List Views, set Toolbar Type to No Toolbar and under Appearance set Chrome Type to None.

App Part After Everything Removed


Security

Two ways - Prevent non-owners/designers editing the web part – thx Mike
1) For just that one web part, go to Modify Shared Web Part, expand the Advanced section and uncheckmark "Allow Editing in Personal View".
2) Modify the Permission Levels (or preferred: create new permission levels) that do not have "Manage Personal Views" checked.

https://social.msdn.microsoft.com/Forums/sharepoint/en-US/51964008-84bd-4880-9d9e-1e81a1897cc1/how-to-set-permissions-on-a-content-editor-web-part?forum=sharepointcustomizationlegacy

Extras

Now export your Content Editor Web Part and Save as a unique name such as … “Content Editor Web Part – Remove Columns Headers”

Import and add new webpart as needed.  (Note: dwp file extenstion)

SharePoint Site Admin
CSS Reference

Heather Soloman’s CSS Reference
https://sharepointexperience.com/about/resources/
https://web.archive.org/web/20170721180019/http://blog.sharepointexperience.com/2015/03/just-the-essentials-sharepoint-master-pages-2013

Modify Navigation Bar in SharePoint 2016

https://sharepoint.stackexchange.com/questions/207531/removing-the-word-sharepoint-from-top-of-page-in-sharepoint-2016
https://social.technet.microsoft.com/Forums/en-US/cd71eb61-b7b8-4bad-8fd8-c23cff25e898/remove-sites-link-from-suitebar?forum=SP2016
https://sharepoint.stackexchange.com/questions/217044/change-sharepoint-2016-site-header/217291

Remove Workflow in Ribbon

<style type="text/css">
a[id="Ribbon.Tasks.Workflow.Moderate-Large"]
{
display:none;
}           
</style>


Remove Column Headers from Lists

<style>
.ms-viewheadertr { display: none;}
</style>

Wednesday, April 11, 2018

How to Customize Community Site

Repost from
https://web.archive.org/web/20160124184643/http://mysharepointinsight.blogspot.co.uk:80/2013/04/how-to-customize-you-community-site.html
How to customize you community site badges
In my previous two posts I have shown you how to customize  level achievements of your members on your community site, but there is one more achievement your members can receive - badges.
Badges are special awards that administrators of community sites can give to those members they feel have given extra efforts in the community. Once a member receives a badge it is displayed throughout the site like this:

Badges are nothing more then items in a list that contain just one field (Badge name). Administrators can add new badges or modify existing ones in that list. The list is also called Badges and is created automatically in your community site.
For example my Badges list contains two badges:

Now lets modify their looks. Once again you should find those images that you would like to represent your badges.
For example:

Then upload them somewhere to SharePoint where you can reach them from your community site (I have uploaded them to the Site Assets library of my community site). To make the solution more generic be sure to name your images with the same name of the badge they are representing (like Professional and Expert in my case).
To make those images appear as our badges we will add some javascript and CSS styles. Open your site in SharePoint designer and add this following javascript to your page header

<script type="text/javascript">
function setBadge() {
var badges = document.getElementsByClassName("ms-comm-giftedBadgeIcon");
var i = 0;
while (i < badges.length) {
try {
badges[i].src = "/mcs/SiteAssets/" + badges[i].title + ".jpg";
}
catch (err) { }
i = i + 1;
}
}
_spBodyOnLoadFunctionNames.push("setBadge");
</script>
Be sure to match your image extension if it is different from .jpg.
Also we will override two css styles, one for the image (.ms-comm-giftedBadgeIcon) and one for the text of the badge (.ms-comm-giftedBadgeText) to make any necessary adjustments (most likely image size).
This are my styles (I have also added them to my site master):

<style type="text/css">
.ms-comm-giftedBadgeIcon
{
width:50px;
}
.ms-comm-giftedBadgeText
{
color:Green !important;
font-weight:bold;
}
</style>
And here is my end result:


































Thursday, December 21, 2017

SharePoint Branding

2019

Branding guidance for SharePoint

Branding guidance for SharePoint Online portals
https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-branding

How to brand SharePoint and Office 365 Out of the Box
https://sharepointmaven.com/how-to-brand-sharepoint-and-office-365-out-of-the-box/

Branding for SharePoint sites in Office 365https://www.abelsolutions.com/branding-sharepoint-sites-office-365/

SharePoint Site Theming
https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-theming/sharepoint-site-theming-overview

Theme Generator
https://developer.microsoft.com/en-us/fabric#/styles/themegenerator

Branding SharePoint: The New Normal (M365)
https://blogs.msdn.microsoft.com/bobgerman/2018/09/04/branding-sharepoint-the-new-normal/
https://bob1german.com/2018/09/04/branding-sharepoint-the-new-normal/

Office 365

Branding SharePoint: The New Normal

https://bob1german.com/2018/09/04/branding-sharepoint-the-new-normal/
Repost
https://techcommunity.microsoft.com/t5/Microsoft-SharePoint-Blog/Branding-SharePoint-The-New-Normal/ba-p/241855

2013 / 2016

Composed Looks

Deploy a custom theme in SharePoint
https://docs.microsoft.com/en-us/sharepoint/dev/general-development/how-to-deploy-a-custom-theme-in-sharepoint

SharePoint 2013: Creating a Composed Look
https://social.technet.microsoft.com/wiki/contents/articles/30903.sharepoint-2013-creating-a-composed-look.aspx

Use composed looks to brand SharePoint sites
https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/use-composed-looks-to-brand-sharepoint-sites

Step by Step: Create a SharePoint 2013 Composed Look
https://bniaulin.wordpress.com/2012/12/16/step-by-step-create-a-sharepoint-2013-composed-look/

Create a SharePoint 2013 Theme using Color Palette Tool
https://en.share-gate.com/blog/create-sharepoint2013-theme-using-color-palette-tool

Branding Links Recommended by Students (Thx Jon)

http://sharepoint.stackexchange.com/questions/84412/modifying-top-navigation-through-css

https://kogzee.wordpress.com/2013/08/07/style-sharepoint-2013-top-navigation-global-navigation-menu/

http://www.sharepointdiary.com/2014/11/sharepoint-2013-top-navigation-bar-branding-css.html

http://www.macaalay.com/2014/01/28/how-to-remove-sharepoint-2013-quick-launch-andor-top-link-bar/

https://discoveringsharepoint.wordpress.com/2013/03/19/programmatically-set-navigation-settings-in-sharepoint-2013/

https://chrisstahl.wordpress.com/2014/03/31/customizing-sharepoint-2013-global-navigation-with-css-and-jquery-part-5/

https://social.msdn.microsoft.com/Forums/en-US/eed6e044-3c14-43cd-9885-2490a0121e79/move-top-navigation-bar-in-sharepoint-2013?forum=sharepointcustomization

http://stackoverflow.com/questions/25036569/sharepoint-2013-css-move-around-global-navigation-elements

https://wordpress.org/support/topic/move-top-nav-bar-down

http://en.share-gate.com/blog/create-sharepoint2013-theme-using-color-palette-tool

https://msdn.microsoft.com/en-us/library/office/jj927175.aspx



Themes

Team Sites to inherit master page and theme
http://www.sharepointeurope.com/blog/2013/7/22/sharepoint-branding-team-sites,-inherit-theme-and-master-page-on-office-365

Change the default theme of a site collection and future subsites.
http://sharepoint.stackexchange.com/questions/79750/is-there-a-way-to-change-the-default-theme-of-a-site-collection-and-fututre-subs

Composed Looks - Use composed looks to brand SharePoint sites
https://msdn.microsoft.com/en-us/library/office/dn985875.aspx
http://sharepoint-community.net/profiles/blogs/creating-and-applying-a-composed-look-in-sharepoint-2013
https://bniaulin.wordpress.com/2012/12/16/step-by-step-create-a-sharepoint-2013-composed-look/

All you need to know about site logo size in SharePoint 2013
http://blog.incworx.com/blog/sharepoint-administrators-blog/all-you-need-to-know-about-site-logo-size-in-sharepoint-2013

Branding

SharePoint Branding - Themes, Master Pages, and Page Layouts
Excerpt below from above …

Theme:
     - we want our logo
     - we want our colors
     - we want our fonts
     - we want background image
Master Page:
     - we want site logo to link to start page, not to subsites
     - we want another navigation
     - we want links on the top
     - we want footer on every page
     - we want a big banner on the top
     - we want breadcrumb
Page Layouts:
     - we want more content zones on the page
     - we want a content zone on the right for related links and content
Styling
    - we want 20px or 30px margins
    - we want larger headings (H1,H2,H3..)
    - we want border around content

Guide to quick SharePoint 2013 branding
http://blog.blksthl.com/2013/02/26/a-guide-to-quick-sharepoint-2013-branding/

Step by Step
http://www.sharepointempower.com/Blog/Post/3/SharePoint-2013-branding-step-by-step

Start Master Pages
http://startermasterpages.codeplex.com/

How do I apply master page changes to all subsites in SharePoint 2013?
http://sharepoint.stackexchange.com/questions/61979/how-do-i-apply-master-page-changes-to-all-subsites-in-sharepoint-2013

Hide Recent
http://sharepoint.stackexchange.com/questions/61347/how-to-hide-recent-in-the-navigation

Tips on Team Site
Recent Heading – current navigation (five most recent appear)
http://blogs.office.com/b/sharepoint/archive/2012/07/25/the-new-team-site.aspx

SharePoint 2013 Design Manager
http://sharepointfordeveloper.blogspot.com/2013/06/sharepoint-2013-design-manager.html
MSDN - Overview of Design Manager in SharePoint 2013
https://msdn.microsoft.com/en-us/library/office/jj822363.aspx

2010

Basics
https://www.nothingbutsharepoint.com/sites/eusp/Pages/Hack-SharePoint-Master-Pages-Introduction.aspx

Navigation
https://www.nothingbutsharepoint.com/sites/eusp/Pages/Brand-SharePoint-Global-Navigation-The-Journey-Begins.aspx

Mega Menu

http://www.nothingbutbranding.com/blog/2012/august/mega-menu-dropdown-sharepoint

Move Quick Launch – to the Right Side

http://www.nothingbutbranding.com/blog/2012/august/move-sharepoint-quicklaunch-to-the-right

Heather Solomon - great presentations on branding in 2007 and is now working on 2010
http://www.heathersolomon.com/blog/

Wednesday, September 27, 2017

SharePoint Development

2019


SPFx

Overview of the SharePoint Framework
(SharePoint 2016 Feature Pack 2)
https://docs.microsoft.com/en-us/sharepoint/dev/spfx/sharepoint-framework-overview

SPFx - The SharePoint Framework—an open and connected platform
https://blogs.office.com/en-us/2016/05/04/the-sharepoint-framework-an-open-and-connected-platform/

Installing the SPFx Fantastic 40 WebParts (Examples)
https://github.com/OlivierCC/spfx-40-fantastics/wiki/Installation-process

SPFx Interview Mark Rackley
https://www.voitanos.io/blog/sharepoint-framework-in-mark-rackley-s-own-words

SPFX Manoj Mittal Webinars
Part 1 https://www.c-sharpcorner.com/article/online-webinar-sharepoint-framework-part-1/
Part 2
https://www.c-sharpcorner.com/article/online-webinar-sharepoint-framework-with-reactjs-part2/

2016

SharePoint Client Side Developers

5 Things to Stop Doing

1/5 Things Sharepoint Client Side Developers Should Stop
2/5 Things Sharepoint Client Side Developers Should Stop
3/5 Things Sharepoint Client Side Developers Should Stop
4/5 Things Sharepoint Client Side Developers Should Stop
5/5 Things Sharepoint Client Side Developers Should Stop

Can I Use … Browser support tables for modern web technologies

http://caniuse.com/

Old News

SDK https://www.microsoft.com/en-us/download/details.aspx?id=30722

Set up a general development environment for SharePoint 2013
https://msdn.microsoft.com/en-us/library/ee554869(v=office.15)

Setting up Visual Studio 2012 for SharePoint 2013 development offline
http://blogs.msdn.com/b/timquin/archive/2013/01/22/setting-up-visual-studio-2012-for-sharepoint-2013-development-offline.aspx

Prerequisites for creating SharePoint 2013 projects using Visual Studio 2012
http://blogs.msdn.com/b/how24/archive/2013/03/12/creating-sharepoint-2013-projects-using-visual-studio-2012.aspx

CSS and Branding

To brand or not to brand ??? That is the question.
http://blog.sharepointexperience.com/2015/01/to-brand-or-not-to-brand/

CSS Dev on Large Scale Websites
http://sixrevisions.com/css/css-development-at-large-sites/

Branding
http://blog.drisgill.com/
http://sharepointexperience.com/

CSS
http://sharepointexperience.com/csschart/csschart.html

Good Resources http://www.codeproject.com/KB/sharepoint/

More from The Cloud Engineer

More 2010 Info
http://thecloudengineer.blogspot.com/2012/05/development-environment.html