2 Replies Latest reply on Mar 9, 2010 1:00 PM by msakrejda

    Can I use variables inside the CSS style sheet

    eranda007 Level 1

      I need to use the certain number of color in the whole style sheet that refers in many style selectors  (I'm using Flex 3.3)

       

      Eg.

       

      @globalColors {
           headerTextColor: #AB6666;
              defultTextColor: #CC6DD6;
              highlightTextColor:#FFCC68 
      }
      .listHeader
      {
           color: headerTextColor;
           rollOverColor: highlightTextColor;
      }
      .linkText
      {
           color: defultTextColor;
         
      }
      .buttonText
      {
           color: defultTextColor;
         
      }

      It’s similar what describe here  http://brajeshwar.com/2008/css-variables/


      Thanks in advance

       

      Eranda