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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
}
|
|
|
|
| 1 |
+
.react-flow {
|
| 2 |
+
--bg-color: rgb(17, 17, 17);
|
| 3 |
+
--text-color: rgb(243, 244, 246);
|
| 4 |
+
--node-border-radius: 10px;
|
| 5 |
+
--node-box-shadow: 10px 0 15px rgba(42, 138, 246, 0.3), -10px 0 15px rgba(233, 42, 103, 0.3);
|
| 6 |
+
background-color: var(--bg-color);
|
| 7 |
+
color: var(--text-color);
|
| 8 |
}
|
| 9 |
|
| 10 |
+
.react-flow__node-turbo {
|
| 11 |
+
border-radius: var(--node-border-radius);
|
| 12 |
+
display: flex;
|
| 13 |
+
height: 70px;
|
| 14 |
+
min-width: 150px;
|
| 15 |
+
font-family: 'Fira Mono', Monospace;
|
| 16 |
+
font-weight: 500;
|
| 17 |
+
letter-spacing: -0.2px;
|
| 18 |
+
box-shadow: var(--node-box-shadow);
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
.react-flow__node-turbo .wrapper {
|
| 22 |
+
overflow: hidden;
|
| 23 |
+
display: flex;
|
| 24 |
+
padding: 2px;
|
| 25 |
+
position: relative;
|
| 26 |
+
border-radius: var(--node-border-radius);
|
| 27 |
+
flex-grow: 1;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
.gradient:before {
|
| 31 |
+
content: '';
|
| 32 |
+
position: absolute;
|
| 33 |
+
padding-bottom: calc(100% * 1.41421356237);
|
| 34 |
+
width: calc(100% * 1.41421356237);
|
| 35 |
+
background: conic-gradient(
|
| 36 |
+
from -160deg at 50% 50%,
|
| 37 |
+
#e92a67 0deg,
|
| 38 |
+
#a853ba 120deg,
|
| 39 |
+
#2a8af6 240deg,
|
| 40 |
+
#e92a67 360deg
|
| 41 |
+
);
|
| 42 |
+
left: 50%;
|
| 43 |
+
top: 50%;
|
| 44 |
+
transform: translate(-50%, -50%);
|
| 45 |
+
border-radius: 100%;
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
.react-flow__node-turbo.selected .wrapper.gradient:before {
|
| 49 |
+
content: '';
|
| 50 |
+
background: conic-gradient(
|
| 51 |
+
from -160deg at 50% 50%,
|
| 52 |
+
#e92a67 0deg,
|
| 53 |
+
#a853ba 120deg,
|
| 54 |
+
#2a8af6 240deg,
|
| 55 |
+
rgba(42, 138, 246, 0) 360deg
|
| 56 |
+
);
|
| 57 |
+
animation: spinner 4s linear infinite;
|
| 58 |
+
transform: translate(-50%, -50%) rotate(0deg);
|
| 59 |
+
z-index: -1;
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
@keyframes spinner {
|
| 63 |
+
100% {
|
| 64 |
+
transform: translate(-50%, -50%) rotate(-360deg);
|
| 65 |
+
}
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
.react-flow__node-turbo .inner {
|
| 69 |
+
background: var(--bg-color);
|
| 70 |
+
padding: 16px 20px;
|
| 71 |
+
border-radius: var(--node-border-radius);
|
| 72 |
+
display: flex;
|
| 73 |
+
flex-direction: column;
|
| 74 |
+
justify-content: center;
|
| 75 |
+
flex-grow: 1;
|
| 76 |
+
position: relative;
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
.react-flow__node-turbo .icon {
|
| 80 |
+
margin-right: 8px;
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
.react-flow__node-turbo .body {
|
| 84 |
+
display: flex;
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
.react-flow__node-turbo .title {
|
| 88 |
+
font-size: 16px;
|
| 89 |
+
margin-bottom: 2px;
|
| 90 |
+
line-height: 1;
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
.react-flow__node-turbo .subline {
|
| 94 |
+
font-size: 12px;
|
| 95 |
+
color: #777;
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
.react-flow__node-turbo .cloud {
|
| 99 |
+
border-radius: 100%;
|
| 100 |
+
width: 30px;
|
| 101 |
+
height: 30px;
|
| 102 |
+
right: 0;
|
| 103 |
+
position: absolute;
|
| 104 |
+
top: 0;
|
| 105 |
+
transform: translate(50%, -50%);
|
| 106 |
+
display: flex;
|
| 107 |
+
transform-origin: center center;
|
| 108 |
+
padding: 2px;
|
| 109 |
+
overflow: hidden;
|
| 110 |
+
box-shadow: var(--node-box-shadow);
|
| 111 |
+
z-index: 1;
|
| 112 |
+
}
|
| 113 |
+
|
| 114 |
+
.react-flow__node-turbo .cloud div {
|
| 115 |
+
background-color: var(--bg-color);
|
| 116 |
+
flex-grow: 1;
|
| 117 |
+
border-radius: 100%;
|
| 118 |
+
display: flex;
|
| 119 |
+
justify-content: center;
|
| 120 |
+
align-items: center;
|
| 121 |
+
position: relative;
|
| 122 |
+
}
|
| 123 |
+
|
| 124 |
+
.react-flow__handle {
|
| 125 |
+
opacity: 0;
|
| 126 |
+
}
|
| 127 |
+
|
| 128 |
+
.react-flow__handle.source {
|
| 129 |
+
right: -10px;
|
| 130 |
+
}
|
| 131 |
+
|
| 132 |
+
.react-flow__handle.target {
|
| 133 |
+
left: -10px;
|
| 134 |
+
}
|
| 135 |
+
|
| 136 |
+
.react-flow__node:focus {
|
| 137 |
+
outline: none;
|
| 138 |
+
}
|
| 139 |
+
|
| 140 |
+
.react-flow__edge .react-flow__edge-path {
|
| 141 |
+
stroke: url(#edge-gradient);
|
| 142 |
+
stroke-width: 2;
|
| 143 |
+
stroke-opacity: 0.75;
|
| 144 |
+
}
|
| 145 |
+
|
| 146 |
+
.react-flow__controls button {
|
| 147 |
+
background-color: var(--bg-color);
|
| 148 |
+
color: var(--text-color);
|
| 149 |
+
border: 1px solid #95679e;
|
| 150 |
+
border-bottom: none;
|
| 151 |
+
}
|
| 152 |
+
|
| 153 |
+
.react-flow__controls button:hover {
|
| 154 |
+
background-color: rgb(37, 37, 37);
|
| 155 |
+
}
|
| 156 |
+
|
| 157 |
+
.react-flow__controls button:first-child {
|
| 158 |
+
border-radius: 5px 5px 0 0;
|
| 159 |
+
}
|
| 160 |
+
|
| 161 |
+
.react-flow__controls button:last-child {
|
| 162 |
+
border-bottom: 1px solid #95679e;
|
| 163 |
+
border-radius: 0 0 5px 5px;
|
| 164 |
+
}
|
| 165 |
+
|
| 166 |
+
.react-flow__controls button path {
|
| 167 |
+
fill: var(--text-color);
|
| 168 |
+
}
|
| 169 |
+
|
| 170 |
+
.react-flow__attribution {
|
| 171 |
+
background: rgba(200, 200, 200, 0.2);
|
| 172 |
+
}
|
| 173 |
+
|
| 174 |
+
.react-flow__attribution a {
|
| 175 |
+
color: #95679e;
|
| 176 |
}
|