Font Awesome icons for the Forum Statistics widget

kick

Administrator
Staff member
Joined
Apr 7, 2020
Messages
168
Reaction score
180
Points
43
Add the extra.less template.
1589219109987.png

Less:
.p-body-sidebar {
    [data-widget-definition="forum_statistics"] .pairs {

        dt:before {
            .m-faBase();
            padding-right: 2px;
        }

        &:nth-child(1) dt {
            .m-faBefore("\f07c");
        }

        &:nth-child(2) dt {
            .m-faBefore("\f0e0");
        }

        &:nth-child(3) dt {
            .m-faBefore("\f0c0");
        }

        &:nth-child(4) dt {
            .m-faBefore("\f2bd");
        }
    }
}
If you need only icons without text, then use this code.
Add the extra.less template.
1589219175293.png

Less:
.p-body-sidebar {
    [data-widget-definition="forum_statistics"] .pairs {

        dt {
            text-indent: -9999px;
            position: relative;

            &:before {
                .m-faBase();
                position: absolute;
                text-indent: 0;
                left: 2px;
            }
        }

        &:nth-child(1) dt {
            .m-faBefore("\f07c");
        }

        &:nth-child(2) dt {
            .m-faBefore("\f0e0");
        }

        &:nth-child(3) dt {
            .m-faBefore("\f0c0");
        }

        &:nth-child(4) dt {
            .m-faBefore("\f2bd");
        }
    }
}
 
Top