Use Scott Kellum's method of text hiding that is more performant and has no issue with em-based margins.

This commit is contained in:
Chris Eppstein 2012-03-08 23:47:48 -08:00
parent abcd6c897c
commit 046d4688d1

View File

@ -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;
}