Skip to content

Instantly share code, notes, and snippets.

@tf
Last active December 22, 2015 14:28
Show Gist options
  • Save tf/6485675 to your computer and use it in GitHub Desktop.
Save tf/6485675 to your computer and use it in GitHub Desktop.
@mixin background-icon($color: #444, $font-size: 19px, $left: 5px, $top: 5px) {
position: relative;
&:before {
position: absolute;
left: $left;
top: $top;
font-size: $font-size;
line-height: 1;
text-indent: 0;
color: $color;
}
}
@mixin background-icon-color($color) {
&:before {
color: $color;
}
}
@mixin background-icon-animation($name, $duration: 1.5s) {
&:before {
// Bourbon Mixin
@include animation($name $duration ease infinite);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment