.block.block--category.block--category28 .block-header:before
{
.m-faContent(@fa-var-music);
}
.m-faContent(@fa-var-solid-music);
.m-faContent(@fa-var-duotone-music);
<xf:fa icon="fa-sparkles" aria-hidden="true"/>
<xf:fa icon="fas fa-sparkles" aria-hidden="true"/>
where does this have to go?For CSS, e.g. for categories:
Code:.block.block--category.block--category28 .block-header:before { .m-faContent(@fa-var-music); float: left; padding-right: 5px; }
Or
.m-faContent(@fa-var-solid-music);
In templates etc:
Code:<xf:fa icon="fa-sparkles" aria-hidden="true"/>
That is just an example, but it would go in extra.less if you have (for example) category icons or some other use of pseudo element such as before or after.where does this have to go?
It did for meBut that doesn't solve the problem,
Well, I told you how to use font awesome in CSS, you're welcomeok I'm happy for you,
What prefix addon? You didn't mention an addon.I still have the prefix addon and the icons aren't shown there either.
.label.label--lightGreen {
&:before {
.m-faContent(@fa-var-flower-tulip);
}
&:after {
.m-faContent(@fa-var-flower-daffodil);
}
}
So entfernen Sie das standardmäßige Knotensymbol sowie Ihr benutzerdefiniertes Symbol
Code:.node .node-Symbol ich svg { Anzeige: keine; }
How does this work? If I enter prefix nothing happens .label.label--lightGreenI'm not quite sure what you are after, ie I don't know where you want the icons, I've done my best to tell how to use them in 2.3.
In prefixes you can use this in extra.less for before and/ or after, e.g. with the lightGreen prefix:
Code:.label.label--lightGreen { &:before { .m-faContent(@fa-var-flower-tulip); } &:after { .m-faContent(@fa-var-flower-daffodil); } }
Are you sure there isn't a 3rd party addon or theme which could interfere?If I enter prefix nothing happens .label.label--lightGreen
We use essential cookies to make this site work, and optional cookies to enhance your experience.