XF 2.1 text-color => .structItem-title

Betclever

Well-known member
Hello,

When I'm connected, I can see the correct text-color for latest messages but once I'm disconnected, I see another text color. :/

I put this on extra.less:

CSS:
.structItem-title {color: #43484f;}

I also tried with !important and it works but only when I'm connected.
I also tried on private navigation for avoiding cookies issue but same problem...

Thx for your help
 
Solution
Use this [data-logged-in="false"] instead of the conditional statement in the actual style extra.less template.

Less:
[data-logged-in="false"]
{
    .structItem-title a
    {
        color: orange;
    }
}
Use this [data-logged-in="false"] instead of the conditional statement in the actual style extra.less template.

Less:
[data-logged-in="false"]
{
    .structItem-title a
    {
        color: orange;
    }
}
 
Solution
Use this [data-logged-in="false"] instead of the conditional statement in the actual style extra.less template.

Less:
[data-logged-in="false"]
{
    .structItem-title a
    {
        color: orange;
    }
}

Hello Brogan

It works but only for guests.
Can we apply this fix for members and other groups?

Thx and Happy New Year. 🥳
 
You can apply styling to logged in member using [data-logged-in="true"].

There is no way of targeting specific user groups in less templates.
 
Top Bottom