From f997a68df99c354ad8eb2d1c1be9a8231396ca38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Wed, 22 Jul 2020 20:29:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dinput?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/form/input.wc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/form/input.wc b/src/form/input.wc index 83af240..bd4aece 100644 --- a/src/form/input.wc +++ b/src/form/input.wc @@ -35,7 +35,6 @@ li { min-width: 64px; width: 100%; height: 32px; - line-height: 0; font-size: 14px; border: 1px solid nth($cp, 3); border-radius: inherit; @@ -91,10 +90,15 @@ li { &[append] .append { display: flex; } + &[prepend] input, + &[append] input { + min-width: 64px; + } /* ----- */ .icon { --size: 20px; padding: 0 5px; + margin: 0 5px; color: nth($cgr, 2); } } @@ -196,6 +200,11 @@ li { padding: 0 10px; } + .label[prepend] input, + .label[append] input { + padding: 0 5px; + } + .prepend { border-radius: 21px 0 0 21px; }