From 634e979894d40ea920e086d877f0d31dc9eaceea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Tue, 7 Jul 2020 16:51:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96input=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/form/input.wc | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/form/input.wc b/src/form/input.wc index 6c76e0a..5a15384 100644 --- a/src/form/input.wc +++ b/src/form/input.wc @@ -93,8 +93,9 @@ li { } /* ----- */ .icon { - padding: 0 5px; --size: 20px; + padding: 0 5px; + color: nth($cgr, 2); } } @@ -185,6 +186,10 @@ li { :host([round]) { border-radius: 21px; + .label input { + padding: 0 10px; + } + .prepend { border-radius: 21px 0 0 21px; } @@ -226,6 +231,19 @@ li { height: 18px; } } + +:host([no-border]), +:host(:focus-within[no-border]) { + box-shadow: none; + .label { + border: 0; + } +} +:host([transparent]) { + .label { + background: transparent; + } +}