449 lines
6.6 KiB
CSS
449 lines
6.6 KiB
CSS
:root {
|
|
--bg: #eef2f6;
|
|
--panel: #ffffff;
|
|
--ink: #1d2939;
|
|
--ink-soft: #667085;
|
|
--line: #d0d5dd;
|
|
--accent: #155eef;
|
|
--accent-soft: #dbe8ff;
|
|
--warn: #b54708;
|
|
--error: #b42318;
|
|
--ok: #067647;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family: "Manrope", "Segoe UI", sans-serif;
|
|
color: var(--ink);
|
|
background: radial-gradient(circle at 8% 8%, #fef7e6, transparent 30%),
|
|
radial-gradient(circle at 88% 12%, #e0f2ff, transparent 30%), var(--bg);
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.topbar {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 10px 12px;
|
|
border-bottom: 1px solid var(--line);
|
|
background: #f7fbffde;
|
|
backdrop-filter: blur(4px);
|
|
}
|
|
|
|
.brand h1 {
|
|
margin: 0;
|
|
font-size: 1.2rem;
|
|
letter-spacing: 0.08em;
|
|
}
|
|
|
|
.brand p {
|
|
margin: 2px 0 0;
|
|
color: var(--ink-soft);
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
align-items: center;
|
|
}
|
|
|
|
button,
|
|
select,
|
|
input,
|
|
textarea {
|
|
font: inherit;
|
|
}
|
|
|
|
button {
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
background: #fff;
|
|
padding: 6px 10px;
|
|
color: var(--ink);
|
|
cursor: pointer;
|
|
}
|
|
|
|
button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
button.primary {
|
|
background: var(--accent);
|
|
color: #fff;
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
button.chip {
|
|
padding: 4px 8px;
|
|
font-size: 0.76rem;
|
|
}
|
|
|
|
button.activeChip {
|
|
background: var(--accent-soft);
|
|
border-color: var(--accent);
|
|
color: #0f3ea3;
|
|
}
|
|
|
|
.inlineSelect,
|
|
.inlineCheck,
|
|
.inline {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.inlineSelect select {
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
padding: 5px 8px;
|
|
}
|
|
|
|
.workspace {
|
|
height: calc(100vh - 65px);
|
|
display: grid;
|
|
grid-template-columns: 270px minmax(480px, 1fr) 380px;
|
|
gap: 10px;
|
|
padding: 10px;
|
|
}
|
|
|
|
.pane {
|
|
background: var(--panel);
|
|
border: 1px solid var(--line);
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.pane.left,
|
|
.pane.right {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
padding: 10px;
|
|
overflow: auto;
|
|
}
|
|
|
|
.sectionHead {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.sectionHead h2 {
|
|
margin: 0;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
input,
|
|
textarea,
|
|
select {
|
|
width: 100%;
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
padding: 8px;
|
|
color: var(--ink);
|
|
}
|
|
|
|
textarea {
|
|
min-height: 250px;
|
|
font-family: "JetBrains Mono", monospace;
|
|
font-size: 12px;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.list {
|
|
margin: 8px 0 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
max-height: 230px;
|
|
overflow: auto;
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.list li {
|
|
padding: 8px;
|
|
border-bottom: 1px solid var(--line);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.list li:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.list li.active {
|
|
background: var(--accent-soft);
|
|
}
|
|
|
|
.card {
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
padding: 8px;
|
|
color: var(--ink-soft);
|
|
font-size: 0.85rem;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.editorCard {
|
|
margin-top: 8px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
padding: 8px;
|
|
background: #fcfcfd;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.editorGrid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 8px;
|
|
}
|
|
|
|
.editorActions {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.hintText {
|
|
font-size: 0.8rem;
|
|
color: var(--ink-soft);
|
|
}
|
|
|
|
.miniList {
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
background: #fff;
|
|
max-height: 170px;
|
|
overflow: auto;
|
|
}
|
|
|
|
.miniRow {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px 8px;
|
|
border-bottom: 1px solid var(--line);
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.miniRow:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.symbolPinRow {
|
|
display: grid;
|
|
grid-template-columns: 1fr 0.9fr 0.9fr 0.8fr 1fr auto;
|
|
align-items: center;
|
|
}
|
|
|
|
.pinCol {
|
|
min-width: 0;
|
|
padding: 5px 6px;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.canvasTools {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: center;
|
|
border-bottom: 1px solid var(--line);
|
|
padding: 8px;
|
|
}
|
|
|
|
#compileStatus {
|
|
margin-left: auto;
|
|
color: var(--ink-soft);
|
|
font-size: 0.84rem;
|
|
}
|
|
|
|
.status-ok {
|
|
color: var(--ok);
|
|
}
|
|
|
|
.canvasViewport {
|
|
height: calc(100% - 52px);
|
|
overflow: hidden;
|
|
position: relative;
|
|
cursor: grab;
|
|
background-image: linear-gradient(0deg, #ebeff3 1px, transparent 1px),
|
|
linear-gradient(90deg, #ebeff3 1px, transparent 1px);
|
|
background-size: 20px 20px;
|
|
}
|
|
|
|
.canvasViewport.dragging {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
.canvasInner {
|
|
transform-origin: 0 0;
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
}
|
|
|
|
.canvasInner svg {
|
|
display: block;
|
|
}
|
|
|
|
.selectionBox {
|
|
position: absolute;
|
|
border: 1px solid #155eef;
|
|
background: rgba(21, 94, 239, 0.12);
|
|
pointer-events: none;
|
|
z-index: 15;
|
|
}
|
|
|
|
.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.jsonActions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
}
|
|
|
|
.jsonActions button {
|
|
padding: 4px 8px;
|
|
font-size: 0.78rem;
|
|
}
|
|
|
|
.jsonFeedback {
|
|
min-height: 18px;
|
|
color: var(--ink-soft);
|
|
font-size: 0.78rem;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.issueRow {
|
|
border: 1px solid var(--line);
|
|
border-radius: 7px;
|
|
padding: 7px;
|
|
margin-bottom: 6px;
|
|
cursor: pointer;
|
|
background: #fff;
|
|
}
|
|
|
|
.issueRow:hover {
|
|
background: #f8faff;
|
|
}
|
|
|
|
.issueErr {
|
|
border-color: #fecdca;
|
|
background: #fff6f5;
|
|
}
|
|
|
|
.issueWarn {
|
|
border-color: #fedf89;
|
|
background: #fffcf5;
|
|
}
|
|
|
|
.issueTitle {
|
|
font-size: 0.8rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.issueMeta {
|
|
font-size: 0.72rem;
|
|
color: var(--ink-soft);
|
|
}
|
|
|
|
.pinTooltip {
|
|
position: absolute;
|
|
pointer-events: none;
|
|
padding: 6px 8px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
background: #ffffffee;
|
|
color: var(--ink);
|
|
font-size: 0.74rem;
|
|
z-index: 20;
|
|
box-shadow: 0 6px 20px rgba(16, 24, 40, 0.12);
|
|
}
|
|
|
|
.modal {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(15, 23, 42, 0.45);
|
|
z-index: 70;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 18px;
|
|
}
|
|
|
|
.modal.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.modalCard {
|
|
width: min(1120px, 100%);
|
|
height: min(88vh, 900px);
|
|
background: #fff;
|
|
border: 1px solid var(--line);
|
|
border-radius: 12px;
|
|
padding: 12px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.modalHead {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.modalHead h3 {
|
|
margin: 0;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.modalHint {
|
|
margin: 0;
|
|
color: var(--ink-soft);
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
#schemaViewer {
|
|
height: 100%;
|
|
min-height: 0;
|
|
}
|
|
|
|
.flash {
|
|
animation: flashPulse 0.7s ease-in-out 0s 2;
|
|
}
|
|
|
|
@keyframes flashPulse {
|
|
0% {
|
|
opacity: 0.2;
|
|
}
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 1300px) {
|
|
.workspace {
|
|
grid-template-columns: 1fr;
|
|
grid-template-rows: auto auto auto;
|
|
height: auto;
|
|
}
|
|
|
|
.pane.center {
|
|
min-height: 560px;
|
|
}
|
|
}
|