Skip to content

Instantly share code, notes, and snippets.

@kylefiedler
Created February 28, 2013 18:12
Show Gist options
  • Save kylefiedler/5058830 to your computer and use it in GitHub Desktop.
Save kylefiedler/5058830 to your computer and use it in GitHub Desktop.
line-height function
// Line height function to quickly and easily calculate values for a baseline or near baseline grid.
// eg. padding: lh(.5) 0;
$line-height: 24px;
@function lh($amount: 1) {
@return $line-height * $amount;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment