I'm working on a large project using Sass/Compass right now which will
allow user customization and I've noticed that in a few places
extending mixins would be awesome.
Obviously this is a very simple example and the syntax would need to
be thought about more:
//defined already
@mixin create-button($name, $color) {
button.#{$name} {
color: darken($color, 50);
background: $color;
}
}
//then the user can overwrite
@mixin create-button($name, $color, $padding) {
super;
button.#{$name} {
padding: $padding;
}
}
--
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.