XF 2.0 Why would this style not render?

limboclub

Active member
The system seems to be ignoring this style.

Have I made a typo? Am I using the @media wrong? It is ported over from the XF1.5 style where it was working, but I have swapped in @xf-responsiveMedium for the old style property.

<style type="text/css">
@media (max-width: @xf-responsiveMedium) {
body {
background-image:none;
}
}
</style>
 
Also why would this not work?

<style type="text/css">
body {
background-color: @xf-paletteNeutral2;
background-image:none;
}
</style>

It renders in the browser literally as "background-color: @xf-paletteNeutral2", not "background-color: rgb(nnn,nnn,nnn)".

Am I calling the @xf-paletteNeutral2 correctly?
 
Top Bottom