From 9f249603d0877aee3e5d69d7a43493e932881eff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E7=81=8F?= Date: Wed, 27 Jun 2018 15:46:28 +0800 Subject: [PATCH] update Input style --- examples/routers/input.vue | 4 ++++ src/styles/components/input.less | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/examples/routers/input.vue b/examples/routers/input.vue index c8d0136c..abe7ec5e 100644 --- a/examples/routers/input.vue +++ b/examples/routers/input.vue @@ -129,7 +129,11 @@



+ +
+
+



diff --git a/src/styles/components/input.less b/src/styles/components/input.less index c6c7922a..513d1786 100644 --- a/src/styles/components/input.less +++ b/src/styles/components/input.less @@ -113,6 +113,10 @@ position: relative; z-index: 2; + i{ + font-size: 16px; + } + &:hover{ background: tint(@primary-color, 20%) !important; border-color: tint(@primary-color, 20%) !important; @@ -141,6 +145,18 @@ background: inherit; } } + &-wrapper-small &-search{ + padding: 0 12px !important; + i{ + font-size: 14px; + } + } + &-wrapper-large &-search{ + padding: 0 20px !important; + i{ + font-size: 18px; + } + } &-with-search{ &:hover{ .@{input-prefix-cls} {