XF 2.3 Problem with FontAwesome icon

Hareon

Active member
I am trying to fix a banner template. Before, that icon fa-user was shown. But after upgrade to 2.3, a square is showing to the users.

The code is:
.userBanner strong {
min-width: 100px;
display: inline-block;
margin-left: 20px;
}
[class*="banner_"], .userBanner {
position: relative;
display: inline-block !important;
margin: 4px 0 5px !important;
font-size: 11px !important;
font-family: Arial;
font-weight: 600;
color: #fff !important;
text-shadow: #111 0 0 1px !important;
border-radius: 5px !important;
border-color: transparent !important;
margin-bottom: 0px !important;
padding: 4px 8px !important;
letter-spacing: .5px !important;
border: 0 !important;
text-transform: uppercase !important;
line-height: 15px !important;
}
.userBanner::before {
content: "\f007";
color: #fff;
line-height: 23px;
background-color: rgba(0,0,0,0.4);
position: absolute;
border-top-right-radius: 40px;
border-right: 2px solid rgba(0,0,0,0.1);
top: 0;
bottom: 0;
border-bottom-left-radius: 10px;
left: 0;
border-top-left-radius: 10px;
padding: 1px 4px 0 3px;
width: 20px;
font-family:'Font Awesome 5 Pro';
text-align: center;
}

And this is the banner with the wrong icon
1720161676064.webp

I tried to rename \f007 to fa-user, but dont work.
 
Almost there. There is a small problem with the icon and the background that the code customizes.

I want a solid like this: https://fontawesome.com/icons/user?f=classic&s=solid to be white.

.m-faContent(@fa-solid fa-user); don't work.

With only .m-faContent(@fa-var-user); it looks like this

1720186550836.webp

But the point of the code is to look like this.

1720186602156.webp

It is a code that works for all banners in extra.less placing a darker stylized part of the banner color as the background of the icon.

1720187021612.webp

Was working on 2.2 :(
 
Is close.
1720188107412.webp

I noticed that after the update, it seems that these icons that work by content code don't work like before.

I noticed that I had also added code to extra.less that changed the Online icon. Now the icon is back to the Xenforo default. At least the animation continues.

The code uses:
.message-avatar-wrapper .message-avatar-online::before { content: "\f192"; }

It is a code in the same style as the banner. I think is CSS. Would it be some incompatibility with 2.3? Developers may have changed the fontawesome.
 
I am trying to fix a banner template. Before, that icon fa-user was shown. But after upgrade to 2.3, a square is showing to the users.

The code is:
.userBanner strong {
min-width: 100px;
display: inline-block;
margin-left: 20px;
}
[class*="banner_"], .userBanner {
position: relative;
display: inline-block !important;
margin: 4px 0 5px !important;
font-size: 11px !important;
font-family: Arial;
font-weight: 600;
color: #fff !important;
text-shadow: #111 0 0 1px !important;
border-radius: 5px !important;
border-color: transparent !important;
margin-bottom: 0px !important;
padding: 4px 8px !important;
letter-spacing: .5px !important;
border: 0 !important;
text-transform: uppercase !important;
line-height: 15px !important;
}
.userBanner::before {
content: "\f007";
color: #fff;
line-height: 23px;
background-color: rgba(0,0,0,0.4);
position: absolute;
border-top-right-radius: 40px;
border-right: 2px solid rgba(0,0,0,0.1);
top: 0;
bottom: 0;
border-bottom-left-radius: 10px;
left: 0;
border-top-left-radius: 10px;
padding: 1px 4px 0 3px;
width: 20px;
font-family:'Font Awesome 5 Pro';
text-align: center;
}

And this is the banner with the wrong icon
View attachment 305301

I tried to rename \f007 to fa-user, but dont work.
The code is here.
 
This may, or may not, be of help. I used the following code to re-add my navigation icons, perhaps you could play around with this to see if you can get it to work on your icon.

Code:
/* Navigation Icons */
a[data-nav-id="classic"]:before {
.m-faContent(@fa-var-solid-guitar-electric);
    height: 1.5em;
    vertical-align: middle;
}
a[data-nav-id="hard"]:before {
    .m-faContent(@fa-var-solid-hand-rock);
        height: 1.5em;
    vertical-align: top;
}
a[data-nav-id="heavy"]:before {
    .m-faContent(@fa-var-solid-hammer-war);
    height: 1.5em;
    vertical-align: middle;
}
a[data-nav-id="blues"]:before {
    .m-faContent(@fa-var-solid-mandolin);
    height: 1.5em;
    vertical-align: middle;
}
 
Back
Top Bottom