User group user name CSS to support LESS & user group attribute in username links (like tags)

frm

Well-known member
Currently, you can only apply username CSS in user groups, which is unappealing when we have style variants now. It should support LESS to easily go from one to the other:
1734150008907.webp1734149410583.webp1734149421358.webp

With:
CSS:
    .m-colorScheme(light,
        {
            color: green;
        }
    );
    .m-colorScheme(dark,
        {
            color: #00ff33;
        }
    );

However, username CSS (and hopefully LESS) also doesn't apply to usernames in posts, such as tagged names like @frm.

1734149537791.webp

If the username CSS/LESS implementation can't apply to tags, username output hyperlinks (as seen in the above frm tag example) should have some kind of data attribute for user group so that it doesn't need to be implemented user by user:

From:
HTML:
<a href="https://xenforo.com/community/members/187211/" class="username" data-xf-init="member-tooltip" data-user-id="187211" data-username="@frm" id="js-XFUniqueId8" data-xf-pointer-type="mouse">@frm</a>

To something like:
HTML:
<a href="https://xenforo.com/community/members/187211/" class="username" data-xf-init="member-tooltip" data-user-id="187211" data-user-group="2" data-username="@frm" id="js-XFUniqueId8" data-xf-pointer-type="mouse">@frm</a>

So we can apply the color to the entire group as opposed to id by id:
CSS:
[data-user-group="2"] {
Instead of user by user:
CSS:
[data-user-id="2"], [data-user-id="1"] {
 
Upvote 0
Back
Top Bottom