746 lines
13 KiB
CSS
746 lines
13 KiB
CSS
html[data-theme="dark"] {
|
|
color-scheme: dark;
|
|
--bg: #11141a;
|
|
--bg-elevated: #161b22;
|
|
--panel: #171d25;
|
|
--panel-muted: #11161d;
|
|
--panel-strong: #202835;
|
|
--border: #2a3341;
|
|
--border-strong: #3a4759;
|
|
--text: #e6ebf2;
|
|
--muted: #9aa6b6;
|
|
--accent: #8bb8ff;
|
|
--accent-soft: rgba(139, 184, 255, 0.14);
|
|
--success: #7bc59a;
|
|
--warning: #d7b26d;
|
|
--danger: #e09a9a;
|
|
--shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
html[data-theme="light"] {
|
|
color-scheme: light;
|
|
--bg: #eef2f6;
|
|
--bg-elevated: #f6f8fb;
|
|
--panel: #fbfcfe;
|
|
--panel-muted: #f3f6fa;
|
|
--panel-strong: #e9eef5;
|
|
--border: #d7dde7;
|
|
--border-strong: #c2cddd;
|
|
--text: #162031;
|
|
--muted: #5f6f84;
|
|
--accent: #3667d6;
|
|
--accent-soft: rgba(54, 103, 214, 0.1);
|
|
--success: #237a4b;
|
|
--warning: #946400;
|
|
--danger: #af3a3a;
|
|
--shadow: 0 16px 36px rgba(18, 30, 46, 0.08);
|
|
}
|
|
|
|
:root {
|
|
--radius: 16px;
|
|
--radius-sm: 12px;
|
|
--font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
--mono: "SFMono-Regular", ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, monospace;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
min-height: 100vh;
|
|
background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
|
|
color: var(--text);
|
|
font-family: var(--font);
|
|
}
|
|
|
|
body.has-modal {
|
|
overflow: hidden;
|
|
}
|
|
|
|
button,
|
|
input,
|
|
textarea,
|
|
select {
|
|
font: inherit;
|
|
}
|
|
|
|
.app-shell {
|
|
min-height: 100vh;
|
|
padding: 20px;
|
|
}
|
|
|
|
.topbar {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 18px;
|
|
padding: 20px 24px;
|
|
margin-bottom: 16px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
background: rgba(255, 255, 255, 0.04);
|
|
box-shadow: var(--shadow);
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
.topbar__brand,
|
|
.topbar__context,
|
|
.section-head,
|
|
.editor-toolbar,
|
|
.toolbar-tabs,
|
|
.toolbar-actions,
|
|
.bottom-tabs,
|
|
.export-box,
|
|
.export-actions,
|
|
.connection-card__head,
|
|
.connection-card__meta,
|
|
.status-shortcuts {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.topbar__brand h1,
|
|
.section-head h2,
|
|
.panel-section h2 {
|
|
margin: 0;
|
|
font-size: 16px;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
.topbar__copy {
|
|
margin: 8px 0 0;
|
|
max-width: 620px;
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.brand-mark {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 44px;
|
|
height: 44px;
|
|
border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--border));
|
|
border-radius: 12px;
|
|
background: var(--accent-soft);
|
|
color: var(--accent);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.topbar__context {
|
|
justify-content: flex-end;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.eyebrow {
|
|
margin: 0 0 4px;
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.workspace-summary {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
gap: 14px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.summary-card {
|
|
padding: 16px 18px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
background: var(--panel);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.summary-card strong {
|
|
display: block;
|
|
margin-top: 6px;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.summary-card p,
|
|
.summary-card__label,
|
|
.pill-label,
|
|
.result-summary span {
|
|
margin: 6px 0 0;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.workspace {
|
|
display: grid;
|
|
grid-template-columns: 280px minmax(640px, 1fr) 280px;
|
|
gap: 16px;
|
|
min-height: calc(100vh - 222px);
|
|
}
|
|
|
|
.panel {
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
background: var(--panel);
|
|
box-shadow: var(--shadow);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.panel--nav,
|
|
.panel--side {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.panel--main {
|
|
display: grid;
|
|
grid-template-rows: auto auto minmax(260px, 1fr) auto minmax(280px, 0.92fr) auto;
|
|
}
|
|
|
|
.panel-section,
|
|
.editor-toolbar,
|
|
.context-strip,
|
|
.execution-banner,
|
|
.bottom-panel,
|
|
.status-bar {
|
|
padding: 18px;
|
|
}
|
|
|
|
.panel-section + .panel-section {
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.connection-pill,
|
|
.pill,
|
|
.ghost-button,
|
|
.action-button,
|
|
.toolbar-tab,
|
|
.bottom-tab,
|
|
.search-field,
|
|
.info-card,
|
|
.log-row,
|
|
.problem-box,
|
|
.summary-card,
|
|
.result-summary {
|
|
border: 1px solid var(--border);
|
|
border-radius: 14px;
|
|
}
|
|
|
|
.ghost-button,
|
|
.action-button,
|
|
.toolbar-tab,
|
|
.bottom-tab {
|
|
cursor: pointer;
|
|
transition: border-color 120ms ease, background 120ms ease, color 120ms ease, transform 120ms ease;
|
|
}
|
|
|
|
.ghost-button,
|
|
.toolbar-tab,
|
|
.bottom-tab,
|
|
.search-field {
|
|
padding: 8px 12px;
|
|
background: var(--panel-muted);
|
|
color: var(--muted);
|
|
}
|
|
|
|
.ghost-button:hover,
|
|
.action-button:hover,
|
|
.toolbar-tab:hover,
|
|
.bottom-tab:hover,
|
|
.connection-card:hover,
|
|
.tree-item:hover {
|
|
border-color: var(--border-strong);
|
|
}
|
|
|
|
.ghost-button:disabled,
|
|
.action-button:disabled {
|
|
cursor: not-allowed;
|
|
opacity: 0.55;
|
|
}
|
|
|
|
.ghost-button--small {
|
|
padding: 6px 10px;
|
|
}
|
|
|
|
.action-button {
|
|
padding: 9px 13px;
|
|
background: var(--panel-strong);
|
|
color: var(--text);
|
|
}
|
|
|
|
.action-button--primary {
|
|
border-color: color-mix(in srgb, var(--accent) 32%, var(--border));
|
|
background: var(--accent-soft);
|
|
color: var(--text);
|
|
}
|
|
|
|
.connection-pill,
|
|
.pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 9px 12px;
|
|
background: var(--panel-muted);
|
|
}
|
|
|
|
.pill--success {
|
|
color: var(--success);
|
|
}
|
|
|
|
.pill--muted {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.status-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 999px;
|
|
background: var(--muted);
|
|
}
|
|
|
|
.status-dot--ok {
|
|
background: var(--success);
|
|
}
|
|
|
|
.connection-list,
|
|
.tree,
|
|
.detail-list,
|
|
.focus-list,
|
|
.log-list {
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
.connection-card {
|
|
display: grid;
|
|
gap: 10px;
|
|
width: 100%;
|
|
padding: 14px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
background: var(--panel-muted);
|
|
color: inherit;
|
|
text-align: left;
|
|
}
|
|
|
|
.connection-card p,
|
|
.export-box p,
|
|
.problem-box p,
|
|
.focus-list,
|
|
.detail-list span,
|
|
.info-card span,
|
|
.log-row span {
|
|
margin: 4px 0 0;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.connection-card__head,
|
|
.connection-card__meta {
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.connection-card__meta {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.connection-card.is-active {
|
|
border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
|
|
background: var(--accent-soft);
|
|
}
|
|
|
|
.search-field {
|
|
display: grid;
|
|
gap: 8px;
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.search-field input {
|
|
width: 100%;
|
|
padding: 0;
|
|
border: 0;
|
|
outline: none;
|
|
background: transparent;
|
|
color: var(--text);
|
|
}
|
|
|
|
.tree-group {
|
|
padding: 10px 12px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
background: var(--panel-muted);
|
|
}
|
|
|
|
.tree-group[hidden],
|
|
.tree-item[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
.tree summary {
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.tree-item {
|
|
display: grid;
|
|
gap: 4px;
|
|
width: 100%;
|
|
margin-top: 10px;
|
|
padding: 11px 12px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
background: transparent;
|
|
color: inherit;
|
|
text-align: left;
|
|
}
|
|
|
|
.tree-item span {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.tree-item.is-selected {
|
|
border-color: color-mix(in srgb, var(--accent) 38%, var(--border));
|
|
background: var(--accent-soft);
|
|
}
|
|
|
|
.context-strip {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
gap: 12px;
|
|
border-top: 1px solid var(--border);
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--panel-muted);
|
|
}
|
|
|
|
.context-strip div {
|
|
min-width: 0;
|
|
}
|
|
|
|
.context-label {
|
|
display: block;
|
|
margin-bottom: 6px;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.context-strip strong {
|
|
display: block;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.editor {
|
|
display: grid;
|
|
grid-template-columns: 52px 1fr;
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--panel-muted);
|
|
}
|
|
|
|
.editor-gutter,
|
|
.editor-code {
|
|
padding: 18px 16px;
|
|
margin: 0;
|
|
font-family: var(--mono);
|
|
font-size: 13px;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.editor-gutter {
|
|
color: var(--muted);
|
|
border-right: 1px solid var(--border);
|
|
background: color-mix(in srgb, var(--panel-muted) 82%, black 18%);
|
|
}
|
|
|
|
.editor-gutter span {
|
|
display: block;
|
|
}
|
|
|
|
.editor-code {
|
|
color: var(--text);
|
|
overflow: auto;
|
|
}
|
|
|
|
.execution-banner {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 18px;
|
|
border-top: 1px solid var(--border);
|
|
background: color-mix(in srgb, var(--success) 10%, var(--panel));
|
|
}
|
|
|
|
.execution-banner.is-running {
|
|
background: color-mix(in srgb, var(--accent) 10%, var(--panel));
|
|
}
|
|
|
|
.execution-banner.is-empty {
|
|
background: color-mix(in srgb, var(--warning) 10%, var(--panel));
|
|
}
|
|
|
|
.execution-banner.is-error {
|
|
background: color-mix(in srgb, var(--danger) 12%, var(--panel));
|
|
}
|
|
|
|
.execution-banner.is-exported {
|
|
background: color-mix(in srgb, var(--accent) 12%, var(--panel));
|
|
}
|
|
|
|
.banner-metrics {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(88px, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
.banner-metrics div,
|
|
.detail-list div,
|
|
.info-card {
|
|
padding: 12px 14px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
background: rgba(15, 18, 24, 0.7);
|
|
}
|
|
|
|
.banner-metrics span,
|
|
.detail-list span,
|
|
.info-card span {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.bottom-panel {
|
|
display: grid;
|
|
grid-template-rows: auto 1fr;
|
|
gap: 16px;
|
|
}
|
|
|
|
.result-summary {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
margin-bottom: 12px;
|
|
padding: 12px 14px;
|
|
background: var(--panel-muted);
|
|
}
|
|
|
|
.result-summary strong {
|
|
font-size: 13px;
|
|
}
|
|
|
|
.toolbar-tab.is-active,
|
|
.bottom-tab.is-active {
|
|
border-color: color-mix(in srgb, var(--accent) 32%, var(--border));
|
|
background: var(--accent-soft);
|
|
color: var(--text);
|
|
}
|
|
|
|
.tab-content {
|
|
display: none;
|
|
}
|
|
|
|
.tab-content.is-active {
|
|
display: block;
|
|
}
|
|
|
|
.table-wrap {
|
|
overflow: auto;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 13px;
|
|
}
|
|
|
|
th,
|
|
td {
|
|
padding: 12px 14px;
|
|
border-bottom: 1px solid var(--border);
|
|
text-align: left;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
th {
|
|
color: var(--muted);
|
|
font-weight: 600;
|
|
background: var(--panel-strong);
|
|
}
|
|
|
|
.log-row,
|
|
.export-box,
|
|
.problem-box,
|
|
.contract-card {
|
|
padding: 16px;
|
|
background: var(--panel-muted);
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.contract-card {
|
|
display: grid;
|
|
gap: 14px;
|
|
}
|
|
|
|
.contract-preview {
|
|
margin: 0;
|
|
padding: 16px;
|
|
overflow: auto;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
background: color-mix(in srgb, var(--panel-muted) 74%, black 26%);
|
|
color: var(--text);
|
|
font-family: var(--mono);
|
|
font-size: 12px;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.focus-list {
|
|
padding-left: 18px;
|
|
}
|
|
|
|
.focus-list li + li {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.status-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
border-top: 1px solid var(--border);
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.status-shortcuts {
|
|
flex-wrap: wrap;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.command-palette {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 40;
|
|
}
|
|
|
|
.command-palette__backdrop {
|
|
position: absolute;
|
|
inset: 0;
|
|
border: 0;
|
|
background: rgba(9, 12, 18, 0.48);
|
|
backdrop-filter: blur(8px);
|
|
}
|
|
|
|
.command-dialog {
|
|
position: relative;
|
|
z-index: 1;
|
|
width: min(920px, calc(100vw - 32px));
|
|
margin: 56px auto;
|
|
padding: 20px;
|
|
border: 1px solid var(--border-strong);
|
|
border-radius: var(--radius);
|
|
background: var(--panel);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.command-dialog__head,
|
|
.command-grid,
|
|
.command-list {
|
|
display: grid;
|
|
gap: 14px;
|
|
}
|
|
|
|
.command-dialog__head {
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
align-items: center;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.command-grid {
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
}
|
|
|
|
.command-section {
|
|
min-width: 0;
|
|
}
|
|
|
|
.command-item {
|
|
display: grid;
|
|
gap: 6px;
|
|
width: 100%;
|
|
padding: 14px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
background: var(--panel-muted);
|
|
color: inherit;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
transition: border-color 120ms ease, background 120ms ease;
|
|
}
|
|
|
|
.command-item:hover,
|
|
.command-item:focus-visible {
|
|
border-color: color-mix(in srgb, var(--accent) 36%, var(--border));
|
|
background: var(--accent-soft);
|
|
outline: none;
|
|
}
|
|
|
|
.command-item span {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
@media (max-width: 1440px) {
|
|
.workspace-summary {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.workspace {
|
|
grid-template-columns: 250px minmax(520px, 1fr) 250px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 1100px) {
|
|
.topbar,
|
|
.status-bar,
|
|
.result-summary,
|
|
.context-strip,
|
|
.workspace-summary {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.topbar,
|
|
.status-bar,
|
|
.result-summary {
|
|
display: grid;
|
|
}
|
|
|
|
.workspace {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.command-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.panel--main {
|
|
order: 1;
|
|
}
|
|
|
|
.panel--nav {
|
|
order: 2;
|
|
}
|
|
|
|
.panel--side {
|
|
order: 3;
|
|
}
|
|
}
|