SASS as HTML

Html code posted
created at 02 Jan 17:26

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
@function lines-for-font-size($font-size) {
  $lines: if($round-to-nearest-half-line,
    ceil(2 * $font-size / $base-line-height) / 2,
    ceil($font-size / $base-line-height)
  );
  // If lines are cramped include some extra lead.
  @if ( ($lines * $base-line-height - $font-size) < ($min-line-padding * 2) ) {
    $lines: $lines + if($round-to-nearest-half-line, 0.5, 1);
  }
  @return $lines;
}
408 Bytes in 6 ms with coderay