SASS as CSS

Css code posted
created at 02 Jan 17:25

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 2 ms with coderay