]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
remove text indent on carets (not needed) and add inline replacement mixin
authorMark Otto <markotto@twitter.com>
Mon, 12 Mar 2012 04:12:59 +0000 (21:12 -0700)
committerMark Otto <markotto@twitter.com>
Mon, 12 Mar 2012 04:12:59 +0000 (21:12 -0700)
docs/assets/bootstrap.zip
docs/assets/css/bootstrap-responsive.css
docs/assets/css/bootstrap.css
less/buttons.less
less/mixins.less

index be630ee80178de4b212594d924436757c3cb0d8e..6ef4b19101033d9dc45a2ca6b902ff8cf9fb7168 100644 (file)
Binary files a/docs/assets/bootstrap.zip and b/docs/assets/bootstrap.zip differ
index 48bb004edf64976d8c7946725a81ff0231da35df..14df20d4a5dfa4e2df82b386fe605e469060e45c 100644 (file)
 .clearfix:after {
   clear: both;
 }
+.hide-text {
+  overflow: hidden;
+  text-indent: 100%;
+  white-space: nowrap;
+}
 .hidden {
   display: none;
   visibility: hidden;
index 1834e15eb02001cf22e398ed5e04ce42c28df0b7..65b63118c91838fa938bf93316e79dc2176acdc2 100644 (file)
@@ -112,6 +112,11 @@ textarea {
 .clearfix:after {
   clear: both;
 }
+.hide-text {
+  overflow: hidden;
+  text-indent: 100%;
+  white-space: nowrap;
+}
 body {
   margin: 0;
   font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
@@ -1930,6 +1935,10 @@ table .span24 {
 }
 .btn {
   display: inline-block;
+  *display: inline;
+  /* IE7 inline-block hack */
+
+  *zoom: 1;
   padding: 4px 10px 4px;
   margin-bottom: 0;
   font-size: 13px;
index f93cd01a969de5617df976e93074f9afec530412..8376c7a7630c86fd3070688aeeb0e1b1b18e6c8a 100644 (file)
@@ -8,6 +8,7 @@
 // Core
 .btn {
   display: inline-block;
+  .ie7-inline-block();
   padding: 4px 10px 4px;
   margin-bottom: 0; // For input.btn
   font-size: @baseFontSize;
index cafd7daf909d8eb3b18cfa7402691b567a2e3e1d..8ff5efe5030b6490a7c7988650d6a0360a0f38a0 100644 (file)
   white-space: nowrap;
 }
 
-
+// New image replacement
+// -------------------------
+// Source: http://www.zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement/
+.hide-text {
+  overflow: hidden;
+  text-indent: 100%;
+  white-space: nowrap;
+}
 
 // FONTS
 // --------------------------------------------------