]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
update hide text to h5bp technique #2586
authorJacob Thornton <jacobthornton@gmail.com>
Wed, 14 Mar 2012 19:00:27 +0000 (12:00 -0700)
committerJacob Thornton <jacobthornton@gmail.com>
Wed, 14 Mar 2012 19:00:27 +0000 (12:00 -0700)
docs/assets/bootstrap.zip
docs/assets/css/bootstrap-responsive.css
docs/assets/css/bootstrap.css
less/mixins.less

index d6ecc58693c5785f37001f2ade57da23396f8843..7f099d78f910d37c7b22260785b235c7fef783fb 100644 (file)
Binary files a/docs/assets/bootstrap.zip and b/docs/assets/bootstrap.zip differ
index d9fa91d6c156fb1153ab6f256bb0e0693bae7636..b007300c2a1ba2972f05dabb1e5abf6d64fc7872 100644 (file)
   clear: both;
 }
 .hide-text {
-  overflow: hidden;
-  text-indent: 100%;
-  white-space: nowrap;
+  border: 0;
+  font: 0/0 a;
+  text-shadow: none;
+  color: transparent;
+  background-color: transparent;
 }
 .input-block-level {
   display: block;
     width: 100%;
     min-height: 28px;
     /* Make inputs at least the height of their button counterpart */
-
+  
     /* Makes inputs behave like true block-level elements */
-
+  
     -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
     -ms-box-sizing: border-box;
index 495188af7faca02cfd553ebb7c809ee469cf1a8b..081f97ee064c04e1a8c6eede8282073fb7e32d35 100644 (file)
@@ -113,9 +113,11 @@ textarea {
   clear: both;
 }
 .hide-text {
-  overflow: hidden;
-  text-indent: 100%;
-  white-space: nowrap;
+  border: 0;
+  font: 0/0 a;
+  text-shadow: none;
+  color: transparent;
+  background-color: transparent;
 }
 .input-block-level {
   display: block;
index 0074e89241024bf684c945bd5dee93295c207877..a118fe7c46c05d485a1ec7fdf2509cfe795b07fb 100644 (file)
   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;
 }