Created
October 12, 2012 16:17
-
-
Save pavenuto/3880050 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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