-
Stylesheet Variables
Has anyone managed to get these working in Contao 2.11.2?
I'm trying but it doesn't seem to be working for me. Here's an example:
In the global stylesheet options for my theme I put '$blue1' into the Key field and then 2e3192 into the Value field.
In my actual stylesheet I then use the variable like this:
Code:
#wrapper
{
background:#$blue1;
}
It's not working though.Is that right? I've tried all sorts of things like not including the '$' in the Key field and including the # in the Value field. When I check the style in my browser it's actually outputting the variable name instead of the value.
-
Re: Stylesheet Variables
Update: I've managed to get it working by declaring the variables for each stylesheet individually, but the global values are still not working.
I need to global values to work as I have about 15 styelsheets, it defeats the point of using variables if I have to go and set-up the variables for each stylesheet.
-
Re: Stylesheet Variables
Update: Cleared the Contao cache under Maintenance and it has cured the problem.