fix(core): remove node border styles from required styles (#1954)
* fix(core): remove node border styles from required styles Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> * chore(changeset): add Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> --------- Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
5
.changeset/cyan-pandas-enjoy.md
Normal file
5
.changeset/cyan-pandas-enjoy.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@vue-flow/core": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Remove border related styles from the required styles and move them into the default theme stylesheet
|
||||||
@@ -19,12 +19,12 @@
|
|||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
|
||||||
&.draggable {
|
&.draggable {
|
||||||
cursor: grab;
|
cursor: grab;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.selection {
|
&.selection {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.dragging {
|
&.dragging {
|
||||||
cursor: grabbing;
|
cursor: grabbing;
|
||||||
@@ -76,38 +76,38 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
&.animated path {
|
&.animated path {
|
||||||
stroke-dasharray: 5;
|
stroke-dasharray: 5;
|
||||||
animation: dashdraw 0.5s linear infinite;
|
animation: dashdraw 0.5s linear infinite;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.animated path.vue-flow__edge-interaction {
|
&.animated path.vue-flow__edge-interaction {
|
||||||
stroke-dasharray: none;
|
stroke-dasharray: none;
|
||||||
animation: none;
|
animation: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.inactive {
|
&.inactive {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.selected,
|
&.selected,
|
||||||
&:focus,
|
&:focus,
|
||||||
&:focus-visible {
|
&:focus-visible {
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.selected .vue-flow__edge-path,
|
&.selected .vue-flow__edge-path,
|
||||||
&:focus .vue-flow__edge-path,
|
&:focus .vue-flow__edge-path,
|
||||||
&:focus-visible .vue-flow__edge-path {
|
&:focus-visible .vue-flow__edge-path {
|
||||||
stroke: #555;
|
stroke: #555;
|
||||||
}
|
}
|
||||||
|
|
||||||
&-textwrapper {
|
&-textwrapper {
|
||||||
pointer-events: all;
|
pointer-events: all;
|
||||||
}
|
}
|
||||||
|
|
||||||
&-textbg {
|
&-textbg {
|
||||||
fill: white;
|
fill: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
&-text {
|
&-text {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
@@ -119,9 +119,9 @@
|
|||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
|
||||||
.animated {
|
.animated {
|
||||||
stroke-dasharray: 5;
|
stroke-dasharray: 5;
|
||||||
animation: dashdraw 0.5s linear infinite;
|
animation: dashdraw 0.5s linear infinite;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.vue-flow__connectionline {
|
.vue-flow__connectionline {
|
||||||
@@ -133,21 +133,6 @@
|
|||||||
transform-origin: 0 0;
|
transform-origin: 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.vue-flow__node-default,
|
|
||||||
.vue-flow__node-input,
|
|
||||||
.vue-flow__node-output {
|
|
||||||
border-width: 1px;
|
|
||||||
border-style: solid;
|
|
||||||
border-color: #bbb;
|
|
||||||
|
|
||||||
&.selected,
|
|
||||||
&:focus,
|
|
||||||
&:focus-visible {
|
|
||||||
outline: none;
|
|
||||||
border: 1px solid #555;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.vue-flow__node {
|
.vue-flow__node {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
@@ -172,14 +157,14 @@
|
|||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
|
||||||
&-rect {
|
&-rect {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
pointer-events: all;
|
pointer-events: all;
|
||||||
cursor: grab;
|
cursor: grab;
|
||||||
|
|
||||||
&.dragging {
|
&.dragging {
|
||||||
cursor: grabbing;
|
cursor: grabbing;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.vue-flow__handle {
|
.vue-flow__handle {
|
||||||
@@ -189,33 +174,33 @@
|
|||||||
min-height: 5px;
|
min-height: 5px;
|
||||||
|
|
||||||
&.connectable {
|
&.connectable {
|
||||||
pointer-events: all;
|
pointer-events: all;
|
||||||
cursor: crosshair;
|
cursor: crosshair;
|
||||||
}
|
}
|
||||||
|
|
||||||
&-bottom {
|
&-bottom {
|
||||||
left: 50%;
|
left: 50%;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
transform: translate(-50%, 50%);
|
transform: translate(-50%, 50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
&-top {
|
&-top {
|
||||||
left: 50%;
|
left: 50%;
|
||||||
top: 0;
|
top: 0;
|
||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
&-left {
|
&-left {
|
||||||
top: 50%;
|
top: 50%;
|
||||||
left: 0;
|
left: 0;
|
||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
&-right {
|
&-right {
|
||||||
top: 50%;
|
top: 50%;
|
||||||
right: 0;
|
right: 0;
|
||||||
transform: translate(50%, -50%);
|
transform: translate(50%, -50%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.vue-flow__edgeupdater {
|
.vue-flow__edgeupdater {
|
||||||
@@ -229,25 +214,25 @@
|
|||||||
margin: 15px;
|
margin: 15px;
|
||||||
|
|
||||||
&.top {
|
&.top {
|
||||||
top: 0;
|
top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.bottom {
|
&.bottom {
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.left {
|
&.left {
|
||||||
left: 0;
|
left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.right {
|
&.right {
|
||||||
right: 0;
|
right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.center {
|
&.center {
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes dashdraw {
|
@keyframes dashdraw {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
:root {
|
:root {
|
||||||
--vf-node-bg: #fff;
|
--vf-node-bg: #fff;
|
||||||
--vf-node-text: #222;
|
--vf-node-text: #222;
|
||||||
--vf-connection-path: #b1b1b7;
|
--vf-connection-path: #b1b1b7;
|
||||||
--vf-handle: #555;
|
--vf-handle: #555;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -32,8 +32,8 @@
|
|||||||
.vue-flow__node.selectable {
|
.vue-flow__node.selectable {
|
||||||
&:focus,
|
&:focus,
|
||||||
&:focus-visible {
|
&:focus-visible {
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.vue-flow__node-default,
|
.vue-flow__node-default,
|
||||||
@@ -52,8 +52,15 @@
|
|||||||
|
|
||||||
&.selected,
|
&.selected,
|
||||||
&.selected:hover {
|
&.selected:hover {
|
||||||
box-shadow: 0 0 0 0.5px var(--vf-box-shadow);
|
box-shadow: 0 0 0 0.5px var(--vf-box-shadow);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.selected,
|
||||||
|
&:focus,
|
||||||
|
&:focus-visible {
|
||||||
|
outline: none;
|
||||||
|
border: 1px solid #555;
|
||||||
|
}
|
||||||
|
|
||||||
.vue-flow__handle {
|
.vue-flow__handle {
|
||||||
background: var(--vf-handle);
|
background: var(--vf-handle);
|
||||||
@@ -79,9 +86,9 @@
|
|||||||
&.selected,
|
&.selected,
|
||||||
&:focus,
|
&:focus,
|
||||||
&:focus-visible {
|
&:focus-visible {
|
||||||
outline: none;
|
outline: none;
|
||||||
border: 1px solid var(--vf-node-color, #0041d0);
|
border: 1px solid var(--vf-node-color, #0041d0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.vue-flow__node-default {
|
.vue-flow__node-default {
|
||||||
@@ -94,9 +101,9 @@
|
|||||||
&.selected,
|
&.selected,
|
||||||
&:focus,
|
&:focus,
|
||||||
&:focus-visible {
|
&:focus-visible {
|
||||||
outline: none;
|
outline: none;
|
||||||
border: 1px solid var(--vf-node-color, #1a192b);
|
border: 1px solid var(--vf-node-color, #1a192b);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.vue-flow__node-output {
|
.vue-flow__node-output {
|
||||||
@@ -109,9 +116,9 @@
|
|||||||
&.selected,
|
&.selected,
|
||||||
&:focus,
|
&:focus,
|
||||||
&:focus-visible {
|
&:focus-visible {
|
||||||
outline: none;
|
outline: none;
|
||||||
border: 1px solid var(--vf-node-color, #ff0072);
|
border: 1px solid var(--vf-node-color, #ff0072);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.vue-flow__nodesselection-rect,
|
.vue-flow__nodesselection-rect,
|
||||||
@@ -121,8 +128,8 @@
|
|||||||
|
|
||||||
&:focus,
|
&:focus,
|
||||||
&:focus-visible {
|
&:focus-visible {
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.vue-flow__handle {
|
.vue-flow__handle {
|
||||||
|
|||||||
Reference in New Issue
Block a user