Nice.

Is it possible to alias Sass functions? I think I'd personally prefer
hexa as the function name because, again, it's easier to type and is
kind of consistent with the rgba syntax. That's just a personal
preference, though.

Charles

2010/1/25 Chris Eppstein <[email protected]>:
> This is possible in Sass 2.4.
> color= transparentize(#cc3, 0.5)
> The transparentize function accepts a color and an amount of alpha layer to
> subtract from the alpha layer of that color.
> Chris
>
> On Mon, Jan 25, 2010 at 9:06 AM, Gavin Kistner <[email protected]> wrote:
>>
>> On Jan 25, 2010, at 9:45 AM, Charles Roper wrote:
>> > I love rgba, but I hate having to type out the colour in the
>> > xxx,xxx,xxx form and would prefer to do something like this:
>> ...
>> >  color: hexa(#cc3,.5)
>>
>> I'm not even using Sass for anything at the moment, but I must echo this
>> sentiment and request.
>>
>> --
>> 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.
>>
>
> --
> 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.
>

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