From b1cb5565039f492766fdfd727f776f3e9dfa7e45 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 14 Jun 2012 11:56:46 -0700 Subject: improve inline-block of append/prepend inputs with font-size: 0; --- less/forms.less | 3 +++ 1 file changed, 3 insertions(+) (limited to 'less') 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; -- cgit v1.2.3