Last active
December 22, 2015 14:28
-
-
Save tf/6485675 to your computer and use it in GitHub Desktop.
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
@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