Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <markotto@twitter.com>2012-06-14 22:56:46 +0400
committerMark Otto <markotto@twitter.com>2012-06-14 22:56:46 +0400
commitb1cb5565039f492766fdfd727f776f3e9dfa7e45 (patch)
treebef6287916e0e0beb6b2f179e3388aafd426c868 /less
parentcda48d41baacf1f515dbdd4ef091a42eff26b469 (diff)
improve inline-block of append/prepend inputs with font-size: 0;
Diffstat (limited to '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 633ad45517..9f5e721bbe 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;