Skip to content

Instantly share code, notes, and snippets.

@starryeyez024
Created February 21, 2014 21:57
Show Gist options
  • Save starryeyez024/9144369 to your computer and use it in GitHub Desktop.
Save starryeyez024/9144369 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.4)
// Compass (v1.0.0.alpha.18)
// ----
$base-font-size: 12px
$base-line-height: 9px // 1.5 times the base font size
@function strip-unit($value)
@return $value / ($value * 0 + 1)
@mixin adjust-font-size-too($font-size, $line-height: 1px)
font-size: $font-size
font-size: $font-size / $base-font-size +rem
line-height: strip-unit($line-height / $base-line-height)
.line-new-22
+adjust-font-size-too(22px, 22px)
.line-new-22 {
font-size: 22px;
font-size: 1.83333rem;
line-height: 2.44444;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment