Skip to content

Instantly share code, notes, and snippets.

@nordyke
Created December 11, 2012 00:04
Show Gist options
  • Save nordyke/4254554 to your computer and use it in GitHub Desktop.
Save nordyke/4254554 to your computer and use it in GitHub Desktop.
Useful SASS mixins
// Inline-block trinity
@mixin inline-block{
display:inline-block;
*display:inline;
zoom:1;
}
// Hide text for background image replacement
@mixin hide-text{
overflow:hidden;
text-indent:-9000px;
display:block;
}
// Round all corners by amount
@mixin round-corners($amount){
border-radius: $amount;
-moz-border-radius: $amount;
-webkit-border-radius: $amount;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment