From 33ee8b09695282cc353108935f2ba83ff892afa6 Mon Sep 17 00:00:00 2001 From: Eric Meyer Date: Thu, 10 Nov 2011 15:04:49 -0700 Subject: [PATCH] remove 'underline.png' reference from vertical-rhythms. --- .../compass/typography/_vertical_rhythm.scss | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/frameworks/compass/stylesheets/compass/typography/_vertical_rhythm.scss b/frameworks/compass/stylesheets/compass/typography/_vertical_rhythm.scss index 79c15ec8..7fce4e37 100644 --- a/frameworks/compass/stylesheets/compass/typography/_vertical_rhythm.scss +++ b/frameworks/compass/stylesheets/compass/typography/_vertical_rhythm.scss @@ -1,3 +1,5 @@ +@import "compass/layout/grid-background"; + // The base font size $base-font-size: 16px !default; @@ -58,8 +60,14 @@ $base-half-leader: $base-leader / 2; } // Show a background image that can be used to debug your alignments. -@mixin debug-vertical-alignment($img: 'underline.png') { - background: url($img); +// include the $img argument if you would rather use your own image than the +// Compass default gradient image. +@mixin debug-vertical-alignment($img: false) { + @if $img { + background: image-url($img); + } @else { + @include baseline-grid-background($base-rhythm-unit); + } } // Adjust a block to have a different font size and leading to maintain the rhythm.