Skip to content

Commit

Permalink
added reset-baseline to vertical rhythym
Browse files Browse the repository at this point in the history
  • Loading branch information
scottdavis committed Dec 19, 2011
1 parent 57dcbad commit c92766b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,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));
}

// Show a background image that can be used to debug your alignments.
// include the $img argument if you would rather use your own image than the
// Compass default gradient image.
Expand Down
3 changes: 3 additions & 0 deletions test/fixtures/stylesheets/compass/css/vertical_rhythm.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,6 @@ html > body {
border-bottom-style: solid;
border-bottom-width: 0.25em;
padding-bottom: 0.417em; }

.reset {
line-height: 1.143em; }
4 changes: 3 additions & 1 deletion test/fixtures/stylesheets/compass/sass/vertical_rhythm.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ $base-line-height: 16px;
.small-padded { @include adjust-font-size-to(12px,1); @include rhythm(1,1,1,1,12px); }

.borders { @include h-borders(1px,1); }
.large-borders { @include adjust-font-size-to(24px,3); @include h-borders(6px,1,24px); }
.large-borders { @include adjust-font-size-to(24px,3); @include h-borders(6px,1,24px); }

.reset { @include reset-baseline; }

0 comments on commit c92766b

Please sign in to comment.