Skip to content

Instantly share code, notes, and snippets.

@nmcv
Forked from davidyeiser/example.scss
Created December 28, 2012 12:12
Show Gist options
  • Save nmcv/4397231 to your computer and use it in GitHub Desktop.
Save nmcv/4397231 to your computer and use it in GitHub Desktop.
$font-size-base: 16px;
$font-size-minor: 10px;
@mixin font-size($scale: 1) {
font-size: round(
($font-size-base * ((exp(1.618, $scale) - exp(-0.618, $scale)) / 2.236)) +
($font-size-minor * ((exp(1.618, ($scale - 1)) - exp(-0.618, ($scale - 1))) / 2.236))
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment