637 lines
12 KiB
CSS
637 lines
12 KiB
CSS
.container-node {
|
|
position: relative;
|
|
width: 340px;
|
|
border: 1px solid #cbd5e1;
|
|
border-radius: 18px;
|
|
background:
|
|
radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 36%),
|
|
linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
|
|
color: #0f172a;
|
|
box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.container-node__delete-overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 12;
|
|
border-radius: 18px;
|
|
background: rgba(148, 163, 184, 0.38);
|
|
backdrop-filter: grayscale(1) saturate(0.2);
|
|
}
|
|
|
|
.container-node__params-shell {
|
|
position: relative;
|
|
min-height: 110px;
|
|
overflow: hidden;
|
|
border-radius: 0 0 18px 18px;
|
|
}
|
|
|
|
.container-node__skeleton-overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 10;
|
|
display: flex;
|
|
align-items: stretch;
|
|
justify-content: stretch;
|
|
padding: 14px;
|
|
border-radius: 0 0 18px 18px;
|
|
background: rgba(248, 250, 252, 0.82);
|
|
backdrop-filter: blur(1px);
|
|
}
|
|
|
|
.container-node__skeleton-stack {
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.container-node__skeleton-line,
|
|
.container-node__skeleton-pill {
|
|
position: relative;
|
|
overflow: hidden;
|
|
background: #dbe4ee;
|
|
}
|
|
|
|
.container-node__skeleton-line::after,
|
|
.container-node__skeleton-pill::after {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
transform: translateX(-100%);
|
|
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.72), transparent);
|
|
animation: container-node__skeleton-shimmer 1.1s ease-in-out infinite;
|
|
}
|
|
|
|
.container-node__skeleton-line {
|
|
height: 12px;
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.container-node__skeleton-line-title {
|
|
width: 62%;
|
|
margin-top: 6px;
|
|
}
|
|
|
|
.container-node__skeleton-line-short {
|
|
width: 38%;
|
|
}
|
|
|
|
.container-node__skeleton-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 8px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.container-node__skeleton-pill {
|
|
height: 54px;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.container-node__skeleton-pill-wide {
|
|
grid-column: 1 / -1;
|
|
height: 76px;
|
|
}
|
|
|
|
@keyframes container-node__skeleton-shimmer {
|
|
to {
|
|
transform: translateX(100%);
|
|
}
|
|
}
|
|
|
|
:host.selected .container-node {
|
|
border-color: #0f766e;
|
|
box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18), 0 16px 36px rgba(15, 23, 42, 0.18);
|
|
}
|
|
|
|
.container-node__header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 12px 14px;
|
|
background: linear-gradient(135deg, #0f766e 0%, #0f766e 45%, #0ea5e9 100%);
|
|
color: #f8fafc;
|
|
}
|
|
|
|
.container-node__icon {
|
|
width: 34px;
|
|
height: 34px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 12px;
|
|
background: rgba(255, 255, 255, 0.18);
|
|
border: 1px solid rgba(255, 255, 255, 0.26);
|
|
font-size: 16px;
|
|
}
|
|
|
|
.container-node__titles {
|
|
min-width: 0;
|
|
flex: 1;
|
|
}
|
|
|
|
.container-node__eyebrow {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
opacity: 0.86;
|
|
}
|
|
|
|
.container-node__name {
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.container-node__delete {
|
|
border: 0;
|
|
width: 30px;
|
|
height: 30px;
|
|
border-radius: 999px;
|
|
background: rgba(255, 255, 255, 0.16);
|
|
color: #f8fafc;
|
|
}
|
|
|
|
.container-node__header-actions {
|
|
margin-left: auto;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
position: relative;
|
|
}
|
|
|
|
.container-node__warning-wrap {
|
|
position: relative;
|
|
}
|
|
|
|
.container-node__warning {
|
|
width: 26px;
|
|
height: 26px;
|
|
border-radius: 999px;
|
|
border: 1px solid #fecaca;
|
|
background: #dc2626;
|
|
color: #fff7ed;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 13px;
|
|
box-shadow: 0 0 0 3px rgba(127, 29, 29, 0.2);
|
|
}
|
|
|
|
.container-node__warning-tooltip {
|
|
position: absolute;
|
|
top: calc(100% + 8px);
|
|
right: 0;
|
|
min-width: 220px;
|
|
max-width: 320px;
|
|
border: 1px solid #fecaca;
|
|
border-radius: 8px;
|
|
background: #fff1f2;
|
|
color: #7f1d1d;
|
|
box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
|
|
padding: 8px;
|
|
z-index: 13;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transform: translateY(-2px);
|
|
transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
|
|
}
|
|
|
|
.container-node__warning-wrap:hover .container-node__warning-tooltip {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.container-node__warning-title {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.container-node__warning-item {
|
|
font-size: 11px;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.container-node__delete-confirm {
|
|
position: absolute;
|
|
top: calc(100% + 8px);
|
|
right: 0;
|
|
z-index: 14;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 10px 12px;
|
|
border-radius: 12px;
|
|
border: 1px solid #fecaca;
|
|
background: #fff1f2;
|
|
box-shadow: 0 16px 32px rgba(15, 23, 42, 0.22);
|
|
}
|
|
|
|
.container-node__delete-confirm-text {
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
color: #7f1d1d;
|
|
}
|
|
|
|
.container-node__delete-confirm-cancel,
|
|
.container-node__delete-confirm-action {
|
|
border: 0;
|
|
border-radius: 999px;
|
|
padding: 6px 10px;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.container-node__delete-confirm-cancel {
|
|
background: #ffffff;
|
|
color: #7f1d1d;
|
|
}
|
|
|
|
.container-node__delete-confirm-action {
|
|
background: #dc2626;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.container-node__ports {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 14px;
|
|
padding: 14px;
|
|
}
|
|
|
|
.container-node__port-title {
|
|
margin-bottom: 8px;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
color: #475569;
|
|
}
|
|
|
|
.container-node__port-column--right .container-node__port-title {
|
|
text-align: right;
|
|
}
|
|
|
|
.container-node__port-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.container-node__port-row--right {
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.container-node__port-label {
|
|
display: inline-flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
flex: 1 1 0;
|
|
min-width: 0;
|
|
min-height: 36px;
|
|
padding: 4px 10px;
|
|
border-radius: 14px;
|
|
border: 1px solid transparent;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.container-node__port-label--input {
|
|
background: #ecfdf3;
|
|
color: #166534;
|
|
border-color: #bbf7d0;
|
|
}
|
|
|
|
.container-node__port-label--output {
|
|
background: #fff1f2;
|
|
color: #9f1239;
|
|
border-color: #fecdd3;
|
|
align-items: flex-end;
|
|
text-align: right;
|
|
}
|
|
|
|
.container-node__port-context {
|
|
font-size: 9px;
|
|
line-height: 1.1;
|
|
font-weight: 700;
|
|
letter-spacing: 0.04em;
|
|
color: #64748b;
|
|
}
|
|
|
|
.container-node__port-name {
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.container-node__port-kind {
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.04em;
|
|
color: #475569;
|
|
}
|
|
|
|
.container-node__params {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 8px;
|
|
padding: 0 14px 14px;
|
|
}
|
|
|
|
.container-node__param-chip {
|
|
min-width: 0;
|
|
border: 1px solid #dbe2ea;
|
|
border-radius: 12px;
|
|
background: rgba(255, 255, 255, 0.9);
|
|
padding: 8px 10px;
|
|
}
|
|
|
|
.container-node__param-chip--disabled {
|
|
opacity: 0.58;
|
|
}
|
|
|
|
.container-node__param-chip--wide {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.container-node__param-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.container-node__param-key {
|
|
min-width: 0;
|
|
font-size: 10px;
|
|
color: #64748b;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.03em;
|
|
}
|
|
|
|
.container-node__bool-toggle {
|
|
position: relative;
|
|
width: 34px;
|
|
height: 20px;
|
|
border: 1px solid #99f6e4;
|
|
border-radius: 999px;
|
|
background: #ccfbf1;
|
|
transition: background-color 0.15s ease, border-color 0.15s ease;
|
|
}
|
|
|
|
.container-node__bool-toggle--on {
|
|
background: #0f766e;
|
|
border-color: #0f766e;
|
|
}
|
|
|
|
.container-node__bool-toggle:disabled {
|
|
opacity: 0.45;
|
|
cursor: default;
|
|
}
|
|
|
|
.container-node__bool-toggle-thumb {
|
|
position: absolute;
|
|
top: 1px;
|
|
left: 1px;
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: 999px;
|
|
background: #fff;
|
|
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
|
|
transition: transform 0.15s ease;
|
|
}
|
|
|
|
.container-node__bool-toggle--on .container-node__bool-toggle-thumb {
|
|
transform: translateX(14px);
|
|
}
|
|
|
|
.container-node__param-value {
|
|
display: block;
|
|
min-width: 0;
|
|
font-size: 12px;
|
|
color: #0f172a;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.container-node__param-edit {
|
|
border: 0;
|
|
background: transparent;
|
|
color: #0f766e;
|
|
width: 20px;
|
|
height: 20px;
|
|
border-radius: 999px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.container-node__param-edit:hover {
|
|
background: rgba(15, 118, 110, 0.12);
|
|
}
|
|
|
|
.container-node__param-edit:disabled {
|
|
opacity: 0.45;
|
|
cursor: default;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.container-node__dropzone {
|
|
margin: 0 14px 14px;
|
|
min-height: 128px;
|
|
border: 2px dashed #94a3b8;
|
|
border-radius: 18px;
|
|
padding: 18px 14px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
background:
|
|
linear-gradient(135deg, rgba(240, 253, 250, 0.9) 0%, rgba(239, 246, 255, 0.95) 100%);
|
|
text-align: center;
|
|
}
|
|
|
|
.container-node__dropzone--active {
|
|
border-color: #0f766e;
|
|
background:
|
|
linear-gradient(135deg, rgba(204, 251, 241, 0.95) 0%, rgba(224, 242, 254, 0.98) 100%);
|
|
}
|
|
|
|
.container-node__dropzone--filled {
|
|
border-style: solid;
|
|
}
|
|
|
|
.container-node__dropzone-main {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
color: #0f172a;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.container-node__replace-confirm {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 10px;
|
|
text-align: center;
|
|
}
|
|
|
|
.container-node__replace-confirm-text {
|
|
font-size: 15px;
|
|
font-weight: 800;
|
|
color: #0f172a;
|
|
}
|
|
|
|
.container-node__replace-confirm-note {
|
|
font-size: 12px;
|
|
line-height: 1.45;
|
|
color: #475569;
|
|
max-width: 260px;
|
|
}
|
|
|
|
.container-node__replace-confirm-actions {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.container-node__replace-confirm-cancel,
|
|
.container-node__replace-confirm-action {
|
|
border: 0;
|
|
border-radius: 999px;
|
|
padding: 8px 12px;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.container-node__replace-confirm-cancel {
|
|
background: #ffffff;
|
|
color: #0f172a;
|
|
box-shadow: inset 0 0 0 1px #cbd5e1;
|
|
}
|
|
|
|
.container-node__replace-confirm-action {
|
|
background: #0f766e;
|
|
color: #f8fafc;
|
|
}
|
|
|
|
:host.container-node--readonly,
|
|
:host.container-node--readonly * {
|
|
cursor: default !important;
|
|
}
|
|
|
|
.container-node__dropzone-note {
|
|
font-size: 12px;
|
|
line-height: 1.45;
|
|
color: #475569;
|
|
}
|
|
|
|
.container-node__dropzone-actions {
|
|
display: flex;
|
|
justify-content: center;
|
|
margin-top: 2px;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.container-node__import,
|
|
.container-node__subflow-view {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
min-width: 116px;
|
|
border: 0;
|
|
border-radius: 999px;
|
|
padding: 8px 12px;
|
|
background: #0f766e;
|
|
color: #f8fafc;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.container-node__import {
|
|
box-shadow: 0 10px 18px rgba(15, 118, 110, 0.18);
|
|
}
|
|
|
|
.container-node__dropzone-empty {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.container-node__subflow-view {
|
|
border: 1px solid #bae6fd;
|
|
border-radius: 999px;
|
|
background: #f0f9ff;
|
|
color: #0c4a6e;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
padding: 6px 10px;
|
|
}
|
|
|
|
.container-node__action {
|
|
border: 1px solid #cbd5e1;
|
|
border-radius: 999px;
|
|
background: #ffffff;
|
|
color: #0f172a;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
padding: 8px 12px;
|
|
}
|
|
|
|
.container-node__message {
|
|
margin: 0 14px 14px;
|
|
border-radius: 12px;
|
|
padding: 10px 12px;
|
|
font-size: 12px;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.container-node__message--error {
|
|
border: 1px solid #fecaca;
|
|
background: #fff1f2;
|
|
color: #991b1b;
|
|
}
|
|
|
|
.container-node__message--warning {
|
|
border: 1px solid #fde68a;
|
|
background: #fefce8;
|
|
color: #854d0e;
|
|
}
|
|
|
|
.container-node__validation-item + .container-node__validation-item {
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.container-node__validation-meta {
|
|
display: block;
|
|
margin-top: 2px;
|
|
opacity: 0.82;
|
|
}
|
|
|
|
.container-node__spinner {
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: 999px;
|
|
border: 2px solid rgba(15, 118, 110, 0.2);
|
|
border-top-color: #0f766e;
|
|
animation: container-node-spin 0.75s linear infinite;
|
|
}
|
|
|
|
@keyframes container-node-spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|