No, it's not. Why wouldn't you just define the top-level selector outside the mixin?
On Wed, May 4, 2011 at 11:41 AM, Aaron Gibralter <aaron.gibral...@gmail.com>wrote: > Does anyone know if it would be possible to write a sass function that > could define a top-level selector within another selector: e.g.: > > > @mixin br1 { > @top-level .br-1 { > @include border-radius(1px); > } > @extend .br-1; > } > > .foo { > font-size: 10px; > @include br1; > } > > //=> > > .foo { > font-size: 10px; > } > > .br-1, .foo { > border-radius: 1px; > } > > -- > You received this message because you are subscribed to the Google Groups > "Haml" group. > To post to this group, send email to haml@googlegroups.com. > To unsubscribe from this group, send email to > haml+unsubscr...@googlegroups.com. > 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 haml@googlegroups.com. To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/haml?hl=en.