From d99698f67ab64d47cb72394bc00212a5492e6f83 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Thu, 5 Aug 2010 20:38:54 -0700 Subject: [PATCH] [Compass Core] Make the logic behind the hide-text measurement more clear. no functional change. --- .../stylesheets/compass/utilities/text/_replacement.scss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frameworks/compass/stylesheets/compass/utilities/text/_replacement.scss b/frameworks/compass/stylesheets/compass/utilities/text/_replacement.scss index d88c75ea92..041f105393 100644 --- a/frameworks/compass/stylesheets/compass/utilities/text/_replacement.scss +++ b/frameworks/compass/stylesheets/compass/utilities/text/_replacement.scss @@ -26,7 +26,9 @@ // Hides text in an element so you can see the background. @mixin hide-text { - text-indent: -119988px; + $approximate_em_value: 12px / 1em; + $wider_than_any_screen: -9999em; + text-indent: $wider_than_any_screen * $approximate_em_value; overflow: hidden; text-align: left; }