Skip to content

Commit

Permalink
(less) Fixes twbs#13548: Use position: absolute; to fix checkbox and …
Browse files Browse the repository at this point in the history
…radio line-height problems that were introduced after twbs#13003
  • Loading branch information
mdo committed Jun 11, 2014
1 parent 8cfc8e4 commit f4f15ad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion forms.less
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ input[type="month"] {

.radio,
.checkbox {
position: relative;
display: block;
min-height: @line-height-computed; // clear the floating input if there is no label text
margin-top: 10px;
Expand All @@ -222,9 +223,11 @@ input[type="month"] {
.radio-inline input[type="radio"],
.checkbox input[type="checkbox"],
.checkbox-inline input[type="checkbox"] {
float: left;
position: absolute;
margin-left: -20px;
margin-top: 4px \9;
}

.radio + .radio,
.checkbox + .checkbox {
margin-top: -5px; // Move up sibling radios or checkboxes for tighter spacing
Expand Down

0 comments on commit f4f15ad

Please sign in to comment.