fix: fix selection style

pull/25/head
fantasticit 2022-04-01 15:03:05 +08:00
parent 5a668a863b
commit b290a2305d
1 changed files with 12 additions and 12 deletions

View File

@ -71,6 +71,12 @@
} }
&.selected-node { &.selected-node {
&:not(.has-focus) {
::selection {
background-color: transparent;
}
}
.render-wrapper { .render-wrapper {
position: relative; position: relative;
border: 1px solid var(--node-selected-border-color) !important; border: 1px solid var(--node-selected-border-color) !important;
@ -89,12 +95,6 @@
} }
} }
} }
&:not(.has-focus) {
::selection {
background-color: transparent;
}
}
} }
.node-image { .node-image {
@ -114,6 +114,12 @@
} }
&.selected-node { &.selected-node {
&:not(.has-focus) {
::selection {
background-color: transparent;
}
}
.render-wrapper { .render-wrapper {
position: relative; position: relative;
@ -128,11 +134,5 @@
} }
} }
} }
&:not(.has-focus) {
::selection {
background-color: transparent;
}
}
} }
} }