Skip to content

Instantly share code, notes, and snippets.

@ElmahdiMahmoud
Created April 9, 2014 10:13
Show Gist options
  • Save ElmahdiMahmoud/10250881 to your computer and use it in GitHub Desktop.
Save ElmahdiMahmoud/10250881 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.4)
// Compass (v1.0.0.alpha.18)
// ----
@mixin fontsize($size:1.6, $line: $size * 1.5){
font-size: ($size * 10) + px;
line-height: ($line * 10) + px;
font-size: $size + rem;
line-height: $line + rem;
}
.foo{
@include fontsize(1.4, 2);
}
.foo {
font-size: 14px;
line-height: 20px;
font-size: 1.4rem;
line-height: 2rem;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment