LESS-build-sublime icon indicating copy to clipboard operation
LESS-build-sublime copied to clipboard

argb() function isn't being compiled

Open wintermute77 opened this issue 12 years ago • 2 comments

Hi - I'm not sure whether this is an issue with LESS, with Bootstrap, or with LESS-build-sublime, but I thought I'd start here....

Bootstrap 2.1 uses an (apparently undocumented) LESS function - argb() - for instance in its gradient mixin, and it appears that LESS-build-sublime isn't processing it. It's just dropping the string "argb(@colourName)" into the compiled CSS. (To clarify: it IS replacing the @colourName variable with the actual colour value, just not displaying the output from the argb() call.)

Apologies if I'm logging this issue in the wrong place :)

wintermute77 avatar Sep 13 '12 12:09 wintermute77

Hi @wintermute77, this looks like an issue with your code, as doing argb(@colour) doesn't really make sense unless color is like @colour: 10,12,154,1; which I don't believe is supported, try this (not tested):

@colour: rgba(10,15,24,1); color: @coulor;

jess-sol avatar Sep 13 '12 14:09 jess-sol

Hi - perhaps it is, although the code in question isn't actually mine. It appears in the 2.0.1 build of Bootstrap, on line 411 of mixins.less, and compiling the same code through http://crunchapp.net/ results in the argb() function being parsed.

wintermute77 avatar Sep 13 '12 17:09 wintermute77