aboutsummaryrefslogtreecommitdiff
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
parent22d52fca46c792c08bd316298c4dd85e52bf531f (diff)
downloadbootstrap-475b985a0efaf534b56089f12c570d7861ce72f5.tar.xz
bootstrap-475b985a0efaf534b56089f12c570d7861ce72f5.zip
remove padding from first-child of inline radios/checkboxes
-rw-r--r--docs/assets/css/bootstrap.css3
-rw-r--r--less/forms.less5
2 files changed, 8 insertions, 0 deletions
diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css
index e928bb6d1..1b572090c 100644
--- a/docs/assets/css/bootstrap.css
+++ b/docs/assets/css/bootstrap.css
@@ -596,6 +596,9 @@ input[type="hidden"] {
.radio.inline + .radio.inline, .checkbox.inline + .checkbox.inline {
margin-left: 10px;
}
+.controls > .radio.inline:first-child, .controls > .checkbox.inline:first-child {
+ padding-top: 5px;
+}
input, textarea {
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
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
+}