aboutsummaryrefslogtreecommitdiff
path: root/less/forms.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-01-28 16:37:43 -0800
committerMark Otto <[email protected]>2012-01-28 16:37:43 -0800
commit475b985a0efaf534b56089f12c570d7861ce72f5 (patch)
tree442025c1b7bf2e8b60a05067a1e820540381b4cc /less/forms.less
parent22d52fca46c792c08bd316298c4dd85e52bf531f (diff)
downloadbootstrap-475b985a0efaf534b56089f12c570d7861ce72f5.tar.xz
bootstrap-475b985a0efaf534b56089f12c570d7861ce72f5.zip
remove padding from first-child of inline radios/checkboxes
Diffstat (limited to 'less/forms.less')
-rw-r--r--less/forms.less5
1 files changed, 5 insertions, 0 deletions
diff --git a/less/forms.less b/less/forms.less
index b0daeb034..69ddbcac9 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -175,6 +175,11 @@ 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: 5px; // has to be padding because margin collaspes
+}