From a1ff692e58650d32d3cea8f6aa8d7df0fe8b8f43 Mon Sep 17 00:00:00 2001 From: JohnAlbin Date: Mon, 12 Mar 2012 17:27:08 +0800 Subject: [PATCH] Simplify code in vertical_rhythm's adjust-leading-to() using rhythm() function. --- .../stylesheets/compass/typography/_vertical_rhythm.scss | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/frameworks/compass/stylesheets/compass/typography/_vertical_rhythm.scss b/frameworks/compass/stylesheets/compass/typography/_vertical_rhythm.scss index f041ebc0..f26ac866 100644 --- a/frameworks/compass/stylesheets/compass/typography/_vertical_rhythm.scss +++ b/frameworks/compass/stylesheets/compass/typography/_vertical_rhythm.scss @@ -98,10 +98,7 @@ $base-half-leader: $base-leader / 2; // font should use up. It does not have to be an integer, but it defaults to the // smallest integer that is large enough to fit the font. @mixin adjust-leading-to($lines, $font-size: $base-font-size) { - @if not $relative-font-sizing and $font-size != $base-font-size { - @warn "$relative-font-sizing is false but a relative font size was passed to adjust-leading-to"; - } - line-height: $font-unit * $lines * $base-line-height / $font-size; + line-height: rhythm($lines, $font-size); } // Calculate rhythm units.