Skip to content

Commit

Permalink
(less) Fixes twbs#8795, a reoccurence of twbs#1969
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo committed Aug 5, 2013
1 parent 7b0b993 commit 714b220
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions forms.less
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,20 @@ textarea {
.checkbox {
display: inline-block;
}

// Remove default margin on radios/checkboxes that were used for stacking, and
// then undo the floating of radios and checkboxes to match (which also avoids
// a bug in WebKit: https://github.com/twbs/bootstrap/issues/1969).
.radio,
.checkbox {
margin-top: 0;
margin-bottom: 0;
padding-left: 0;
}
.radio input[type="radio"],
.checkbox input[type="checkbox"] {
float: none;
margin-left: 0;
}
}

Expand Down

0 comments on commit 714b220

Please sign in to comment.