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.

Reply via email to