Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @vue-flow/core

## 1.46.4

### Patch Changes

- [#1954](https://github.com/bcakmakoglu/vue-flow/pull/1954) [`f4cfc50`](https://github.com/bcakmakoglu/vue-flow/commit/f4cfc50ff6653e822a6375a02c3cb1957fc55f55) Thanks [@bcakmakoglu](https://github.com/bcakmakoglu)! - Remove border related styles from the required styles and move them into the default theme stylesheet

## 1.46.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vue-flow/core",
"version": "1.46.3",
"version": "1.46.4",
"private": false,
"license": "MIT",
"author": "Burak Cakmakoglu<[email protected]>",
Expand Down
133 changes: 59 additions & 74 deletions packages/core/src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
z-index: 1;

&.draggable {
cursor: grab;
}
cursor: grab;
}

&.selection {
cursor: pointer;
}
cursor: pointer;
}

&.dragging {
cursor: grabbing;
Expand Down Expand Up @@ -76,38 +76,38 @@
cursor: pointer;

&.animated path {
stroke-dasharray: 5;
animation: dashdraw 0.5s linear infinite;
}
stroke-dasharray: 5;
animation: dashdraw 0.5s linear infinite;
}

&.animated path.vue-flow__edge-interaction {
stroke-dasharray: none;
animation: none;
}
stroke-dasharray: none;
animation: none;
}

&.inactive {
pointer-events: none;
}
pointer-events: none;
}

&.selected,
&:focus,
&:focus-visible {
outline: none;
}
outline: none;
}

&.selected .vue-flow__edge-path,
&:focus .vue-flow__edge-path,
&:focus-visible .vue-flow__edge-path {
stroke: #555;
}
stroke: #555;
}

&-textwrapper {
pointer-events: all;
}
pointer-events: all;
}

&-textbg {
fill: white;
}
fill: white;
}

&-text {
pointer-events: none;
Expand All @@ -119,9 +119,9 @@
pointer-events: none;

.animated {
stroke-dasharray: 5;
animation: dashdraw 0.5s linear infinite;
}
stroke-dasharray: 5;
animation: dashdraw 0.5s linear infinite;
}
}

.vue-flow__connectionline {
Expand All @@ -133,21 +133,6 @@
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 {
position: absolute;
user-select: none;
Expand All @@ -172,14 +157,14 @@
pointer-events: none;

&-rect {
position: absolute;
pointer-events: all;
cursor: grab;
position: absolute;
pointer-events: all;
cursor: grab;

&.dragging {
cursor: grabbing;
}
}
cursor: grabbing;
}
}
}

.vue-flow__handle {
Expand All @@ -189,33 +174,33 @@
min-height: 5px;

&.connectable {
pointer-events: all;
cursor: crosshair;
}
pointer-events: all;
cursor: crosshair;
}

&-bottom {
left: 50%;
bottom: 0;
transform: translate(-50%, 50%);
}
left: 50%;
bottom: 0;
transform: translate(-50%, 50%);
}

&-top {
left: 50%;
top: 0;
transform: translate(-50%, -50%);
}
left: 50%;
top: 0;
transform: translate(-50%, -50%);
}

&-left {
top: 50%;
left: 0;
transform: translate(-50%, -50%);
}
top: 50%;
left: 0;
transform: translate(-50%, -50%);
}

&-right {
top: 50%;
right: 0;
transform: translate(50%, -50%);
}
top: 50%;
right: 0;
transform: translate(50%, -50%);
}
}

.vue-flow__edgeupdater {
Expand All @@ -229,25 +214,25 @@
margin: 15px;

&.top {
top: 0;
}
top: 0;
}

&.bottom {
bottom: 0;
}
bottom: 0;
}

&.left {
left: 0;
}
left: 0;
}

&.right {
right: 0;
}
right: 0;
}

&.center {
left: 50%;
transform: translateX(-50%);
}
left: 50%;
transform: translateX(-50%);
}
}

@keyframes dashdraw {
Expand Down
39 changes: 23 additions & 16 deletions packages/core/src/theme-default.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
:root {
--vf-node-bg: #fff;
--vf-node-text: #222;
--vf-connection-path: #b1b1b7;
--vf-connection-path: #b1b1b7;
--vf-handle: #555;
}

Expand Down Expand Up @@ -32,8 +32,8 @@
.vue-flow__node.selectable {
&:focus,
&:focus-visible {
outline: none;
}
outline: none;
}
}

.vue-flow__node-default,
Expand All @@ -52,8 +52,15 @@

&.selected,
&.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 {
background: var(--vf-handle);
Expand All @@ -79,9 +86,9 @@
&.selected,
&:focus,
&:focus-visible {
outline: none;
border: 1px solid var(--vf-node-color, #0041d0);
}
outline: none;
border: 1px solid var(--vf-node-color, #0041d0);
}
}

.vue-flow__node-default {
Expand All @@ -94,9 +101,9 @@
&.selected,
&:focus,
&:focus-visible {
outline: none;
border: 1px solid var(--vf-node-color, #1a192b);
}
outline: none;
border: 1px solid var(--vf-node-color, #1a192b);
}
}

.vue-flow__node-output {
Expand All @@ -109,9 +116,9 @@
&.selected,
&:focus,
&:focus-visible {
outline: none;
border: 1px solid var(--vf-node-color, #ff0072);
}
outline: none;
border: 1px solid var(--vf-node-color, #ff0072);
}
}

.vue-flow__nodesselection-rect,
Expand All @@ -121,8 +128,8 @@

&:focus,
&:focus-visible {
outline: none;
}
outline: none;
}
}

.vue-flow__handle {
Expand Down
Loading