fix forms examples and allow for inputs in labels

This commit is contained in:
Mark Otto
2012-01-25 21:28:24 -08:00
parent b6b19866ac
commit 94ea3b62f0
5 changed files with 126 additions and 103 deletions

View File

@@ -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;