diff options
| author | Mark Otto <[email protected]> | 2014-06-19 18:33:41 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2014-06-19 18:33:41 -0700 |
| commit | 1e53dcd137e7d8c8abe26af610ebb14c26de1043 (patch) | |
| tree | 352a4053d6147a060d151c5f98217df69f2869e3 /less/forms.less | |
| parent | 166b66d08a1e3a01c96dd73856e3413677403ddd (diff) | |
| download | bootstrap-1e53dcd137e7d8c8abe26af610ebb14c26de1043.tar.xz bootstrap-1e53dcd137e7d8c8abe26af610ebb14c26de1043.zip | |
Fixes #13872: Always apply padding to .form-control-static for that vertical alignment
Diffstat (limited to 'less/forms.less')
| -rw-r--r-- | less/forms.less | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/less/forms.less b/less/forms.less index ab23e68a3..202cdfcc4 100644 --- a/less/forms.less +++ b/less/forms.less @@ -355,7 +355,11 @@ input[type="checkbox"] { // a horizontal form layout. .form-control-static { - margin-bottom: 0; // Remove default margin from `p` + // Size it appropriately next to real form controls + padding-top: (@padding-base-vertical + 1); + padding-bottom: (@padding-base-vertical + 1); + // Remove default margin from `p` + margin-bottom: 0; } @@ -484,11 +488,6 @@ input[type="checkbox"] { .make-row(); } - .form-control-static { - padding-top: (@padding-base-vertical + 1); - padding-bottom: (@padding-base-vertical + 1); - } - // Reset spacing and right align labels, but scope to media queries so that // labels on narrow viewports stack the same as a default form example. @media (min-width: @screen-sm-min) { |
