]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
change .span* inputs to use content-sizing: border-box; to make them behave as block...
authorMark Otto <markdotto@gmail.com>
Sat, 28 Jan 2012 22:30:45 +0000 (14:30 -0800)
committerMark Otto <markdotto@gmail.com>
Sat, 28 Jan 2012 22:30:45 +0000 (14:30 -0800)
docs/assets/css/bootstrap-responsive.css
less/responsive.less

index b991d1242e5f1766b62425ab5038d1cbedf5ae9c..19c465e4453752323df972b34aca72bd2872f873 100644 (file)
@@ -7,6 +7,33 @@
     display: block;
     line-height: 18px;
   }
+  input[class*="span"],
+  select[class*="span"],
+  textarea[class*="span"],
+  .uneditable-input {
+    display: block;
+    width: 100%;
+    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;
+    /* Older Webkit */
+  
+    -moz-box-sizing: border-box;
+    /* Older FF */
+  
+    -ms-box-sizing: border-box;
+    /* IE8 */
+  
+    box-sizing: border-box;
+    /* CSS3 spec*/
+  
+  }
+  .input-prepend input[class*="span"], .input-append input[class*="span"] {
+    width: auto;
+  }
   input[type="checkbox"], input[type="radio"] {
     border: 1px solid #ccc;
   }
index 2d49f2095e266cf495dc2d4cb44c030d7062ed07..ef2df5f1dc194f002080c12f3c2e045ef9423eb7 100644 (file)
     line-height: @baseLineHeight;
   }
 
+  // Make span* classes full width
+  input[class*="span"],
+  select[class*="span"],
+  textarea[class*="span"],
+  .uneditable-input {
+    display: block;
+    width: 100%;
+    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; /* Older Webkit */
+       -moz-box-sizing: border-box; /* Older FF */
+        -ms-box-sizing: border-box; /* IE8 */
+            box-sizing: border-box; /* CSS3 spec*/
+  }
+  // But don't let it screw up prepend/append inputs
+  .input-prepend input[class*="span"],
+  .input-append input[class*="span"] {
+    width: auto;
+  }
+
   // Update checkboxes for iOS
   input[type="checkbox"],
   input[type="radio"] {