CMTV
Well-known member
I have created my custom style variable
Now in my LESS template I have this code:
The problem is that this code is not working.
It is really strange for me because this variant is working fine:
It seems that
Other style variables (colors, numbers) are all working fine. The problem appears only when I use "when".
questionthreads_isStylingBestAnswerUserBg
. It has Boolean
value type. It is set to true.Now in my LESS template I have this code:
Less:
.container when (@xf-questionthreads_isStylingBestAnswerUserBg = true) {
background: #000;
}
The problem is that this code is not working.
It is really strange for me because this variant is working fine:
Less:
@test: true;
.container when (@test = true) {
background: #000;
}
It seems that
@xf-questionthreads_isStylingBestAnswerUserBg
returns something weird... What is wrong in my code?Other style variables (colors, numbers) are all working fine. The problem appears only when I use "when".