W3C home > Mailing lists > Public > www-style@w3.org > May 2012

Re: [css-variables] Using $foo as the syntax for variables

From: Brian Kardell <bkardell@gmail.com>
Date: Tue, 22 May 2012 21:43:08 -0400
Message-ID: <CADC=+jdP0vnQS=urFJXd-XJDHdmNnria3T0eVsuXQNoyj5-evQ@mail.gmail.com>
To: Sylvain Galineau <sylvaing@microsoft.com>
Cc: "Marat Tanalin | tanalin.com" <mtanalin@yandex.ru>, Brad Kemper <brad.kemper@gmail.com>, "Tab Atkins Jr." <jackalmage@gmail.com>, www-style list <www-style@w3.org>
At the beginning of the thread it seemed that there wasn't a
definitive example/answer and a few people have commented with some
variants (like the usage part, but not the declaration part).  Maybe
having something concrete would help.  Tab -- Are we talking about (I
don't think so) using exactly this (from Sass site - a):

    $blue: #3bbfce;

    .content-navigation {
        border-color: $blue;
    }


Or that would change to something like (b):

    :root {
         var-blue: #3bbfce;
    }

    .content-navigation {
        border-color: $blue;
    }


Or even (c):


    :root {
        $blue: #3bbfce;
    }

    .content-navigation {
        border-color: $blue;
    }


?
Received on Wednesday, 23 May 2012 01:43:57 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:54 GMT