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