XF 2.1 Change style according to User Custom Field?

gogo

Well-known member
I want to do something like:

Less:
if ($user_custom_field.gender=='female') {

    .block.block--category.block--category1 .block-header {
        background: pink;
    }

} else {

    .block.block--category.block--category1 .block-header {
        background: green;
    }  

}

But extra.less doesn't accept conditions. So how do I do it?
 
Back
Top Bottom