Spaces:
Running
Running
File size: 2,288 Bytes
e9d5d73 eb6a0af e9d5d73 eb6a0af be95eac e9d5d73 be95eac e9d5d73 eb6a0af e9d5d73 eb6a0af be95eac e9d5d73 be95eac e9d5d73 be95eac e9d5d73 eb6a0af e9d5d73 afe3f6e 622d850 afe3f6e 622d850 afe3f6e | 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 | /* Custom animations and transitions */
.state-block {
transition: transform 0.2s ease, box-shadow 0.2s ease;
cursor: move;
user-select: none;
will-change: transform;
}
.state-block:hover {
transform: translateY(-2px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.state-block.dragging {
opacity: 0.8;
transform: scale(1.05) translateZ(0);
z-index: 1000;
pointer-events: none;
}
.state-template {
transition: all 0.2s ease;
cursor: grab;
}
.state-template:hover {
transform: translateX(5px);
box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}
.state-template:active {
cursor: grabbing;
}
.connection-point {
transition: all 0.2s ease;
opacity: 0;
}
.state-block:hover .connection-point {
opacity: 1;
}
.connection-point:hover {
transform: scale(1.3);
box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
}
@keyframes pulse {
0% {
box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7);
}
70% {
box-shadow: 0 0 0 10px rgba(79, 70, 229, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
}
}
.connection-line {
stroke: #4F46E5;
stroke-width: 2;
fill: none;
transition: stroke 0.2s ease;
will-change: stroke-width, stroke;
}
.connection-line:hover {
stroke-width: 3;
stroke: #6366F1;
}
.connection-temp {
stroke: #10B981;
stroke-width: 2;
stroke-dasharray: 5, 5;
animation: dash 0.5s linear infinite;
}
@keyframes dash {
to {
stroke-dashoffset: -10;
}
}
.toast {
animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
.canvas-grid {
background-image:
linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
background-size: 20px 20px;
}
.connection-point.valid-target {
background-color: #10B981;
box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.3);
}
.connection-point.hover-target {
background-color: #6366F1;
box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.3);
transform: scale(1.3);
}
.connection-point {
z-index: 10;
cursor: crosshair;
}
|