diff options
author | Mark Otto <markotto@twitter.com> | 2012-03-12 10:12:45 +0400 |
---|---|---|
committer | Mark Otto <markotto@twitter.com> | 2012-03-12 10:12:45 +0400 |
commit | 58cb7c631dddca72f5ea87f73b3a59b4c2ec312c (patch) | |
tree | 6db7665b70954277b5adc7019da352b2fbc518f4 /less | |
parent | 91eef351e40c7833041e68fdddba8c2b43ebc702 (diff) |
simplify code for input-prepend/append in inline and search forms
Diffstat (limited to 'less')
-rw-r--r-- | less/forms.less | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/less/forms.less b/less/forms.less index 614d07ad74..5fc8f52619 100644 --- a/less/forms.less +++ b/less/forms.less @@ -361,6 +361,7 @@ select:focus:required:invalid { // Allow us to put symbols and text within the input field for a cleaner look .input-prepend, .input-append { + display: inline-block; margin-bottom: 5px; input, select, @@ -456,12 +457,12 @@ select:focus:required:invalid { .form-inline .input-prepend { display: inline-block; } -// Make the prepend and append add-on vertical-align: middle; -.form-search .input-append .add-on, -.form-search .input-prepend .add-on, -.form-inline .input-append .add-on, -.form-inline .input-prepend .add-on { - vertical-align: middle; +// Remove margin for input-prepend/-append +.form-search .input-append, +.form-inline .input-append, +.form-search .input-prepend, +.form-inline .input-prepend { + margin-bottom: 0; } // Inline checkbox/radio labels (remove padding on left) .form-search .radio, |