Skip to content

Instantly share code, notes, and snippets.

@illepic
Created August 4, 2013 20:39
Show Gist options
  • Save illepic/6151851 to your computer and use it in GitHub Desktop.
Save illepic/6151851 to your computer and use it in GitHub Desktop.
A CodePen by Christopher Bloom.
@import "compass";
// an extendable class
.extendable-style {
font-weight: bold;
line-height: 1.7;
}
// apply
.thingy-1{ @extend .extendable-style; }
.child .of .something{ @extend .extendable-style; }
// output
.extendable-style,
.thingy-1,
.child .of .something{
font-weight: bold;
line-height: 1.7;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment