From 046d4688d15112e1509beee3fec085d12cb96261 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Thu, 8 Mar 2012 23:47:48 -0800 Subject: [PATCH] Use Scott Kellum's method of text hiding that is more performant and has no issue with em-based margins. --- .../stylesheets/compass/typography/text/_replacement.scss | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frameworks/compass/stylesheets/compass/typography/text/_replacement.scss b/frameworks/compass/stylesheets/compass/typography/text/_replacement.scss index 0d184eb2..a6b8166c 100644 --- a/frameworks/compass/stylesheets/compass/typography/text/_replacement.scss +++ b/frameworks/compass/stylesheets/compass/typography/text/_replacement.scss @@ -26,7 +26,8 @@ // Hides text in an element so you can see the background. @mixin hide-text { - font: 0/0 serif; - text-shadow: none; - color: transparent; + // slightly wider than the box prevents issues with inline-block elements + text-indent: 110%; + white-space: nowrap; + overflow: hidden; }