Skip to content

View source for lines-for-font-size() broken #1670

@benebun

Description

@benebun

The view source link for the lines-for-font-size() function doesn't work when the syntax preference is scss because it got mangled with the sass source somehow:

http://compass-style.org/reference/compass/typography/vertical_rhythm/#function-lines-for-font-size

@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 * $base-line-height - $font-size
<pre class="brush: scss source-code scss">@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 * $base-line-height - $font-size
</pre>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions