On Tue, Jan 26, 2010 at 13:48, Charles Roper <[email protected]>wrote:

> Thanks Mislav. I considered just using rgba rather than hexa, but with
> rgba, it is suggesting that rgb values should be used.


My function is named `rgba` not because it expects R,G,B input (quite the
contrary), but because it outputs a "rgba(r,g,b,a)" CSS string. So you see,
the title is descriptive.

Regarding `hexa`, it's a nice short name, but I don't see why a function
should be named according to input type. Sass script recognizes multiple
syntaxes for specifying colors, but internally all colors are just colors.
If `hexa()` function existed, I could write the color argument in a syntax
other than hexadecimal and it will still work.

-- 
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/haml?hl=en.

Reply via email to