Steve: It's the weirdest thing... I was able to reproduce your error for 
a little while, but now I can't. Try restarting your server, I guess... 
if that doesn't work, present me the smallest possible case in which the 
error occurs.

Evgeny: This is a separate bug - a bad Regex is causing "14em solid " to 
be parsed as the number 14 with the units "em solid ". I'll fix this in 
a second.

- Nathan

Evgeny wrote:
> Have been experiencing this problem myself,
> especially with the border property -- because of how the color comes 
> last in there.
>
> :border-right=  "14em solid " + !color_high
>
> This renders correctly on my mac. But a partner of mine used linux and 
> windows, and his css files had only
>
> border-right: #ccccff;
>
> Without the 14em and solid properties at all.
>
>
>
> Please fix! :)
>
> On 2/10/07, *s.ross* < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> 
> wrote:
>
>
>     Did you check this in to:
>
>     http://svn.hamptoncatlin.com/haml/trunk
>
>     ?
>
>     I tried this:
>
>     !code_background= #211d20
>     !code_border= #312d30
>
>     pre
>        :padding 4px
>        :background= !code_background
>        :border= 1px solid !code_border
>        code
>          :background transparent
>
>     And the stylesheet generated shows:
>
>     /*
>     NoMethodError: undefined method `solid' for #<Sass::Constant::String:
>     0x3511334 @value="1px">
>     ...<snip>...
>
>     Moving !code_border to be the first variable token on the line
>     doesn't help.
>
>     Thoughts?
>
>
>     On Feb 9, 2007, at 9:20 PM, Nathan Weizenbaum wrote:
>
>     >
>     > Hello, fellow Hamlites!
>     >
>     > Today I wanted to showcase a new feature that's hot of the presses
>     > (or,
>     > rather, hard disk, I suppose). It's an addition to Sass' constant
>     > arithmetic capabilities. If you're not familiar with Sass, it's a
>     > Haml-like language for defining CSS using indentation and nested CSS
>     > rules - there's a whole Sneak Peak on it in the archives. It also
>     > allows
>     > you to define constants and perform arithmetic on them, like so:
>     >
>     > !border_style= dotted
>     > !main_color= #5588ee
>     >
>     > #main
>     >   :background-color= !main_color
>     >   :border= "2px " + !border_style + " " + (!main_color - #555)
>     >   p
>     >     :border= "1px " + !border_style + " #0000aa"
>     >
>     > This is a very powerful feature, but all those quotes and spaces
>     > and so
>     > forth is a little ugly. We don't like ugly, and one thing Haml has
>     > taught us is that we don't need to suffer ugliness for the sake of
>     > power. We can have both. So now we can... Sass will now
>     automatically
>     > concatenate adjacent values when doing constant arithmetic. For
>     > example,
>     > the above could be written as:
>     >
>     > !border_style= dotted
>     > !main_color= #5588ee
>     >
>     > #main
>     >   :background-color= !main_color
>     >   :border= 2px !border_style (!main_color - #555)
>     >   p
>     >     :border= 1px !border_style #0000aa
>     >
>     > Much, much nicer. This will compile to:
>     >
>     > #main {
>     >   background-color: #5588ee;
>     >   border: 2px dotted #003399; }
>     >   p {
>     >     border: 1px dotted #0000aa; }
>     >
>     >
>     > Enjoy!
>     >
>     > >
>
>
>
>
> >


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