[Compass Core] Make the logic behind the hide-text measurement more clear. no functional change.

This commit is contained in:
Chris Eppstein 2010-08-05 20:38:54 -07:00
parent c9a2eb2154
commit d99698f67a

View File

@ -26,7 +26,9 @@
// Hides text in an element so you can see the background. // Hides text in an element so you can see the background.
@mixin hide-text { @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; overflow: hidden;
text-align: left; text-align: left;
} }