You can mix constants and non-constants in some cases; the trick is that 
if two values are adjacent in Sass-Script, they are concatenated with a 
space. Gioele, you're right that both of those cases aren't behaving 
right. The first one should crash, because you have a "repeat-x" in 
there (which reads as "repeat" - "x", which makes no sense), but it 
should have a better error message. The second one should work, although 
the resulting CSS is invalid. Thanks for pointing these out; I'll try to 
fix them some time tonight.

- Nathan

Gioele wrote:
> On Aug 3, 5:09 pm, "Brett Rogers" <[EMAIL PROTECTED]> wrote:
>   
>> Part of the problems is that you are trying to set an image to a
>> background-color instead of background.
>>     
> My fault; I was trying to get the smallest testcase, after a few cuts
> it started losing sense ;)
>
>   
>> I do not think you can assign a constant in addition to regular values.
>>     
> I think you can (sometimes). The Sass reference has
>
>   h6
>     :font = italic "small-caps" bold (!main_font_size + 0.1em) !
> font_family
>
>   
>>   !light_gray = #f0e0e4
>>   #header
>>     :background url(bg.png) repeat-x
>>       :color = !light_gray
>>     
> I also ended up splitting the various background values.
>
> --
> Gioele
>
>
> >
>
>   


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