Hi, can anybody help me with my problem?

Kind regards,

Willem


2013/9/3 Willem-Siebe Spoelstra <[email protected]>

> Hi, I want to give a div a transparent background, I use LESS for my
> stylesheet.
>
> I found this mixin:
>
> // BACKGROUNDS
>>
>> // --------------------------------------------------
>>
>>
>>> // Add an alphatransparency value to any background or border color (via
>>> Elyse Holladay)
>>
>> #translucent {
>>
>>   .background(@color: @white, @alpha: 1) {
>>
>>     background-color: hsla(hue(@color), saturation(@color),
>>> lightness(@color), @alpha);
>>
>>   }
>>
>>   .border(@color: @white, @alpha: 1) {
>>
>>     border-color: hsla(hue(@color), saturation(@color),
>>> lightness(@color), @alpha);
>>
>>     .background-clip(padding-box);
>>
>>   }
>>
>> }
>>
>>
>
> Two questions, how can I use this in my LESS file:
>
> background-color: [what do I have to put here];
>
> The reason I don't get it, is because this looks like two mixins inside
> the #translucent.
>
> I don't get it to work.
>
> Kind regards,
>
> Willem
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "twitter-bootstrap" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/twitter-bootstrap/SaSI9eqy3VQ/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"twitter-bootstrap" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to