pjfry
Active member
Hello,
are conditionals in EXTRA.less allowed and possible?
I tried this code:
Ans it doesn't work for admins. I want a absolute postions for my logo relative to the header which works, but with teh staff bar my logo is not in the right place.
Thanks
Benny
are conditionals in EXTRA.less allowed and possible?
I tried this code:
CSS:
<xf:if is="$xf.visitor.is_admin OR $xf.visitor.is_moderator">
.p-header-logo {
position: absolute;
left: 160px;
top: 160px;
color: #f2e019;
text-shadow: 0px 0px 10px #f2e019, 0px 0px 6px #e43f19;
}
<xf:else />
.p-header-logo {
position: absolute;
left: 160px;
top: 125px;
color: #f2e019;
text-shadow: 0px 0px 10px #f2e019, 0px 0px 6px #e43f19;
}
</xf:if>
Ans it doesn't work for admins. I want a absolute postions for my logo relative to the header which works, but with teh staff bar my logo is not in the right place.
Thanks
Benny