]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
add a super jank fix for horizontal-forms and .input-prepend/append in IE7
authorMark Otto <markotto@twitter.com>
Mon, 12 Mar 2012 07:15:27 +0000 (00:15 -0700)
committerMark Otto <markotto@twitter.com>
Mon, 12 Mar 2012 07:16:01 +0000 (00:16 -0700)
docs/assets/bootstrap.zip
docs/assets/css/bootstrap.css
less/forms.less

index a5d00d95ebd304a1cf05a169a2800f7428d5e50d..e081f80dff1851c57bfc00891f97d711e8b5d3d3 100644 (file)
Binary files a/docs/assets/bootstrap.zip and b/docs/assets/bootstrap.zip differ
index edeaf8bba7a4da5130149fad85c74eb1b4a6f930..e6ccb8b14baa9dcf883981ce24572e4f4e7871d5 100644 (file)
@@ -990,6 +990,7 @@ select:focus:required:invalid:focus {
 .input-append select,
 .input-prepend .uneditable-input,
 .input-append .uneditable-input {
+  *margin-left: 0;
   -webkit-border-radius: 0 3px 3px 0;
   -moz-border-radius: 0 3px 3px 0;
   border-radius: 0 3px 3px 0;
@@ -1167,6 +1168,11 @@ legend + .control-group {
 }
 .form-horizontal .controls {
   margin-left: 160px;
+  /* Super jank IE7 fix to ensure the inputs in .input-append and input-prepend don't inherit the margin of the parent, in this case .controls */
+
+  *display: inline-block;
+  *margin-left: 0;
+  *padding-left: 20px;
 }
 .form-horizontal .help-block {
   margin-top: 9px;
index 6e1d0fae338abf2d90e708359d2a0e5fa03dbf39..8d9c253083e5dc03782ceac90659bee5136cc88a 100644 (file)
@@ -365,6 +365,7 @@ select:focus:required:invalid {
   input,
   select,
   .uneditable-input {
+    *margin-left: 0;
     .border-radius(0 3px 3px 0);
     &:focus {
       position: relative;
@@ -537,6 +538,10 @@ legend + .control-group {
   // Move over all input controls and content
   .controls {
     margin-left: 160px;
+    /* Super jank IE7 fix to ensure the inputs in .input-append and input-prepend don't inherit the margin of the parent, in this case .controls */
+    *display: inline-block;
+    *margin-left: 0;
+    *padding-left: 20px;
   }
   // Remove bottom margin on block level help text since that's accounted for on .control-group
   .help-block {