Skip to content

Commit

Permalink
add a super jank fix for horizontal-forms and .input-prepend/append i…
Browse files Browse the repository at this point in the history
…n IE7
  • Loading branch information
mdo committed Mar 12, 2012
1 parent c35b04c commit 685039d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
Binary file modified docs/assets/bootstrap.zip
Binary file not shown.
6 changes: 6 additions & 0 deletions docs/assets/css/bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
5 changes: 5 additions & 0 deletions less/forms.less
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ select:focus:required:invalid {
input,
select,
.uneditable-input {
*margin-left: 0;
.border-radius(0 3px 3px 0);
&:focus {
position: relative;
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 685039d

Please sign in to comment.