Skip to content

Instantly share code, notes, and snippets.

@JohnAlbin
Created February 7, 2013 05:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JohnAlbin/4728751 to your computer and use it in GitHub Desktop.
Save JohnAlbin/4728751 to your computer and use it in GitHub Desktop.
Sass is for Superman: Extends & Placeholder selectors
/**
* @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