aboutsummaryrefslogtreecommitdiff
path: root/lib/forms.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-01-25 21:28:24 -0800
committerMark Otto <[email protected]>2012-01-25 21:28:24 -0800
commit94ea3b62f09c840db5efe5e48815d011ca7e43d1 (patch)
treed3613667e546782efbff70c477597ddb4dc11e4d /lib/forms.less
parentb6b19866ac82089b9d3964f7fe9bbb3457306495 (diff)
downloadbootstrap-94ea3b62f09c840db5efe5e48815d011ca7e43d1.tar.xz
bootstrap-94ea3b62f09c840db5efe5e48815d011ca7e43d1.zip
fix forms examples and allow for inputs in labels
Diffstat (limited to 'lib/forms.less')
-rw-r--r--lib/forms.less11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/forms.less b/lib/forms.less
index 7451f36ef..3acb8c5dc 100644
--- a/lib/forms.less
+++ b/lib/forms.less
@@ -68,6 +68,13 @@ select,
height: auto;
}
+// Inputs within a label
+label input,
+label textarea,
+label select {
+ display: block;
+}
+
// Mini reset for unique input types
input[type=image],
input[type=checkbox],
@@ -474,6 +481,10 @@ select:focus:required:invalid {
// --------------------------
.form-horizontal {
+ // Legend collapses margin, so we're relegated to padding
+ legend + .control-group {
+ padding-top: @baseLineHeight * 1.5;
+ }
// Increase spacing between groups
.control-group {
margin-bottom: @baseLineHeight;