From b290a2305df37e3be1098e15e3c030e197c4ce9b Mon Sep 17 00:00:00 2001 From: fantasticit Date: Fri, 1 Apr 2022 15:03:05 +0800 Subject: [PATCH] fix: fix selection style --- .../client/src/tiptap/styles/selection.scss | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/client/src/tiptap/styles/selection.scss b/packages/client/src/tiptap/styles/selection.scss index 045f9a0b..7868f3cd 100644 --- a/packages/client/src/tiptap/styles/selection.scss +++ b/packages/client/src/tiptap/styles/selection.scss @@ -71,6 +71,12 @@ } &.selected-node { + &:not(.has-focus) { + ::selection { + background-color: transparent; + } + } + .render-wrapper { position: relative; border: 1px solid var(--node-selected-border-color) !important; @@ -89,12 +95,6 @@ } } } - - &:not(.has-focus) { - ::selection { - background-color: transparent; - } - } } .node-image { @@ -114,6 +114,12 @@ } &.selected-node { + &:not(.has-focus) { + ::selection { + background-color: transparent; + } + } + .render-wrapper { position: relative; @@ -128,11 +134,5 @@ } } } - - &:not(.has-focus) { - ::selection { - background-color: transparent; - } - } } }