From cbd5c41ec9c82c95115f70c0e304abd53b2593fb Mon Sep 17 00:00:00 2001 From: whatsnewsisyphus Date: Wed, 11 Mar 2015 18:54:52 +0000 Subject: [PATCH 1/2] My lineheightmod had a double negative that bugged it up! It's fixed now, adding or removing half rBaselines at a time. --- _knife.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_knife.scss b/_knife.scss index 8bf2bc3..3d1253c 100644 --- a/_knife.scss +++ b/_knife.scss @@ -194,10 +194,10 @@ $outputrems: true !default; //lineheightmod to replace push and pull with a single value, easy declare eg. to bump up lineheight by one whole line (2 half lines) for an element ktype(0,1,1,2) @if ($lineheightmod < 0) { $m: ($lineheightmod / 2); - $new-line-height: $new-line-height - ($new-line-height*$m); + $new-line-height: $new-line-height + ($kb*$m); } @else if ($lineheightmod > 0) { $m: ($lineheightmod / 2); - $new-line-height: $new-line-height + ($new-line-height*$m); + $new-line-height: $new-line-height + ($kb*$m); } // offset From 9e2963992cbddfaead83315ce343f7d5e4cec881 Mon Sep 17 00:00:00 2001 From: whatsnewsisyphus Date: Wed, 11 Mar 2015 18:56:15 +0000 Subject: [PATCH 2/2] My lineheightmod had a double negative that bugged it up! It now works as intended, adding and removing half baseline at a time --- _knife.sass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_knife.sass b/_knife.sass index 4e5352a..f2016ca 100644 --- a/_knife.sass +++ b/_knife.sass @@ -168,10 +168,10 @@ $outputrems: true !default //lineheightmod to replace push and pull with a single value, easy declare eg. to bump up lineheight by one whole line (2 half lines) for an element ktype(0,1,1,2) @if $lineheightmod < 0 $m: ($lineheightmod / 2) - $new-line-height: $new-line-height - ($new-line-height*$m) + $new-line-height: $new-line-height + ($kb*$m) @else if $lineheightmod > 0 $m: ($lineheightmod / 2) - $new-line-height: $new-line-height + ($new-line-height*$m) + $new-line-height: $new-line-height + ($kb*$m) // offset @if $offset != 0