Skip to content

Instantly share code, notes, and snippets.

@scottdavis
Created August 17, 2011 20:39
Show Gist options
  • Select an option

  • Save scottdavis/1152555 to your computer and use it in GitHub Desktop.

Select an option

Save scottdavis/1152555 to your computer and use it in GitHub Desktop.
@mixin adjust-font-size-to-with-border($to-size, $lines: lines-for-font-size($to-size), $from-size: $base-font-size, $border-size:0px) {
@if not $relative-font-sizing and $from-size != $base-font-size {
@warn "$relative-font-sizing is false but a relative font size was passed to adjust-font-size-to"; }
font-size: $font-unit * $to-size / $from-size;
line-height: ($font-unit * $lines * $base-line-height / $from-size) - $border-size;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment