Title / Description
Code @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; }
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code