Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
+ hide() mixin for text-indent: 100% method
- measurable performance gains over 99999em method
- added as hide() mixin instead of changing hide-text() for backwards
compatability; in almost every case it's a drop-in replacement but best
not to screw with what people expect from their mixins
  • Loading branch information
bluestrike2 committed Jun 14, 2012
1 parent 2124b04 commit ac1a1cb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/nib/text/hide-text.styl
Expand Up @@ -2,6 +2,11 @@
* Hide text.
*/

hide()
text-indent: 100%
white-space: nowrap
overflow: hidden

hide-text()
text-indent: -99999em
overflow: hidden
Expand Down

0 comments on commit ac1a1cb

Please sign in to comment.