Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added reset-baseline to vertical rhythym

  • Loading branch information...
commit c92766ba99d7f2c6f00f666c804cbc8e6de309f2 1 parent 57dcbad
@scottdavis scottdavis authored
View
5 frameworks/compass/stylesheets/compass/typography/_vertical_rhythm.scss
@@ -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.
View
3  test/fixtures/stylesheets/compass/css/vertical_rhythm.css
@@ -40,3 +40,6 @@ html > body {
border-bottom-style: solid;
border-bottom-width: 0.25em;
padding-bottom: 0.417em; }
+
+.reset {
+ line-height: 1.143em; }
View
4 test/fixtures/stylesheets/compass/sass/vertical_rhythm.scss
@@ -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; }
Please sign in to comment.
Something went wrong with that request. Please try again.