2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-05 16:42:29 +03:00

Fixes #13548: Use position: absolute; to fix checkbox and radio line-height problems that were introduced after #13003

This commit is contained in:
Mark Otto
2014-06-10 20:50:58 -07:00
parent c0e82accad
commit 631e04b6fc
6 changed files with 11 additions and 6 deletions
+4 -1
View File
@@ -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;
@@ -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