From d57200a239a71428e4d541f2f998296a5fbebb52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Tue, 23 Mar 2021 19:53:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96UI=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/form/button.wc | 14 +- src/form/checkbox-item.wc | 3 +- src/form/index.js | 1 + src/form/input.wc | 80 +++---- src/form/passwd.wc | 467 ++++++++++++++++++++++++++++++++++++++ src/form/radio-item.wc | 45 +++- 6 files changed, 547 insertions(+), 63 deletions(-) create mode 100644 src/form/passwd.wc diff --git a/src/form/button.wc b/src/form/button.wc index 0525989..6f5d80c 100644 --- a/src/form/button.wc +++ b/src/form/button.wc @@ -12,7 +12,7 @@ min-width: 72px; width: 128px; height: 36px; - border-radius: 6px; + border-radius: 3px; user-select: none; -moz-user-select: none; color: var(--color-dark-1); @@ -28,7 +28,7 @@ height: inherit; padding: var(--padding, 0 14px); line-height: 1; - border: 2px solid var(--color-plain-2); + border: 1px solid var(--color-grey-2); border-radius: inherit; white-space: nowrap; background: #fff; @@ -138,10 +138,10 @@ :host(:not([disabled]):not([loading])) button { &:hover { - border-color: var(--color-plain-1); + border-color: var(--color-grey-1); } &:active { - border-color: var(--color-plain-3); + border-color: var(--color-grey-3); } } :host(:focus-within) { @@ -245,10 +245,10 @@ } // ------- -:host([type='default']) button { +:host([type='help']) button { background: var(--color-grey-2); } -:host([type='default']:not([disabled]):not([loading])) button { +:host([type='help']:not([disabled]):not([loading])) button { &:hover { background: var(--color-grey-1); } @@ -256,7 +256,7 @@ background: var(--color-grey-3); } } -:host([type='default']:focus-within) { +:host([type='help']:focus-within) { box-shadow: 0 0 0 2px var(--color-grey-a); } diff --git a/src/form/checkbox-item.wc b/src/form/checkbox-item.wc index 6993a3e..d732b3d 100644 --- a/src/form/checkbox-item.wc +++ b/src/form/checkbox-item.wc @@ -1,5 +1,5 @@