aboutsummaryrefslogtreecommitdiff
path: root/less/forms.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-02-05 02:16:46 -0800
committerMark Otto <[email protected]>2012-02-05 02:16:46 -0800
commit59b32586af807d0e4f2985ef6e927e32d8ae2df5 (patch)
treed5e0520c6ab1303b1582b105bacff8eba1eb2beb /less/forms.less
parent91475c865dd8fe224c574c1a15e8949fccdda8c0 (diff)
downloadbootstrap-59b32586af807d0e4f2985ef6e927e32d8ae2df5.tar.xz
bootstrap-59b32586af807d0e4f2985ef6e927e32d8ae2df5.zip
close #1628 to add padding to all inline checkboxes/radios
Diffstat (limited to 'less/forms.less')
-rw-r--r--less/forms.less7
1 files changed, 2 insertions, 5 deletions
diff --git a/less/forms.less b/less/forms.less
index a8de0f24c..3f68df01c 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -166,9 +166,11 @@ input[type="hidden"] {
}
// Radios and checkboxes on same line
+// TODO v3: Convert .inline to .control-inline
.radio.inline,
.checkbox.inline {
display: inline-block;
+ padding-top: 5px;
margin-bottom: 0;
vertical-align: middle;
}
@@ -176,11 +178,6 @@ input[type="hidden"] {
.checkbox.inline + .checkbox.inline {
margin-left: 10px; // space out consecutive inline controls
}
-// But don't forget to remove their padding on first-child
-.controls > .radio.inline:first-child,
-.controls > .checkbox.inline:first-child {
- padding-top: 0;
-}