Results 1 to 3 of 3

Thread: Stylesheet Variables

  1. #1
    User
    Join Date
    04-10-11.
    Posts
    162

    Default 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.

  2. #2
    User
    Join Date
    04-10-11.
    Posts
    162

    Default 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.

  3. #3
    User
    Join Date
    04-10-11.
    Posts
    162

    Default Re: Stylesheet Variables

    Update: Cleared the Contao cache under Maintenance and it has cured the problem.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •