Skip to content

Commit

Permalink
(less) update inline forms to resolve checkbox label with space in it…
Browse files Browse the repository at this point in the history
… and overlapping content, per twbs#1969
  • Loading branch information
mdo committed Feb 21, 2012
1 parent e6a27d0 commit d9a8f0c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion forms.less
Original file line number Diff line number Diff line change
Expand Up @@ -475,14 +475,25 @@ select:focus:required:invalid {
.form-inline .input-prepend .add-on {
vertical-align: middle;
}
// Inline checkbox/radio labels
// Inline checkbox/radio labels (remove padding on left)
.form-search .radio,
.form-search .checkbox,
.form-inline .radio,
.form-inline .checkbox {
padding-left: 0;
margin-bottom: 0;
vertical-align: middle;
}
// Remove float and margin, set to inline-block
.form-search .radio input[type="radio"],
.form-search .checkbox input[type="checkbox"],
.form-inline .radio input[type="radio"],
.form-inline .checkbox input[type="checkbox"] {
float: left;
margin-left: 0;
margin-right: 3px;
}


// Margin to space out fieldsets
.control-group {
Expand Down

0 comments on commit d9a8f0c

Please sign in to comment.