/* #### Thread Prefixes #### */
.label
{
&:before
{
padding-right: 4px;
.m-faBase();
}
&.label--
{
&ctaAttention:before
{
.m-faContent(@fa-var-exclamation-triangle);
}
&ctaAnnouncement:before
{
.m-faContent(@fa-var-bullhorn);
}
&ctaNotice:before
{
.m-faContent(@fa-var-flag);
}
&ctaPoll:before
{
.m-faContent(@fa-var-poll-h);
}
}
}
That's exactly what I tried but for some reason it adds padding to both sides of the icon. To test it I add a large number like 50px and it shows on both sides of the FA.You can probably just change:beforeto:afterand changepadding-righttopadding-left. You also don't need.m-faBase()in 2.3+.
Can't get this working in 2.3
It works fine - I still use it without any changes being made.
Sorry but that's rubbish.... seeing as you literally do have to make template changes. After all, how would it know what custom changes to apply? Magic ?
Come on, engage your brain, @Paul B clearly meant the changes still work in 2.3 and further changes aren’t required.Sorry but that's rubbish.... seeing as you literally do have to make template changes. After all, how would it know what custom changes to apply? Magic ?
Come on, engage your brain, @Paul B clearly meant the changes still work in 2.3 and further changes aren’t required.![]()
I'm done with taking crap on this forum.
Hey @Paul B, just wanted to let you know that I appreciate your having *provided this helpful resource. Thanks man.I'm done with taking crap on this forum.
.label.label--FORMULA1 { border-color: #6ABCDC; background: linear-gradient(45deg, #CB2D3E 0%, #EF473A 100%); box-shadow: inset 0px 0px 0px 0px; font-family:'Roboto',sans-serif; color:#fff; padding: 2px 5px 0px 1px; &:before{ .m-faContent(@fa-var-flag-checkered); font-size: 1.1em; padding-right: 5px; }}
.label.label--ANDROID { border-color: #78C257; background: linear-gradient(to bottom, #78C257, #78C257 100%); box-shadow: inset 0px 0px 0px 0px; font-family:'Roboto',sans-serif; color:#fff; padding: 2px 5px 0px 1px; &:before{ .m-faContent(@fa-var-android); font-size: 1.1em; padding-right: 5px; }}

We use essential cookies to make this site work, and optional cookies to enhance your experience.