style(nodes): default styles

This commit is contained in:
moklick
2019-07-25 17:11:34 +02:00
parent 7de43f7843
commit 97971de1a5
7 changed files with 37 additions and 20 deletions
+13 -8
View File
@@ -47,12 +47,12 @@
.react-graph__edge {
fill: none;
stroke: #333;
stroke: #bbb;
stroke-width: 2;
pointer-events: all;
&.selected {
stroke: #ff5050;
stroke: #555;
}
&.animated {
@@ -90,18 +90,23 @@
}
&.selected > * {
box-shadow: 0 0 0 2px #000;
box-shadow: 0 0 0 2px #555;
}
}
.react-graph__handle {
position: absolute;
width: 12px;
height: 12px;
transform: translate(-50%, -50%);
background: #222;
width: 10px;
height: 5px;
transform: translate(-50%, 0);
background: rgba(255, 255, 255, 0.4);
left: 50%;
border-radius: 50%;
top: 0;
&.output {
top: auto;
bottom: 0;
}
}
.react-graph__nodesselection {