Skip to content

Commit

Permalink
fixes #4819: manual fix of missing .control-label in responsive767 fi…
Browse files Browse the repository at this point in the history
…le, coupled with a remake
  • Loading branch information
mdo committed Aug 29, 2012
1 parent e27b135 commit 2137cd6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 19 deletions.
2 changes: 1 addition & 1 deletion docs/assets/css/bootstrap-responsive.css
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@
input[type="radio"] {
border: 1px solid #ccc;
}
.form-horizontal .control-group > label {
.form-horizontal .control-label {
float: none;
width: auto;
padding-top: 0;
Expand Down
38 changes: 20 additions & 18 deletions less/responsive-767px-max.less
Original file line number Diff line number Diff line change
Expand Up @@ -132,24 +132,26 @@
}

// Remove the horizontal form styles
.form-horizontal .control-group > label {
float: none;
width: auto;
padding-top: 0;
text-align: left;
}
// Move over all input controls and content
.form-horizontal .controls {
margin-left: 0;
}
// Move the options list down to align with labels
.form-horizontal .control-list {
padding-top: 0; // has to be padding because margin collaspes
}
// Move over buttons in .form-actions to align with .controls
.form-horizontal .form-actions {
padding-left: 10px;
padding-right: 10px;
.form-horizontal {
.control-label {
float: none;
width: auto;
padding-top: 0;
text-align: left;
}
// Move over all input controls and content
.controls {
margin-left: 0;
}
// Move the options list down to align with labels
.control-list {
padding-top: 0; // has to be padding because margin collaspes
}
// Move over buttons in .form-actions to align with .controls
.form-actions {
padding-left: 10px;
padding-right: 10px;
}
}

// Modals
Expand Down

0 comments on commit 2137cd6

Please sign in to comment.