diff options
| author | Mark Otto <[email protected]> | 2012-12-26 13:59:09 -0600 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-12-26 13:59:09 -0600 |
| commit | c17673dc6139de37ecb5d075231e426d1b238706 (patch) | |
| tree | 14ece3ad2cbf4b410e6cb632f5a452f433687d4f /less/forms.less | |
| parent | 9921d219693a1b01f7c9275babbef3f9d0afd3be (diff) | |
| download | bootstrap-c17673dc6139de37ecb5d075231e426d1b238706.tar.xz bootstrap-c17673dc6139de37ecb5d075231e426d1b238706.zip | |
Restore .form-horizontal
Diffstat (limited to 'less/forms.less')
| -rw-r--r-- | less/forms.less | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/less/forms.less b/less/forms.less index dc4e7ffd9..cc0f49b34 100644 --- a/less/forms.less +++ b/less/forms.less @@ -428,7 +428,6 @@ select:focus:invalid { - // Input groups // -------------------------------------------------- @@ -537,3 +536,31 @@ select:focus:invalid { border-radius: 0 @border-radius-base @border-radius-base 0; } } + + + +// Horizontal forms +// -------------------------------------------------- + +.form-horizontal { + + // Increase spacing between groups + .control-group { + margin-bottom: @line-height-base / 2; + .clearfix(); + } + + // Float the labels left + .control-group > .control-label { + float: left; + width: @component-offset-horizontal - 20; + padding-top: 5px; + text-align: right; + } + + // Move over all input controls and content over + .control-group > .controls { + margin-left: @component-offset-horizontal; + } + +} |
