aboutsummaryrefslogtreecommitdiff
path: root/less/forms.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-06-14 11:56:46 -0700
committerMark Otto <[email protected]>2012-06-14 11:56:46 -0700
commitb1cb5565039f492766fdfd727f776f3e9dfa7e45 (patch)
treebef6287916e0e0beb6b2f179e3388aafd426c868 /less/forms.less
parentcda48d41baacf1f515dbdd4ef091a42eff26b469 (diff)
downloadbootstrap-b1cb5565039f492766fdfd727f776f3e9dfa7e45.tar.xz
bootstrap-b1cb5565039f492766fdfd727f776f3e9dfa7e45.zip
improve inline-block of append/prepend inputs with font-size: 0;
Diffstat (limited to 'less/forms.less')
-rw-r--r--less/forms.less3
1 files changed, 3 insertions, 0 deletions
diff --git a/less/forms.less b/less/forms.less
index 633ad4551..9f5e721bb 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -380,12 +380,14 @@ textarea {
.input-prepend,
.input-append {
margin-bottom: 5px;
+ font-size: 0;
input,
select,
.uneditable-input {
position: relative; // placed here by default so that on :focus we can place the input above the .add-on for full border and box-shadow goodness
margin-bottom: 0; // prevent bottom margin from screwing up alignment in stacked forms
*margin-left: 0;
+ font-size: @baseFontSize;
vertical-align: middle;
.border-radius(0 @inputBorderRadius @inputBorderRadius 0);
// Make input on top when focused so blue border and shadow always show
@@ -402,6 +404,7 @@ textarea {
height: @baseLineHeight;
min-width: 16px;
padding: 4px 5px;
+ font-size: @baseFontSize;
font-weight: normal;
line-height: @baseLineHeight;
text-align: center;