Skip to content

Instantly share code, notes, and snippets.

@nickdunn
Created February 14, 2014 17:11
Show Gist options
  • Save nickdunn/9004980 to your computer and use it in GitHub Desktop.
Save nickdunn/9004980 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div class="person">
<div class="person__body"></div>
<div class="person__image"></div>
</div>
// ----
// Sass (v3.3.0.rc.3)
// Compass (v1.0.0.alpha.18)
// ----
%media {
> [class*=__body] {
float: left;
}
> [class*=__image] {
float: right;
}
}
.person {
@extend %media;
}
.person > [class*=__body] {
float: left;
}
.person > [class*=__image] {
float: right;
}
<div class="person">
<div class="person__body"></div>
<div class="person__image"></div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment