1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

@color => hex & rgb

Discussion in 'Styling and Customization Questions' started by Zephyr, Apr 19, 2013.

  1. Zephyr

    Zephyr Well-Known Member

    Hello, it's possible to have a rgb code with @property please ?

    Example:
    background: rgba(@mycolorproperty, 0.5) !important;
    background: rgba(@mycolorproperty.hex, 0.5) !important;
    background: rgba(@mycolorproperty.rgb, 0.5) !important;

    Thanks :)
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Yes.

    What exactly is that property? The color swatches are normally used like this:

    Code:
    html
    {
    	@property "html";
    	background-color: @pageBackground;
    	min-width: 1000px;
    	@property "/html";
    	overflow-y: scroll !important;
    }
    
    ...which renders as this:

    Code:
    html
    {
    	background-color: rgb(240,240,240);
    	min-width: 1000px;
    	overflow-y: scroll !important;
    }
    
     

Share This Page