Less for name color to specific user

xF2 Template Modification Less for name color to specific user

DareSec

Inforc3r
Staff member
Administrator
Moderator
S.V.I.P Member
Collaborate
Registered
Joined
May 25, 2019
Messages
1,382
Points
523

Reputation:

DareDevil submitted a new resource:

Less for name color to specific user - color to specific user

It is enough to add such code to extra.less.

Less:
.username-user-id (@userId; @color; @sh-color: false) {
    [class^="username"] {
        .username[data-user-id="@{userId}"] & {
            color: @color;
            & when (iscolor(@sh-color)) {
                text-shadow: @sh-color 2px 2px 10px;
            }
        }
    }
}

// Users who change nickname color
.username-user-id (1, #093, #093);

Now let's look at an example of a ready-made code, how can we...

Read more about this resource...
 
Top