From 53b48cabff2477e83a315a6c1d3ed9aa86624fbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Wed, 26 May 2021 19:45:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AF=8C=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/editor/index.wc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/editor/index.wc b/src/editor/index.wc index e68b91a..6760041 100644 --- a/src/editor/index.wc +++ b/src/editor/index.wc @@ -39,6 +39,7 @@ min-height: 100px; max-height: 640px; border-radius: 3px; + transition: box-shadow 0.15s linear; } table { @@ -141,6 +142,17 @@ wc-scroll { } } +:host([readonly]) { + .neditor { + cursor: default; + opacity: 0.8; + } +} + +:host(:focus-within) { + box-shadow: 0 0 0 2px var(--color-plain-a); +} + .font-layer, .color-layer, .link-layer {