Just wanted to chime on the usefulness of css mixins and to ask for
the scope of this feature to be expanded.

I'm working on the CSS side trying to style code generated by .NET.
Obviously, getting a special class added to those elements is very
difficult without bugging a developer and in my opinion, the style
should be as independent of the specifics of the markup as possible.

So basically I need to apply the clearfix hack to a bunch of floated
elements. I could copy and paste this over and over and change the
selector for each element:
.clearfix:after { content: "."; display: block; height: 0; clear:
both; visibility: hidden; }
.clearfix { display:inline-block; }
* html .clearfix { height: 1px ;}

However, I'd much rather make the whole thing a module and just have
sass insert my current selector in place of the .clearfix part.

#elem1, #elem2. #elem3
  +clearfix

Now, it looks to me that even with this patch that this still wouldn't
work. It seems to operate on only one node of css rules, not a tree.
So I would ask that the - prefixed selector could contain a whole tree
of CSS beneath it that would also be included.

Something like this
- clearfix
  display: inline-block
  &:after
    content: "."
    display: block
    height: 0
    clear: both
    visibility: hidden
  * html &
    height: 1px

#form
  input
    +clearfix

Thanks guys, loving Sass.
--~--~---------~--~----~------------~-------~--~----~
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