XF 2.3 Declaring icons via CSS oddities

willl

Well-known member
I haven't been able to isolate exactly WHY this happens, but I've got a rather unique issue with icons.

Given the following less:
Less:
.testicon {
    &:before {
        .m-faContent(@xf-var-life-ring);
    }
}

I can add that class to a nav item, and it'll attempt to render the icon, except the value of mask/-webkit-mask ends up being r-life-ring no-repeat center.

All the other appropriate CSS is there, it's just getting weird on the mask URL value.
 
Solution
Note that the new syntax for 2.3 is not anymore .m-faContent but .m-faIcon
.m-faContent is still valid.

But, indeed, the issue here is the naming of the variable.

Less:
.testicon {
    &:before {
        .m-faContent(@fa-var-life-ring);
    }
}

@fa-var-life-ring not @xf-var-life-ring.
.m-faContent(@xf-var-life-ring); or .m-faContent(@fa-var-life-ring);?

Note that the new syntax within XF 2.3 is not anymore .m-faContent but .m-faIcon
 
Back
Top Bottom