I'm not sure how that mixin ever worked at all. If you have a Sass selector that begins with : on a line on its own, it must be escaped with \, because otherwise it could be interpreted as an old-style property.
On Mon, May 10, 2010 at 7:46 AM, Brajeshwar <[email protected]> wrote: > Hi, > > I was trying to switch our Sass2 project to Sass3 and there is the > first conversion bug that I encounter. > "sass-convert" seem to be unable to convert pseudo selector (the one > with the ":") properly > > e.g. > > =zebra-strip(!even, !odd = "transparent") > :nth-child(even) > :background-color = !even > :nth-child(odd) > :background-color = !odd > .even > :background-color = !even > .odd > :background-color = !odd > > converts to > > @mixin zebra-strip($even, $odd: transparent) { > nth-child(even) { background-color: $even; } > nth-child(odd) { background-color: $odd; } > .even { background-color: $even; } > .odd { background-color: $odd; } > } > > I had to manually fix the ":" there > > Regards, > Brajeshwar > _____________________ > > -- > 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] <haml%[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.
