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

@color => hex & rgb

Zephyr

Well-known member
#1
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 :)
 

Jake Bunce

XenForo moderator
Staff member
#2
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;
}