From 8e0afbeaa42dfabb75817b7fc1c677cd372c8c43 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Wed, 14 Mar 2012 12:00:27 -0700 Subject: update hide text to h5bp technique #2586 --- less/mixins.less | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'less/mixins.less') diff --git a/less/mixins.less b/less/mixins.less index 0074e8924..a118fe7c4 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -98,13 +98,15 @@ white-space: nowrap; } -// New image replacement +// CSS image replacement // ------------------------- -// Source: http://www.zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement/ +// Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757 .hide-text { - overflow: hidden; - text-indent: 100%; - white-space: nowrap; + border: 0; + font: 0/0 a; + text-shadow: none; + color: transparent; + background-color: transparent; } -- cgit v1.2.3