diff --git a/docs/components/examples/basic/App.vue b/docs/components/examples/basic/App.vue index 3f4182e5..52485f07 100644 --- a/docs/components/examples/basic/App.vue +++ b/docs/components/examples/basic/App.vue @@ -1,5 +1,5 @@ diff --git a/docs/components/examples/basic/initial-elements.js b/docs/components/examples/basic/initial-elements.js index c7a64fa7..1e71d67e 100644 --- a/docs/components/examples/basic/initial-elements.js +++ b/docs/components/examples/basic/initial-elements.js @@ -5,13 +5,13 @@ import { MarkerType } from '@vue-flow/core' * or split them up into nodes and edges and pass them to the `nodes` and `edges` props of Vue Flow (or useVueFlow composable) */ export const initialElements = [ - { id: '1', type: 'input', label: 'Node 1', position: { x: 250, y: 5 }, class: 'light' }, + { id: '1', type: 'input', label: 'Node 1', position: { x: 250, y: 0 }, class: 'light' }, { id: '2', type: 'output', label: 'Node 2', position: { x: 100, y: 100 }, class: 'light' }, { id: '3', label: 'Node 3', position: { x: 400, y: 100 }, class: 'light' }, { id: '4', label: 'Node 4', position: { x: 150, y: 200 }, class: 'light' }, { id: '5', type: 'output', label: 'Node 5', position: { x: 300, y: 300 }, class: 'light' }, { id: 'e1-2', source: '1', target: '2', animated: true }, - { id: 'e1-3', label: 'edge with arrowhead', source: '1', target: '3', markerEnd: MarkerType.Arrow }, + { id: 'e1-3', label: 'edge with arrowhead', source: '1', target: '3', markerEnd: MarkerType.ArrowClosed }, { id: 'e4-5', type: 'step', @@ -19,7 +19,6 @@ export const initialElements = [ source: '4', target: '5', style: { stroke: 'orange' }, - labelStyle: { stroke: 'black' }, labelBgStyle: { fill: 'orange' }, }, { id: 'e3-4', type: 'smoothstep', label: 'smoothstep-edge', source: '3', target: '4' }, diff --git a/docs/components/examples/basic/style.css b/docs/components/examples/basic/style.css index 425bc525..f376cd58 100644 --- a/docs/components/examples/basic/style.css +++ b/docs/components/examples/basic/style.css @@ -1,13 +1,28 @@ -.basicflow .vue-flow__node.dark { - background: #1C1C1C; +.basicflow.dark { + background: #57534e; color: #FFFFFB; } +.basicflow.dark .vue-flow__node { + background: #292524; + color: #FFFFFB; +} + +.basicflow.dark .vue-flow__controls .vue-flow__controls-button { + background: #292524; + fill: #FFFFFB; + border-color: #FFFFFB; +} + +.basicflow.dark .vue-flow__edge-textbg { + fill: #292524; +} + +.basicflow.dark .vue-flow__edge-text { + fill: #FFFFFB; +} + .basicflow .controls { - position: absolute; - left: 10px; - top: 10px; - z-index: 4; display: flex; flex-wrap: wrap; justify-content: center; @@ -15,16 +30,18 @@ } .basicflow .controls button { - padding: 5px; + padding: 4px; border-radius: 5px; - font-weight: 500; + font-weight: 600; -webkit-box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.3); box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.3); cursor: pointer; + display: flex; + justify-content: center; + align-items: center; } .basicflow .controls button:hover { - opacity: 0.8; - transform: scale(105%); + transform: scale(102%); transition: 250ms all ease; } diff --git a/docs/components/examples/connectionline/App.vue b/docs/components/examples/connectionline/App.vue index ea937db0..3e667514 100644 --- a/docs/components/examples/connectionline/App.vue +++ b/docs/components/examples/connectionline/App.vue @@ -1,5 +1,4 @@ @@ -40,6 +45,7 @@ const onDrop = (event) => { diff --git a/docs/components/examples/dnd/Sidebar.vue b/docs/components/examples/dnd/Sidebar.vue index 7a42607b..c856b19e 100644 --- a/docs/components/examples/dnd/Sidebar.vue +++ b/docs/components/examples/dnd/Sidebar.vue @@ -10,9 +10,12 @@ const onDragStart = (event, nodeType) => {