From 2643c5a42e6e0d125bc499e611a9884e27fb7a08 Mon Sep 17 00:00:00 2001 From: fantasticit Date: Wed, 27 Apr 2022 11:47:14 +0800 Subject: [PATCH] Update lock.scss --- packages/client/src/tiptap/styles/lock.scss | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/packages/client/src/tiptap/styles/lock.scss b/packages/client/src/tiptap/styles/lock.scss index 7f434dfb..5d75b4c3 100644 --- a/packages/client/src/tiptap/styles/lock.scss +++ b/packages/client/src/tiptap/styles/lock.scss @@ -1,24 +1,22 @@ .ProseMirror { .is-locked { position: relative; - cursor: not-allowed; pointer-events: none !important; + cursor: not-allowed; &::after { position: absolute; - z-index: 1000; top: 0; left: 0; - pointer-events: none; - - align-items: center; + z-index: 1000; display: flex; - justify-content: center; - background-color: rgb(179 212 255 / 30%); - inset: 0; color: #fff; - + pointer-events: none; + background-color: rgb(179 212 255 / 30%); content: attr(data-name); + align-items: center; + justify-content: center; + inset: 0; } } }