You can easily write css script using Modern Script Editor to change the Quick Link Background Colour, Font Colour, border style and more.
Here, i would give you a guide to change the Background colour and Border-radius.
Add a Quick Link and change the Layout options to "Tiles".
Add a Modern Script Editor on top of the Quick Links:
Enter the Code:
<style type="text/css">
a[aria-label="Link A. "] {
background-color: #FF91A4 !important;
}
a[aria-label="Link B. "] {
background-color: #83C760 !important;
}
a[aria-label="Link C. "] {
background-color: #66B032 !important;
}
a[aria-label="Link D. "] {
background-color: #4EA217 !important;
}
</script>
Then Click "Save" and "Publish". You will see this
You can also make a curvy box by adding border-radius:15px with Code below:
<style type="text/css">
a[aria-label="Link A. "] {
background-color: #FF91A4 !important;
border-radius:15px
}
a[aria-label="Link B. "] {
background-color: #83C760 !important;
border-radius:15px
}
a[aria-label="Link C. "] {
background-color: #66B032 !important;
border-radius:15px
}
a[aria-label="Link D. "] {
background-color: #4EA217 !important;
border-radius:15px
}
</script>
You will see this nice curvy box:
CSS CODE CONCEPT:
Every block code below represent a Box style:
a[aria-label="Link D. "] {
background-color: #4EA217 !important;
border-radius:15px;
}
aria-label="Link D. "
Get the Label name by Inspect the code.
Learn more how to get the aria-label here.
background-color: #4EA217 !important;
Change the colour to the colour code #4EA217
border-radius:15px
Make the box to curve at 15px at all the corner.
Note:
Modern Script Editor must be placed before the Quick Links, as the code needed to be loaded first.
If you place below the page, every user that view the page will not see the code coded till they scroll and reach the Modern Script Editor code.
SharePoint works like Lazy loading. It only load till you scroll on it.
Comments
Post a Comment