Permalink
Browse files

Replace @mixin reset-baseline mixing.

Proposed correction for #780.
  • Loading branch information...
1 parent eec7b43 commit f304c6b5dc4978ff9a067cb1c933624c7a3f4c0c @ry5n committed Mar 14, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 frameworks/compass/stylesheets/compass/typography/_vertical_rhythm.scss
@@ -64,9 +64,11 @@ $base-half-leader: $base-leader / 2;
}
}
-// resets the baseline to 1 leading unit
-@mixin reset-baseline {
- @include adjust-leading-to(1, if($relative-font-sizing, $base-font-size, $base-font-size));
+// Sets the element's internal line-height to match the existing vertical rhythm.
+// Note that the rhythm may still remain out-of-phase ('offset') from the
+// overall baseline grid, as margins, padding and more all affect alignment.
+@mixin match-base-line-height($font-size) {
+ @include adjust-leading-to(1, $font-size));
}
// Show a background image that can be used to debug your alignments.

0 comments on commit f304c6b

Please sign in to comment.