Created
January 19, 2015 16:39
-
-
Save jesusr/86b5f9b34316fc5b63ba to your computer and use it in GitHub Desktop.
Aside icon mixin
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
=aside-icon($image:none,$width:50px,$height:$width,$pos:left) | |
margin: 2em | |
padding-#{$pos}: $width + 10px | |
line-height: $height | |
background: url($image) no-repeat $pos 0 | |
background-size: $width | |
h2 | |
display: inline-block | |
+aside-icon('http://www.michellefit.ca/wp-content/uploads/2013/11/male-4-icon.png') | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment