549 lines
22 KiB
CSS
549 lines
22 KiB
CSS
:root {
|
|
--grid-size: 25px;
|
|
--bg: #fff;
|
|
--surface: #f5f5f5;
|
|
--text: #333;
|
|
--muted: #999;
|
|
--border: #ccc;
|
|
--accent: #4a90d9;
|
|
}
|
|
|
|
*, *::before, *::after { box-sizing: border-box; }
|
|
|
|
html, body {
|
|
margin: 0; padding: 0; height: 100%;
|
|
background: var(--bg); color: var(--text);
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
font-size: 14px; line-height: 1.4;
|
|
}
|
|
body { display: flex; flex-direction: column; }
|
|
|
|
h1 {
|
|
font-size: 1rem; padding: 0.5rem 1rem; margin: 0;
|
|
background: var(--surface); border-bottom: 1px solid var(--border); font-weight: 600;
|
|
}
|
|
|
|
.tab-bar {
|
|
display: flex; border-bottom: 1px solid var(--border);
|
|
background: var(--surface); flex-shrink: 0;
|
|
}
|
|
.tab-btn {
|
|
display: flex; align-items: center; gap: 0.35rem;
|
|
padding: 0.5rem 1rem; border: none; background: transparent;
|
|
cursor: pointer; font: inherit; font-size: 0.9rem;
|
|
border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted);
|
|
}
|
|
.tab-btn:hover { background: #e8e8e8; color: var(--text); }
|
|
.tab-btn.active { background: #e0e0e0; border-bottom-color: var(--accent); color: var(--text); }
|
|
.tab-icon { display: block; }
|
|
|
|
.tab-body { flex: 1; position: relative; min-height: 0; }
|
|
.tab-pane { display: none; height: 100%; flex-direction: column; }
|
|
.tab-pane.active { display: flex; }
|
|
|
|
.pane-toolbar {
|
|
display: flex; gap: 0.25rem; padding: 0.3rem;
|
|
flex-shrink: 0; flex-wrap: wrap;
|
|
background: var(--surface); border-bottom: 1px solid var(--border);
|
|
}
|
|
.pane-toolbar button {
|
|
padding: 0.3rem; font: inherit; font-size: 0.75rem; cursor: pointer;
|
|
background: var(--bg); color: var(--text); border: 1px solid var(--border);
|
|
border-radius: 3px; display: inline-flex; align-items: center; justify-content: center;
|
|
line-height: 0;
|
|
}
|
|
.pane-toolbar button:hover { background: #e8e8e8; }
|
|
.pane-toolbar button svg,
|
|
.pane-toolbar button img { display: block; }
|
|
|
|
.btn-group { position: relative; display: inline-flex; }
|
|
.submenu {
|
|
display: none; position: absolute; top: 100%; left: 0; z-index: 100;
|
|
margin-top: 2px; background: var(--bg); border: 1px solid var(--border);
|
|
border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.12);
|
|
min-width: 100px; overflow: hidden;
|
|
}
|
|
.submenu.open { display: block; }
|
|
.submenu button {
|
|
display: block; width: 100%; padding: 0.35rem 0.75rem; border: none;
|
|
border-radius: 0; text-align: left; font-size: 0.8rem; line-height: 1.4;
|
|
}
|
|
.submenu button:hover { background: #e8e8e8; }
|
|
.submenu button:not(:last-child) { border-bottom: 1px solid var(--border); }
|
|
|
|
/* ── Library sub-tab system ── */
|
|
.lib-tab-bar {
|
|
display: flex; border-bottom: 1px solid var(--border);
|
|
background: var(--surface); flex-shrink: 0;
|
|
}
|
|
.lib-tab {
|
|
padding: 0.3rem 0.7rem; border: none; background: transparent;
|
|
cursor: pointer; font: inherit; font-size: 0.8rem;
|
|
border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted);
|
|
}
|
|
.lib-tab:hover { background: #e8e8e8; color: var(--text); }
|
|
.lib-tab.active { background: #e0e0e0; border-bottom-color: var(--accent); color: var(--text); }
|
|
|
|
.lib-pane { display: none; flex: 1; flex-direction: column; min-height: 0; }
|
|
.lib-pane.active { display: flex; }
|
|
|
|
/* ── WCProcedure ── */
|
|
wc-procedure { gap: 0.35rem; min-width: 200px; }
|
|
wc-procedure .proc-header { display: flex; align-items: center; gap: 0.3rem; width: 100%; }
|
|
wc-procedure .proc-label { font-weight: bold; font-size: 0.7rem; color: var(--muted); letter-spacing: 0.05em; }
|
|
wc-procedure .proc-name {
|
|
flex: 1; background: var(--bg); border: 1px solid var(--border);
|
|
font: inherit; font-size: 0.8rem; padding: 0.15rem 0.3rem; text-align: center;
|
|
}
|
|
wc-procedure .proc-params {
|
|
display: flex; gap: 0.5rem; width: 100%;
|
|
}
|
|
wc-procedure .proc-params-col {
|
|
flex: 1; display: flex; flex-direction: column; gap: 0.2rem;
|
|
}
|
|
wc-procedure .proc-params-heading {
|
|
font-size: 0.65rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em;
|
|
}
|
|
wc-procedure .proc-param-row {
|
|
display: flex; align-items: center; gap: 0.2rem;
|
|
}
|
|
wc-procedure .proc-param-row input {
|
|
flex: 1; background: var(--bg); border: 1px solid var(--border);
|
|
font: inherit; font-size: 0.7rem; padding: 0.1rem 0.2rem; text-align: center;
|
|
min-width: 0;
|
|
}
|
|
wc-procedure .proc-param-name { width: 4em; }
|
|
wc-procedure .proc-param-type { width: 5em; }
|
|
wc-procedure .proc-param-del {
|
|
width: 16px; height: 16px; border-radius: 50%;
|
|
border: 1px solid #ccc; background: #fff; color: #999;
|
|
font-size: 11px; line-height: 1; cursor: pointer; padding: 0;
|
|
display: flex; align-items: center; justify-content: center;
|
|
}
|
|
wc-procedure .proc-param-del:hover { background: #d32f2f; color: #fff; border-color: #d32f2f; }
|
|
wc-procedure .proc-add-input, wc-procedure .proc-add-output {
|
|
font-size: 0.7rem; padding: 0.15rem 0.4rem; cursor: pointer;
|
|
background: var(--bg); border: 1px dashed var(--border);
|
|
border-radius: 3px; color: var(--muted);
|
|
}
|
|
wc-procedure .proc-add-input:hover, wc-procedure .proc-add-output:hover {
|
|
background: #e8e8e8; color: var(--text);
|
|
}
|
|
|
|
/* ── WCProcCall ── */
|
|
wc-proccall { gap: 0.25rem; min-width: 160px; padding-top: 1.2rem; padding-bottom: 1.2rem; }
|
|
wc-proccall .proccall-header { display: flex; align-items: center; gap: 0.3rem; width: 100%; }
|
|
wc-proccall .proccall-label { font-weight: bold; font-size: 0.65rem; color: var(--muted); letter-spacing: 0.05em; }
|
|
wc-proccall .proccall-select {
|
|
flex: 1; background: var(--bg); border: 1px solid var(--border);
|
|
font: inherit; font-size: 0.7rem; padding: 0.1rem 0.2rem;
|
|
}
|
|
wc-proccall .proccall-name-row {
|
|
display: flex; align-items: center; gap: 0.25rem; width: 100%;
|
|
}
|
|
wc-proccall .proccall-name {
|
|
flex: 1; background: var(--bg); border: 1px solid var(--border);
|
|
font: inherit; font-size: 0.7rem; padding: 0.1rem 0.2rem; text-align: center;
|
|
}
|
|
wc-proccall .proccall-container {
|
|
display: flex; gap: 0.5rem; width: 100%;
|
|
}
|
|
wc-proccall .proccall-inputs, wc-proccall .proccall-outputs {
|
|
flex: 1; display: flex; flex-direction: column; gap: 0.25rem;
|
|
}
|
|
wc-proccall .proccall-arg-row {
|
|
display: flex; align-items: center; gap: 0.2rem;
|
|
}
|
|
wc-proccall .proccall-arg-label {
|
|
font-size: 0.65rem; color: var(--text); white-space: nowrap;
|
|
}
|
|
wc-proccall .proccall-arg-input {
|
|
flex: 1; background: var(--bg); border: 1px solid var(--border);
|
|
font: inherit; font-size: 0.65rem; padding: 0.1rem 0.2rem; text-align: center;
|
|
min-width: 3em;
|
|
}
|
|
/* Data hooks inside proccall arg rows are inline (position: static by default in .hook) */
|
|
wc-proccall .proccall-arg-row .hook {
|
|
position: static !important;
|
|
transform: none !important;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* ── WCAssign ── */
|
|
wc-assign { gap: 0.25rem; padding-top: 1.2rem; padding-bottom: 1.2rem; }
|
|
wc-assign .assign-header { font-weight: bold; font-size: 0.65rem; color: var(--muted); letter-spacing: 0.05em; }
|
|
wc-assign .assign-row { display: flex; align-items: center; gap: 0.25rem; width: 100%; }
|
|
wc-assign .assign-target {
|
|
flex: 1; background: var(--bg); border: 1px solid var(--border);
|
|
font: inherit; font-size: 0.75rem; padding: 0.1rem 0.2rem;
|
|
}
|
|
wc-assign .assign-eq { font-size: 0.8rem; font-weight: bold; color: var(--text); }
|
|
wc-assign .assign-value {
|
|
flex: 1; background: var(--bg); border: 1px solid var(--border);
|
|
font: inherit; font-size: 0.75rem; padding: 0.15rem 0.3rem; text-align: center;
|
|
min-width: 4em;
|
|
}
|
|
wc-assign .assign-value.hidden { display: none; }
|
|
wc-assign .assign-index-area {
|
|
display: none; align-items: center; gap: 0.2rem; width: 100%;
|
|
justify-content: flex-end;
|
|
}
|
|
wc-assign .assign-index-area .hook {
|
|
position: static !important;
|
|
transform: none !important;
|
|
flex-shrink: 0;
|
|
}
|
|
wc-assign .assign-bracket { font-size: 0.85rem; font-weight: bold; color: var(--muted); }
|
|
wc-assign .assign-index {
|
|
width: 3em; background: var(--bg); border: 1px solid var(--border);
|
|
font: inherit; font-size: 0.75rem; padding: 0.15rem 0.3rem; text-align: center;
|
|
}
|
|
wc-assign .assign-index.hidden { display: none; }
|
|
wc-assign .assign-row .hook {
|
|
position: static !important;
|
|
transform: none !important;
|
|
flex-shrink: 0;
|
|
}
|
|
wc-assign #hook-fore[data-direction="in"] {
|
|
left: -7px; top: 50%; transform: translateY(-50%); bottom: auto;
|
|
}
|
|
wc-assign #hook-next[data-direction="out"] {
|
|
right: -7px; top: 50%; transform: translateY(-50%); bottom: auto; left: auto;
|
|
}
|
|
|
|
#draw-area, #data-area, #variable-area, .procedures-area {
|
|
flex: 1; position: relative; min-height: 0;
|
|
overflow: auto;
|
|
background-size: var(--grid-size) var(--grid-size);
|
|
background-image:
|
|
linear-gradient(to right, #eee 1px, transparent 1px),
|
|
linear-gradient(to bottom, #eee 1px, transparent 1px);
|
|
background-color: var(--bg);
|
|
}
|
|
|
|
.global-toolbar {
|
|
display: flex; gap: 0.25rem; padding: 0.3rem;
|
|
align-items: flex-start; flex-shrink: 0;
|
|
border-top: 1px solid var(--border); background: var(--surface);
|
|
}
|
|
.global-toolbar button {
|
|
padding: 0.4rem 0.8rem; font: inherit; font-size: 0.8rem; cursor: pointer;
|
|
background: var(--accent); color: #fff; border: none; border-radius: 3px;
|
|
}
|
|
.global-toolbar button:hover { background: #357abd; }
|
|
.global-toolbar textarea {
|
|
flex: 1; height: 80px; resize: vertical; padding: 0.3rem;
|
|
background: var(--bg); color: var(--text); border: 1px solid var(--border);
|
|
font-family: 'Courier New', monospace; font-size: 0.8rem;
|
|
}
|
|
|
|
[data-block] {
|
|
border: 1px solid var(--border); padding: 0.5rem; margin: 0;
|
|
position: absolute; display: flex; justify-content: center;
|
|
align-items: center; flex-direction: column; user-select: none;
|
|
background: var(--bg); color: var(--text); min-width: 60px; min-height: 30px;
|
|
overflow: visible; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); z-index: 1;
|
|
}
|
|
[data-block]:hover .resize-handle { opacity: 0.5; }
|
|
.resize-handle {
|
|
position: absolute; right: 0; bottom: 0; width: 14px; height: 14px;
|
|
cursor: nwse-resize; opacity: 0; z-index: 10;
|
|
background: linear-gradient(135deg, transparent 50%, var(--muted) 50%, var(--muted) 60%, transparent 60%);
|
|
transition: opacity 0.15s;
|
|
}
|
|
wc-start { background: #e8f5e9; border-color: #66bb6a; }
|
|
wc-end { background: #fbe9e7; border-color: #ef5350; }
|
|
wc-output { background: #e3f2fd; border-color: #42a5f5; }
|
|
wc-decision { background: #fff3e0; border-color: #ffa726; }
|
|
wc-boolean { background: #f3e5f5; border-color: #ab47bc; }
|
|
wc-scalar { background: #e8eaf6; border-color: #5c6bc0; }
|
|
wc-string { background: #fff8e1; border-color: #f9a825; }
|
|
wc-varref { background: #f5f5f5; border-color: #9e9e9e; }
|
|
wc-expression { background: #e8f5e9; border-color: #43a047; }
|
|
wc-quantity { background: #fce4ec; border-color: #ec407a; }
|
|
wc-unit { background: #e0f7fa; border-color: #26c6da; }
|
|
wc-procedure { background: #ede7f6; border-color: #7e57c2; }
|
|
wc-proccall { background: #fff8e1; border-color: #f9a825; }
|
|
wc-assign { background: #fce4ec; border-color: #e91e63; }
|
|
|
|
wc-output textarea {
|
|
background: var(--bg); border: 1px solid var(--border);
|
|
font: inherit; font-size: 0.75rem; padding: 0.2rem; width: 10em; resize: vertical;
|
|
}
|
|
|
|
wc-decision p { margin: 0.2rem 0; font-weight: 600; }
|
|
wc-decision .decision-row { display: flex; align-items: center; gap: 0.3rem; }
|
|
wc-decision .decision-label { font-size: 0.8rem; font-weight: bold; color: var(--text); }
|
|
wc-decision .decision-row .hook {
|
|
position: static !important;
|
|
transform: none !important;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
wc-boolean, wc-scalar, wc-string { gap: 0.25rem; }
|
|
wc-boolean .datum-row, wc-scalar .datum-row, wc-string .datum-row { display: flex; align-items: center; gap: 0.25rem; width: 100%; }
|
|
wc-boolean input, wc-scalar input, wc-string input {
|
|
background: var(--bg); border: 1px solid var(--border); font: inherit;
|
|
padding: 0.15rem 0.3rem; width: 4em; text-align: center;
|
|
}
|
|
wc-boolean .var-name, wc-scalar .var-name, wc-string .var-name, wc-array .var-name {
|
|
border: none; background: transparent; cursor: pointer;
|
|
font-weight: bold; font-size: 0.85rem;
|
|
width: auto; min-width: 2em; padding: 0.1rem;
|
|
}
|
|
wc-boolean .var-name:focus, wc-scalar .var-name:focus, wc-string .var-name:focus, wc-array .var-name:focus {
|
|
border: 1px solid var(--border); background: var(--bg); cursor: text;
|
|
outline: none; width: 5em;
|
|
}
|
|
wc-boolean .var-comment, wc-scalar .var-comment, wc-string .var-comment, wc-array .var-comment {
|
|
border: none; background: transparent;
|
|
font-style: italic; font-size: 0.7rem; color: var(--muted);
|
|
width: 100%; padding: 0.1rem 0.3rem; cursor: pointer;
|
|
text-align: left;
|
|
}
|
|
wc-boolean .var-comment:focus, wc-scalar .var-comment:focus, wc-string .var-comment:focus, wc-array .var-comment:focus {
|
|
border: 1px solid var(--border); background: var(--bg);
|
|
font-style: italic; color: var(--text); cursor: text;
|
|
outline: none;
|
|
}
|
|
wc-boolean .var-cname, wc-scalar .var-cname, wc-string .var-cname, wc-array .var-cname {
|
|
font-size: 0.65rem; color: var(--muted); font-family: 'Courier New', monospace;
|
|
width: 100%; padding: 0 0.3rem; line-height: 1.2;
|
|
}
|
|
wc-boolean .var-value, wc-scalar .var-value { width: 5em; }
|
|
wc-string .var-value { width: 8em; }
|
|
wc-array { gap: 0.25rem; background: #e0f2f1; border-color: #26a69a; }
|
|
wc-array .array-row { display: flex; align-items: center; gap: 0.25rem; width: 100%; }
|
|
|
|
wc-array .array-type { width: 7em; }
|
|
wc-array .array-bracket { font-size: 0.85rem; font-weight: bold; }
|
|
wc-array .array-count { font-size: 0.7rem; color: var(--muted); margin-left: auto; white-space: nowrap; }
|
|
wc-array .array-elements {
|
|
display: flex; flex-direction: column; gap: 0.15rem; width: 100%;
|
|
overflow: visible;
|
|
}
|
|
wc-array .array-element-row {
|
|
display: flex; align-items: center; gap: 0.25rem;
|
|
}
|
|
wc-array .array-element-idx {
|
|
font-size: 0.7rem; color: var(--muted); width: 1.5em; text-align: right; flex-shrink: 0;
|
|
font-family: 'Courier New', monospace;
|
|
}
|
|
wc-array .array-element-value {
|
|
flex: 1; background: var(--bg); border: 1px solid var(--border);
|
|
font: inherit; font-size: 0.75rem; padding: 0.1rem 0.3rem; text-align: center;
|
|
min-width: 3em;
|
|
}
|
|
wc-array .array-element-del {
|
|
width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
|
|
border: 1px solid #ccc; background: #fff; color: #999;
|
|
font-size: 11px; line-height: 1; cursor: pointer; padding: 0;
|
|
display: flex; align-items: center; justify-content: center;
|
|
}
|
|
wc-array .array-element-del:hover { background: #d32f2f; color: #fff; border-color: #d32f2f; }
|
|
wc-scalar .var-si { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
|
|
wc-scalar .var-type, wc-scalar .var-unit {
|
|
background: var(--bg); border: 1px solid var(--border);
|
|
font: inherit; font-size: 0.75rem; padding: 0.1rem 0.2rem;
|
|
}
|
|
|
|
wc-expression { gap: 0.25rem; }
|
|
wc-expression .expr-row { display: flex; align-items: center; gap: 0.25rem; width: 100%; }
|
|
wc-expression input {
|
|
background: var(--bg); border: 1px solid var(--border); font: inherit;
|
|
padding: 0.15rem 0.3rem; text-align: center;
|
|
}
|
|
wc-expression .expr-name { width: 3em; }
|
|
wc-expression .expr-formula-container {
|
|
display: flex; gap: 0.25rem; width: 100%;
|
|
}
|
|
wc-expression .expr-latex {
|
|
flex: 1; background: var(--bg); border: 1px solid var(--border);
|
|
font-family: 'Courier New', monospace; font-size: 0.75rem;
|
|
padding: 0.2rem; resize: vertical; min-width: 4em;
|
|
}
|
|
wc-expression .expr-rendered {
|
|
min-width: 3em; min-height: 2em; display: flex; align-items: center;
|
|
justify-content: center; background: #fafafa; border: 1px solid #eee;
|
|
border-radius: 3px; padding: 0.2rem 0.4rem; font-size: 0.8rem;
|
|
}
|
|
wc-expression .expr-varhooks {
|
|
position: absolute; top: -7px; left: 0; right: 0; z-index: 3;
|
|
display: flex; justify-content: center; gap: 6px;
|
|
pointer-events: none; height: 14px;
|
|
}
|
|
wc-expression .expr-varhooks .hook {
|
|
position: static; pointer-events: auto; flex-shrink: 0;
|
|
transform: none !important;
|
|
}
|
|
|
|
wc-varref { gap: 0.25rem; padding-bottom: 1rem; }
|
|
wc-varref .varref-label { font-weight: bold; font-size: 0.65rem; color: var(--muted); letter-spacing: 0.05em; }
|
|
wc-varref .varref-select {
|
|
background: var(--bg); border: 1px solid var(--border); font: inherit;
|
|
font-size: 0.75rem; padding: 0.15rem 0.2rem; width: 100%;
|
|
}
|
|
|
|
wc-quantity { gap: 0.25rem; }
|
|
wc-quantity .quantity-header { display: flex; align-items: center; gap: 0.3rem; width: 100%; }
|
|
wc-quantity .quantity-label { font-weight: bold; font-size: 0.7rem; }
|
|
wc-quantity .quantity-name {
|
|
flex: 1; background: var(--bg); border: 1px solid var(--border);
|
|
font: inherit; padding: 0.15rem 0.3rem; text-align: center;
|
|
}
|
|
wc-quantity .dims { display: flex; flex-wrap: wrap; gap: 0.2rem; justify-content: center; }
|
|
wc-quantity .dims label { display: flex; align-items: center; gap: 0.1rem; font-size: 0.75rem; font-weight: bold; }
|
|
wc-quantity .dims input {
|
|
width: 2.5em; background: var(--bg); border: 1px solid var(--border);
|
|
padding: 0.1rem; font: inherit; text-align: center;
|
|
}
|
|
wc-quantity .range { display: flex; gap: 0.5rem; font-size: 0.75rem; }
|
|
wc-quantity .range input {
|
|
width: 4em; background: var(--bg); border: 1px solid var(--border);
|
|
padding: 0.1rem 0.2rem; font: inherit; text-align: center;
|
|
}
|
|
wc-quantity .quantity-footer { width: 100%; font-size: 0.75rem; }
|
|
wc-quantity .quantity-footer select {
|
|
width: 100%; background: var(--bg); border: 1px solid var(--border);
|
|
font: inherit; padding: 0.1rem 0.2rem;
|
|
}
|
|
|
|
wc-unit { gap: 0.25rem; }
|
|
wc-unit .unit-header { display: flex; align-items: center; gap: 0.3rem; width: 100%; }
|
|
wc-unit .unit-label { font-weight: bold; font-size: 0.7rem; }
|
|
wc-unit .unit-fullname {
|
|
flex: 1; background: var(--bg); border: 1px solid var(--border);
|
|
font: inherit; padding: 0.15rem 0.3rem; text-align: center;
|
|
}
|
|
wc-unit .unit-body { display: flex; flex-direction: column; gap: 0.2rem; width: 100%; }
|
|
wc-unit .unit-body label { display: flex; align-items: center; gap: 0.3rem; font-size: 0.8rem; }
|
|
wc-unit .unit-body select, wc-unit .unit-body input {
|
|
flex: 1; background: var(--bg); border: 1px solid var(--border);
|
|
font: inherit; padding: 0.1rem 0.2rem; text-align: center;
|
|
}
|
|
wc-unit .unit-si { width: 7em; }
|
|
wc-unit .unit-resolved { font-size: 0.75rem; color: var(--muted); align-self: flex-end; }
|
|
|
|
.error-overlay {
|
|
display: none; position: fixed; z-index: 99999;
|
|
top: 0; left: 0; right: 0; bottom: 0;
|
|
background: rgba(0,0,0,0.45);
|
|
align-items: center; justify-content: center;
|
|
}
|
|
.error-overlay.active { display: flex; }
|
|
.error-box {
|
|
background: #d32f2f; color: #fff; padding: 2rem;
|
|
border-radius: 8px; max-width: 400px; width: 90%;
|
|
box-shadow: 0 4px 24px rgba(0,0,0,0.35);
|
|
text-align: center; position: relative;
|
|
}
|
|
.error-ack {
|
|
font-size: 2.2rem; font-weight: 900;
|
|
font-family: 'Courier New', monospace;
|
|
letter-spacing: 0.1em; margin-bottom: 0.75rem;
|
|
}
|
|
.error-close {
|
|
position: absolute; top: 0.3rem; right: 0.75rem;
|
|
cursor: pointer; font-size: 1.8rem; line-height: 1;
|
|
opacity: 0.8;
|
|
}
|
|
.error-close:hover { opacity: 1; }
|
|
.error-msg { font-size: 1rem; line-height: 1.5; }
|
|
|
|
svg#connections {
|
|
z-index: 0; background: transparent; position: absolute;
|
|
top: 0; left: 0; width: 100%; height: 100%;
|
|
}
|
|
path.flow { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; transition: stroke 0.1s, stroke-width 0.1s; }
|
|
path.flow:hover { stroke: #d32f2f; stroke-width: 3; cursor: pointer; }
|
|
path.flow-shadow { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 5 3; pointer-events: none; opacity: 0.6; }
|
|
path.flow-data { fill: none; stroke: #43a047; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; transition: stroke 0.1s, stroke-width 0.1s; }
|
|
path.flow-data:hover { stroke: #d32f2f; stroke-width: 3; cursor: pointer; }
|
|
path.flow-shadow-data { fill: none; stroke: #43a047; stroke-width: 1.5; stroke-dasharray: 5 3; pointer-events: none; opacity: 0.6; }
|
|
|
|
button.hook {
|
|
display: block; width: 14px; height: 14px; border-radius: 50%;
|
|
cursor: pointer; padding: 0; z-index: 2;
|
|
transition: transform 0.1s, box-shadow 0.1s;
|
|
}
|
|
|
|
button.hook[data-direction="out"] {
|
|
background: var(--accent); border: 2px solid var(--accent);
|
|
position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%);
|
|
}
|
|
button.hook[data-direction="out"]:hover {
|
|
transform: translateX(-50%) scale(1.3);
|
|
box-shadow: 0 0 6px rgba(74,144,217,0.5);
|
|
}
|
|
|
|
button.hook[data-direction="in"] {
|
|
background: var(--bg); border: 2px dashed var(--muted);
|
|
position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
|
|
}
|
|
button.hook[data-direction="in"]:hover {
|
|
border-color: var(--accent); border-style: solid; background: #e8f0fe;
|
|
}
|
|
|
|
button.hook:not([data-direction]) {
|
|
opacity: 0.2; pointer-events: none;
|
|
}
|
|
|
|
button.hook[data-link-type="data"][data-direction="out"] {
|
|
background: #43a047; border-color: #43a047;
|
|
}
|
|
button.hook[data-link-type="data"][data-direction="out"]:hover {
|
|
transform: translateX(-50%) scale(1.3);
|
|
box-shadow: 0 0 6px rgba(67,160,71,0.5);
|
|
}
|
|
button.hook[data-link-type="data"][data-direction="in"] {
|
|
border-color: #43a047; background: #e8f5e9;
|
|
}
|
|
button.hook[data-link-type="data"][data-direction="in"]:hover {
|
|
background: #c8e6c9; border-style: solid;
|
|
}
|
|
|
|
wc-output #hook-fore[data-direction="in"] {
|
|
left: -7px; top: 50%; transform: translateY(-50%);
|
|
}
|
|
wc-output #hook-next[data-direction="out"] {
|
|
right: -7px; top: 50%; transform: translateY(-50%); bottom: auto; left: auto;
|
|
}
|
|
|
|
wc-decision #hook-fore[data-direction="in"] {
|
|
left: -7px; top: 50%; transform: translateY(-50%); bottom: auto;
|
|
}
|
|
wc-decision #hook-out1[data-direction="out"] {
|
|
right: -7px; top: -7px; bottom: auto; left: auto; transform: none;
|
|
}
|
|
wc-decision #hook-out0[data-direction="out"] {
|
|
right: -7px; bottom: -7px; top: auto; left: auto; transform: none;
|
|
}
|
|
|
|
.selected {
|
|
box-shadow: 0 0 0 2px var(--accent), 0 1px 3px rgba(0,0,0,0.08);
|
|
}
|
|
|
|
.delete-btn {
|
|
position: absolute; top: -8px; right: -8px;
|
|
width: 18px; height: 18px; border-radius: 50%;
|
|
border: 1px solid #ccc; background: #fff; color: #999;
|
|
font-size: 13px; line-height: 1; cursor: pointer; padding: 0;
|
|
display: flex; align-items: center; justify-content: center;
|
|
z-index: 20; opacity: 0; transition: opacity 0.12s;
|
|
}
|
|
.delete-btn:hover {
|
|
opacity: 1 !important; background: #d32f2f; color: #fff; border-color: #d32f2f;
|
|
}
|
|
[data-block]:hover .delete-btn, .selected .delete-btn {
|
|
opacity: 0.6;
|
|
}
|
|
|
|
textarea { white-space: pre-wrap; }
|
|
select {
|
|
background: var(--bg); color: var(--text); border: 1px solid var(--border);
|
|
font: inherit; font-size: 0.75rem; padding: 0.1rem 0.2rem;
|
|
}
|
|
select option { background: var(--bg); color: var(--text); }
|
|
input { color-scheme: light; }
|
|
* { scrollbar-color: var(--border) var(--bg); scrollbar-width: thin; }
|