Spaces:
Running
Running
now it is much faster, thanks. also one should create conenctions not by clicking on mouseup but by dragging
622d850 verified Download style.css from Mtothexmax/state-flow-builder: direct link, hf CLI and curl.
- Browser
- Download file 2.29 kB
-
https://huggingface.co/spaces/Mtothexmax/state-flow-builder/resolve/main/style.css
- Command line
-
hf download hf://spaces/Mtothexmax/state-flow-builder/style.css
-
curl -L -o style.css https://huggingface.co/spaces/Mtothexmax/state-flow-builder/resolve/main/style.css
2.29 kB
| /* 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; | |
| } | |