From 2457e14a867a4c83919bad615684b4a0f8d0fe51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Fri, 2 Apr 2021 19:44:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96meditor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/meditor/index.wc | 258 ++++++++++++++++++++++++++++++++----------- 1 file changed, 195 insertions(+), 63 deletions(-) diff --git a/src/meditor/index.wc b/src/meditor/index.wc index 0f3d7a7..daa8946 100644 --- a/src/meditor/index.wc +++ b/src/meditor/index.wc @@ -60,7 +60,8 @@ min-width: 200px; min-height: 100px; // max-height: 360px; - border-radius: 2px; + border-radius: 3px; + transition: box-shadow 0.15s linear; } .meditor { @@ -135,6 +136,7 @@ background: none; outline: none; resize: none; + cursor: inherit; } .preview { @@ -336,6 +338,10 @@ width: 100%; height: 100%; } + +:host(:focus-within) { + box-shadow: 0 0 0 2px var(--color-plain-a); +}