Skip to content

Instantly share code, notes, and snippets.

@pavenuto
Created October 12, 2012 16:17
Show Gist options
  • Save pavenuto/3880050 to your computer and use it in GitHub Desktop.
Save pavenuto/3880050 to your computer and use it in GitHub Desktop.
// A feature in Sass 3.2 (bleeding edge gem for now) is the concept of silent extends as follows
// By replacing the (.) with a (%), this will create a 'silent class' that is not written out to CSS
// until it is 'extended', EPIC!
// Put that in your OOCSS!
%kung {
background: green;
color: yellow;
}
%foo {
background: orange;
color: red;
font-size: 12px;
}
.foo_one {
@extend %foo;
}
.foo_two {
@extend %foo;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment