XF 2.2 New thread button color for each node page

nicodak

Well-known member
Hello,

I want to change the New Thread button for each forum nodes in a category. I was successful with this code for one node
Less:
[data-container-key="node-69"] {
    .button.button--cta, a.button.button--cta {
        background: rgb(0, 157, 220);
        border-color: rgb(0, 157, 220);
    }
    .button.button--cta, a.button.button--cta:hover {
        background: rgb(0, 146, 204);
        border-color: rgb(0, 157, 220);
    }
}
I've got a lot of nodes do i have to repeat this code for each node or there is a tips to go faster ? like this...
Less:
[data-container-key="node-69+node-70+node-83+etc..."] {
    .button.button--cta, a.button.button--cta {
        background: rgb(0, 157, 220);
        border-color: rgb(0, 157, 220);
    }
    .button.button--cta, a.button.button--cta:hover {
        background: rgb(0, 146, 204);
        border-color: rgb(0, 157, 220);
    }
}

Thanks ! :)
 
Solution
Less:
[data-container-key="node-2"],
[data-container-key="node-10"]
{
    .button.button--cta, a.button.button--cta {
        background: rgb(0, 157, 220);
        border-color: rgb(0, 157, 220);
    }
    .button.button--cta, a.button.button--cta:hover {
        background: rgb(0, 146, 204);
        border-color: rgb(0, 157, 220);
    }
}

Brogan

XenForo moderator
Staff member
Less:
[data-container-key="node-2"],
[data-container-key="node-10"]
{
    .button.button--cta, a.button.button--cta {
        background: rgb(0, 157, 220);
        border-color: rgb(0, 157, 220);
    }
    .button.button--cta, a.button.button--cta:hover {
        background: rgb(0, 146, 204);
        border-color: rgb(0, 157, 220);
    }
}
 
Solution
Top