Attention Less Users:
If you prefer using HEX instead of RGBA for setting colors, there are alternative solutions available.
One option is to utilize a mixin like this:
.transparentBackgroundColorMixin(@alpha,@color) {
background-color: rgba(red(@color), green(@color), blue(@color), @alpha);
}
To apply the mixin, you can do the following:
.myClass {
.transparentBackgroundColorMixin(0.6,#FFFFFF);
}
Additionally, a built-in Less function also offers similar functionality:
.myClass {
background-color: fade(#FFFFFF, 50%);
}
For more information on converting hexadecimal colors to rgba with the Less compiler, refer to this helpful Stack Overflow thread