Created
March 10, 2014 20:48
-
-
Save zastrow/9474007 to your computer and use it in GitHub Desktop.
Common Mixins
This file contains hidden or 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 inline($val) { | |
display: inline-block; | |
vertical-align: $val; | |
.lt-ie8 & { | |
display: inline; | |
zoom: 1; | |
} | |
} |
This file contains hidden or 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 ratio($h,$w) { | |
$val: ( $h / $w ) * 100%; | |
&:after { | |
display:block; | |
content:''; | |
padding-top:$val; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment