berfarah / LESS-build-sublime

Less build sytem for Sublime Text 2
Apache License 2.0
91 stars 14 forks source link

argb() function isn't being compiled #22

Open wintermute77 opened 12 years ago

wintermute77 commented 12 years ago

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 :)

jess-sol commented 12 years ago

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;

wintermute77 commented 12 years ago

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.