Hi,

I hit a snag in my first 30 mins of using Sass with my own mixin
patch:

-moz-border-radius: 10px

This throws an exception about defining mixins outside the root of the
document. Since there's also a '-webkit' version of this I think it's
a bad idea to take over rules starting '-' with mixin definitions. I
worry that when this patch makes it into a release you're going to
have lots of people complaining that the new version breaks their
code...

Obviously you can avoid this using the alternate syntax ':-moz-border-
radius 10px' but I don't think people should have to either switch
from their preferred style or change their code once this patch
becomes part of the release.

Consequently I have a patch to change that char from '-' to '$'

http://pastie.org/178566

I chose the $ character because it's used in neither CSS nor Sass
(obviously a priority) and evokes the idea of a variable from PHP or
Perl. (Defining a mixin is kinda like assigning Sass commands to a
variable).

Other options I tried were '>' or '=' which looked ok, '=' is perhaps
the nicest but I don't want any mixup between mixin defns and constant
definitions.

What do you say?

g


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