aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2012-03-14 12:00:27 -0700
committerJacob Thornton <[email protected]>2012-03-14 12:00:27 -0700
commit8e0afbeaa42dfabb75817b7fc1c677cd372c8c43 (patch)
tree71c15f345ef24e43e353c40b8dadf6911ac5ff67 /less
parent59503e71ff06d0fd065c2fb981f55f4651ebc274 (diff)
downloadbootstrap-8e0afbeaa42dfabb75817b7fc1c677cd372c8c43.tar.xz
bootstrap-8e0afbeaa42dfabb75817b7fc1c677cd372c8c43.zip
update hide text to h5bp technique #2586
Diffstat (limited to 'less')
-rw-r--r--less/mixins.less12
1 files changed, 7 insertions, 5 deletions
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;
}