Last active
August 29, 2015 13:55
-
-
Save Stafie/8710143 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
// helper for making element hit area bigger. especially useful for small links / icons / btns / etc | |
%e-bigger-hitArea { | |
position: relative; | |
&:after { | |
content: ""; | |
padding: 10px; | |
position: absolute; | |
left: -10px; | |
top: -10px; | |
width: 100%; | |
height: 100%; | |
display: block; | |
} | |
} | |
//example of use | |
.btn { | |
@extend %e-bigger-hitArea; | |
//other custom stuff | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment