Created
February 7, 2013 05:18
-
-
Save JohnAlbin/4728751 to your computer and use it in GitHub Desktop.
Sass is for Superman: Extends & Placeholder selectors
This file contains 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
/** | |
* @file | |
* Sass if for Superman: Extends and Placeholder selectors | |
*/ | |
%element-invisible { | |
position: absolute !important; | |
height: 1px; | |
width: 1px; | |
overflow: hidden; | |
clip: rect(1px, 1px, 1px, 1px); | |
} | |
.example { | |
@extend %element-invisible; | |
color: red; | |
} | |
.example-2 { | |
@extend %element-invisible; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment