Skip to content

Commit

Permalink
Fixes #13548: Use position: absolute; to fix checkbox and radio line-…
Browse files Browse the repository at this point in the history
…height problems that were introduced after #13003
  • Loading branch information
mdo committed Jun 11, 2014
1 parent c0e82ac commit 631e04b
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
4 changes: 3 additions & 1 deletion dist/css/bootstrap.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/bootstrap.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/bootstrap.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/dist/css/bootstrap.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/dist/css/bootstrap.min.css

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion less/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 631e04b

Please sign in to comment.