Commit 920d9958 authored by Jeremy Martin's avatar Jeremy Martin

webkit legend margin fix for non-horizontal forms

parent b36a744f
...@@ -459,15 +459,16 @@ select:focus:required:invalid { ...@@ -459,15 +459,16 @@ select:focus:required:invalid {
margin-bottom: @baseLineHeight / 2; margin-bottom: @baseLineHeight / 2;
} }
// Legend collapses margin, so next element is responsible for spacing
legend + .control-group {
margin-top: @baseLineHeight;
-webkit-margin-top-collapse: separate;
}
// Horizontal-specific styles // Horizontal-specific styles
// -------------------------- // --------------------------
.form-horizontal { .form-horizontal {
// Legend collapses margin, so we're relegated to padding
legend + .control-group {
margin-top: @baseLineHeight;
-webkit-margin-top-collapse: separate;
}
// Increase spacing between groups // Increase spacing between groups
.control-group { .control-group {
margin-bottom: @baseLineHeight; margin-bottom: @baseLineHeight;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment