Files
xyflow/src/style.css
2019-07-16 13:45:25 +02:00

66 lines
1022 B
CSS

.react-graph {
width: 100%;
height: 100%;
position: relative;
overflow: hidden;
}
.react-graph__renderer {
width: 100%;
height: 100%;
position: absolute;
}
.react-graph__zoomnode {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
}
.react-graph__edges {
pointer-events: none;
}
.react-graph__edge {
fill: none;
stroke: #333;
stroke-width: 2;
}
.react-graph__nodes {
width: 100%;
height: 100%;
position: absolute;
z-index: 2;
pointer-events: none;
transform-origin: 0 0;
}
.react-graph__nodewrap {
position: absolute;
width: 150px;
color: #222;
font-family: sans-serif;
font-size: 12px;
text-align: center;
cursor: grab;
user-select: none;
pointer-events: all;
transform-origin: 0 0;
}
.react-graph__nodewrap:hover {
box-shadow: 0 1px 5px 2px rgba(0, 0, 0, 0.08);
}
.react-graph__handle {
position: absolute;
width: 12px;
height: 12px;
transform: translate(-50%, -50%);
background: #222;
left: 50%;
border-radius: 50%;
}