aboutsummaryrefslogtreecommitdiff
path: root/less/forms.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2014-06-10 20:50:58 -0700
committerMark Otto <[email protected]>2014-06-10 20:50:58 -0700
commit631e04b6fc1cc643610684fe3d3c683ee486a9fe (patch)
tree131455e8743da26f44923b94b3831f721bac2d68 /less/forms.less
parentc0e82accadea85094ef2f8b208975c449130f33f (diff)
downloadbootstrap-631e04b6fc1cc643610684fe3d3c683ee486a9fe.tar.xz
bootstrap-631e04b6fc1cc643610684fe3d3c683ee486a9fe.zip
Fixes #13548: Use position: absolute; to fix checkbox and radio line-height problems that were introduced after #13003
Diffstat (limited to 'less/forms.less')
-rw-r--r--less/forms.less5
1 files changed, 4 insertions, 1 deletions
diff --git a/less/forms.less b/less/forms.less
index b678d44fc..92139d8a1 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -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