Skip to content

Instantly share code, notes, and snippets.

@drabiter
Created September 8, 2013 05:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drabiter/6482051 to your computer and use it in GitHub Desktop.
Save drabiter/6482051 to your computer and use it in GitHub Desktop.
@mixin lineHeight($font-value, $colValue)
$lineHeightRatio : 1.618-(1/(2*1.618))*(1-($colValue/(($font-value*1.618)*($font-value*1.618))))
$lineHeightValue : ceil($font-value * $lineHeightRatio)*1px
line-height: $lineHeightValue
@function goldMargin($fontSize, $value: 24)
@return ($value/$fontSize)*1px
p
@include lineHeight(20, 550)
margin-top: margin(20, 48)
margin-bottom: margin(20, 48)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment