XF 2.3 xenforo 2.3 fontawesome

For CSS, e.g. for categories:
Code:
.block.block--category.block--category28 .block-header:before

{
    .m-faContent(@fa-var-music);
  
}

Or

.m-faContent(@fa-var-solid-music);

.m-faContent(@fa-var-duotone-music);

In templates etc:

Code:
<xf:fa icon="fa-sparkles" aria-hidden="true"/>

or

Code:
<xf:fa icon="fas fa-sparkles" aria-hidden="true"/>
 
Last edited:
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"/>
where does this have to go?
 
I'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);       
    }
}
 
I'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);      
    }
}
How does this work? If I enter prefix nothing happens .label.label--lightGreen
 
Back
Top Bottom