Style properties to set the icons per thread and forum type

Paul B

XenForo moderator
Staff member
Rather than having to edit templates or use extra.less, it would be ideal if there were style properties for setting the icons.

It wasn't so much of an issue before but with the introduction of forum and thread types and the new layouts, it would just make things a lot easier.

For example, this is what I have to use to change the round speech bubbles to square ones everywhere it's displayed (I may still have missed somewhere).
Less:
.node--forum .node-icon .fa-comments,
.subNodeLink--forum .node-icon .fa-comments,
.subNodeLink.subNodeLink--forum,
.structItem-status--discussion,
.inputTypes-display--type_discussion .fa-comments,
.fa-comment
{
    &:before
    {
        .m-faContent(@fa-var-comments-alt);
    }
}
}

If I also wanted to change the article, question, and suggestion icons it would require more CSS, targeting the specific types.
 
Upvote 17
Back
Top Bottom