Skip to content

Instantly share code, notes, and snippets.

@airen
Created August 8, 2014 14:45
Show Gist options
  • Save airen/c02a9a8e864d00b324ed to your computer and use it in GitHub Desktop.
Save airen/c02a9a8e864d00b324ed to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.0.rc.3)
// Compass (v1.0.0.rc.1)
// ----
//Thanks:http://web-design-weekly.com/2013/05/12/handy-sass-mixins/
@mixin line-height($heightValue: 12 ){
line-height: $heightValue + px; //fallback for old browsers
line-height: (0.125 * $heightValue) + rem;
}
//Usage:
body {
@include line-height (16);
}
body {
line-height: 16px;
line-height: 2rem;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment