1472 lines
25 KiB
CSS
1472 lines
25 KiB
CSS
@import '../../styles/admin-config-pages.css';
|
|
|
|
.admin-panel {
|
|
--panel-ink: var(--text-primary);
|
|
--panel-muted: var(--text-secondary);
|
|
--panel-border: var(--border-default);
|
|
--panel-soft: #f6f8fb;
|
|
--panel-line: #dce3ec;
|
|
--accent: var(--color-primary);
|
|
--accent-strong: var(--color-primary-dark);
|
|
--warn: var(--color-warning);
|
|
--danger: var(--color-danger);
|
|
|
|
display: grid;
|
|
gap: var(--space-4);
|
|
}
|
|
|
|
.hero-card,
|
|
.work-section,
|
|
.rule-card,
|
|
.empty-block,
|
|
.message-box {
|
|
border: 1px solid var(--panel-border);
|
|
background: rgba(255, 255, 255, 0.96);
|
|
box-shadow: 0 10px 28px rgba(16, 24, 40, 0.06);
|
|
}
|
|
|
|
.hero-card {
|
|
display: grid;
|
|
gap: 18px;
|
|
padding: 22px;
|
|
border-radius: 10px;
|
|
background:
|
|
linear-gradient(135deg, rgba(15, 107, 95, 0.1), rgba(255, 255, 255, 0) 34%),
|
|
linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 251, 0.96));
|
|
}
|
|
|
|
.hero-main,
|
|
.section-heading,
|
|
.rule-head,
|
|
.pane-heading,
|
|
.rule-footer {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
}
|
|
|
|
.hero-copy,
|
|
.section-heading > div:first-child {
|
|
display: grid;
|
|
gap: 6px;
|
|
}
|
|
|
|
.eyebrow {
|
|
color: var(--accent);
|
|
font-size: 11px;
|
|
font-weight: 800;
|
|
letter-spacing: 0;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.hero-copy h1,
|
|
.section-heading h2,
|
|
.pane-heading h3 {
|
|
margin: 0;
|
|
color: var(--panel-ink);
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
.hero-copy h1 {
|
|
font-size: var(--text-2xl);
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.section-heading h2 {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.pane-heading h3 {
|
|
font-size: var(--text-base);
|
|
}
|
|
|
|
.hero-copy p {
|
|
max-width: 720px;
|
|
margin: 0;
|
|
color: var(--panel-muted);
|
|
line-height: 1.65;
|
|
}
|
|
|
|
.hero-actions,
|
|
.toolbar-actions,
|
|
.sample-metrics,
|
|
.rule-head-meta {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
}
|
|
|
|
.inline-switch {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
min-height: 34px;
|
|
padding: 0 10px;
|
|
border: 1px solid var(--panel-border);
|
|
border-radius: var(--radius-sm);
|
|
background: #fff;
|
|
color: var(--panel-ink);
|
|
font-size: var(--text-sm);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.status-strip {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(112px, 1fr)) minmax(240px, 2fr);
|
|
gap: 10px;
|
|
}
|
|
|
|
.status-strip article {
|
|
min-width: 0;
|
|
padding: 12px;
|
|
border: 1px solid rgba(31, 42, 55, 0.08);
|
|
border-radius: var(--radius-sm);
|
|
background: rgba(255, 255, 255, 0.82);
|
|
}
|
|
|
|
.status-strip span,
|
|
.label,
|
|
.field-block > span,
|
|
.pane-heading span,
|
|
.rule-footer,
|
|
.field-help {
|
|
color: var(--panel-muted);
|
|
font-size: var(--text-xs);
|
|
}
|
|
|
|
.status-strip strong {
|
|
display: block;
|
|
margin-top: 5px;
|
|
color: var(--panel-ink);
|
|
font-size: var(--text-2xl);
|
|
line-height: 1;
|
|
}
|
|
|
|
.status-strip code {
|
|
display: block;
|
|
margin-top: 7px;
|
|
overflow: hidden;
|
|
color: var(--panel-ink);
|
|
font-family: var(--font-mono);
|
|
font-size: var(--text-xs);
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.work-section {
|
|
display: grid;
|
|
gap: 16px;
|
|
padding: 18px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.section-heading {
|
|
align-items: center;
|
|
}
|
|
|
|
.sample-metrics span {
|
|
padding: 6px 10px;
|
|
border-radius: var(--radius-full);
|
|
background: #eef7f5;
|
|
color: var(--accent-strong);
|
|
font-size: var(--text-xs);
|
|
font-weight: 800;
|
|
}
|
|
|
|
.lookup-console {
|
|
display: grid;
|
|
gap: 12px;
|
|
padding: 14px;
|
|
border: 1px solid var(--panel-line);
|
|
border-radius: var(--radius-sm);
|
|
background: linear-gradient(180deg, #f8fafc, #ffffff);
|
|
}
|
|
|
|
.lookup-grid,
|
|
.grid,
|
|
.switch-grid {
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
|
|
.lookup-grid {
|
|
grid-template-columns: 1.4fr 1.4fr 1fr 1fr 92px 92px 92px 132px;
|
|
align-items: end;
|
|
}
|
|
|
|
.field-span-2 {
|
|
grid-column: span 2;
|
|
}
|
|
|
|
.cols-3 {
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
}
|
|
|
|
.cols-4 {
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
}
|
|
|
|
.field-block {
|
|
min-width: 0;
|
|
display: grid;
|
|
gap: 7px;
|
|
}
|
|
|
|
.field-block > span {
|
|
color: #344054;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.action-field {
|
|
align-content: end;
|
|
}
|
|
|
|
.action-field :deep(.el-button),
|
|
.sample-import-button {
|
|
width: 100%;
|
|
}
|
|
|
|
.sample-results {
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
.sample-card {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) 112px;
|
|
align-items: center;
|
|
gap: 14px;
|
|
padding: 14px;
|
|
border: 1px solid var(--panel-line);
|
|
border-radius: var(--radius-sm);
|
|
background: #fff;
|
|
}
|
|
|
|
.sample-card[data-imported='true'] {
|
|
background: #f8fafc;
|
|
}
|
|
|
|
.sample-main {
|
|
min-width: 0;
|
|
display: grid;
|
|
grid-template-columns: 1.1fr 1.7fr 1.25fr 0.8fr;
|
|
gap: 14px;
|
|
}
|
|
|
|
.sample-main > div,
|
|
.rule-title-group,
|
|
.order-cell,
|
|
.product-cell,
|
|
.shop-cell,
|
|
.amount-cell {
|
|
min-width: 0;
|
|
}
|
|
|
|
.label {
|
|
display: block;
|
|
margin-bottom: 5px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.sample-main strong {
|
|
display: block;
|
|
overflow: hidden;
|
|
color: var(--panel-ink);
|
|
font-size: var(--text-base);
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.sample-main small,
|
|
.rule-title-group small,
|
|
.field-help {
|
|
display: block;
|
|
margin-top: 4px;
|
|
overflow: hidden;
|
|
color: var(--panel-muted);
|
|
font-size: var(--text-xs);
|
|
line-height: 1.45;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.imported-mark {
|
|
display: inline-flex;
|
|
justify-content: center;
|
|
padding: 8px 10px;
|
|
border-radius: var(--radius-sm);
|
|
background: #eaf7f0;
|
|
color: #067647;
|
|
font-size: var(--text-sm);
|
|
font-weight: 800;
|
|
}
|
|
|
|
.rules-section {
|
|
gap: 14px;
|
|
}
|
|
|
|
.rule-filter-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.filter-chip,
|
|
.collapse-button {
|
|
border: 1px solid var(--panel-border);
|
|
border-radius: var(--radius-sm);
|
|
background: #fff;
|
|
color: var(--panel-ink);
|
|
cursor: pointer;
|
|
font: inherit;
|
|
}
|
|
|
|
.filter-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-height: 34px;
|
|
padding: 0 11px;
|
|
font-size: var(--text-sm);
|
|
font-weight: 800;
|
|
}
|
|
|
|
.filter-chip strong {
|
|
color: var(--panel-muted);
|
|
font-size: var(--text-xs);
|
|
}
|
|
|
|
.filter-chip--active {
|
|
border-color: rgba(15, 107, 95, 0.32);
|
|
background: #eef7f5;
|
|
color: var(--accent-strong);
|
|
}
|
|
|
|
.filter-chip--active strong {
|
|
color: var(--accent-strong);
|
|
}
|
|
|
|
.rule-card {
|
|
overflow: hidden;
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.rule-card[data-invalid='true'] {
|
|
border-color: rgba(180, 35, 24, 0.36);
|
|
box-shadow: 0 0 0 3px rgba(254, 228, 226, 0.9);
|
|
}
|
|
|
|
.rule-head {
|
|
padding: 12px 14px;
|
|
background: #f8fafc;
|
|
border-bottom: 1px solid var(--panel-line);
|
|
}
|
|
|
|
.rule-summary-button {
|
|
min-width: 0;
|
|
display: grid;
|
|
grid-template-columns: 34px minmax(0, 1fr);
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 0;
|
|
border: 0;
|
|
background: transparent;
|
|
color: inherit;
|
|
cursor: pointer;
|
|
text-align: left;
|
|
}
|
|
|
|
.rule-index {
|
|
display: inline-grid;
|
|
width: 34px;
|
|
height: 34px;
|
|
place-items: center;
|
|
border-radius: var(--radius-sm);
|
|
background: #182230;
|
|
color: #fff;
|
|
font-size: var(--text-sm);
|
|
font-weight: 900;
|
|
}
|
|
|
|
.rule-title-group strong {
|
|
display: block;
|
|
overflow: hidden;
|
|
color: var(--panel-ink);
|
|
font-size: 15px;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.summary-pill,
|
|
.status-pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
max-width: 220px;
|
|
min-height: 28px;
|
|
padding: 0 9px;
|
|
overflow: hidden;
|
|
border-radius: var(--radius-full);
|
|
font-size: var(--text-xs);
|
|
font-weight: 800;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.summary-pill {
|
|
background: #fff;
|
|
color: #475467;
|
|
border: 1px solid var(--panel-border);
|
|
}
|
|
|
|
.status-pill[data-tone='success'] {
|
|
color: #067647;
|
|
background: #eaf7f0;
|
|
}
|
|
|
|
.status-pill[data-tone='warning'] {
|
|
color: var(--warn);
|
|
background: #fff4e5;
|
|
}
|
|
|
|
.status-pill[data-tone='muted'] {
|
|
color: #475467;
|
|
background: #eef2f6;
|
|
}
|
|
|
|
.collapse-button {
|
|
min-height: 28px;
|
|
padding: 0 9px;
|
|
color: var(--accent-strong);
|
|
font-size: var(--text-xs);
|
|
font-weight: 800;
|
|
}
|
|
|
|
.rule-body {
|
|
display: grid;
|
|
gap: 12px;
|
|
padding: 14px;
|
|
background: #fff;
|
|
}
|
|
|
|
.rule-pane {
|
|
display: grid;
|
|
gap: 12px;
|
|
padding: 14px;
|
|
border: 1px solid var(--panel-line);
|
|
border-radius: var(--radius-sm);
|
|
background: #fbfcfe;
|
|
}
|
|
|
|
.pane-heading {
|
|
align-items: center;
|
|
}
|
|
|
|
.switch-grid {
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
}
|
|
|
|
.switch-tile,
|
|
.switch-field {
|
|
display: grid;
|
|
align-content: start;
|
|
gap: 8px;
|
|
}
|
|
|
|
.switch-tile {
|
|
min-height: 72px;
|
|
padding: 11px;
|
|
border: 1px solid var(--panel-line);
|
|
border-radius: var(--radius-sm);
|
|
background: #fff;
|
|
}
|
|
|
|
.switch-tile > span {
|
|
color: #344054;
|
|
font-size: var(--text-xs);
|
|
font-weight: 800;
|
|
}
|
|
|
|
.rule-footer {
|
|
align-items: center;
|
|
color: var(--panel-muted);
|
|
}
|
|
|
|
.empty-block,
|
|
.message-box,
|
|
.loading-band {
|
|
padding: 14px 16px;
|
|
border-radius: var(--radius-sm);
|
|
color: var(--panel-muted);
|
|
}
|
|
|
|
.empty-block--soft,
|
|
.loading-band {
|
|
border: 1px dashed rgba(31, 42, 55, 0.18);
|
|
background: #f8fafc;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.message-box {
|
|
margin: 0;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.message-box--error {
|
|
border-color: rgba(180, 35, 24, 0.22);
|
|
background: #fff5f4;
|
|
color: var(--danger);
|
|
}
|
|
|
|
.message-box--warning {
|
|
border-color: rgba(181, 71, 8, 0.2);
|
|
background: #fff8eb;
|
|
color: var(--warn);
|
|
}
|
|
|
|
.field-block :deep(.el-input-number),
|
|
.field-block :deep(.el-select) {
|
|
width: 100%;
|
|
}
|
|
|
|
.admin-panel :deep(.el-button) {
|
|
min-height: 34px;
|
|
border-radius: var(--radius-sm);
|
|
font-weight: 800;
|
|
}
|
|
|
|
.admin-panel :deep(.el-button--primary) {
|
|
--el-button-bg-color: var(--accent);
|
|
--el-button-border-color: var(--accent);
|
|
--el-button-hover-bg-color: var(--accent-strong);
|
|
--el-button-hover-border-color: var(--accent-strong);
|
|
}
|
|
|
|
.admin-panel :deep(.el-input__wrapper),
|
|
.admin-panel :deep(.el-textarea__inner),
|
|
.admin-panel :deep(.el-select__wrapper) {
|
|
min-height: 36px;
|
|
border-radius: var(--radius-sm);
|
|
background: #fff;
|
|
box-shadow: 0 0 0 1px var(--panel-line) inset;
|
|
}
|
|
|
|
.admin-panel :deep(.el-input__wrapper:hover),
|
|
.admin-panel :deep(.el-textarea__inner:hover),
|
|
.admin-panel :deep(.el-select__wrapper:hover) {
|
|
box-shadow: 0 0 0 1px rgba(15, 107, 95, 0.38) inset;
|
|
}
|
|
|
|
.admin-panel :deep(.el-input__wrapper.is-focus),
|
|
.admin-panel :deep(.el-textarea__inner:focus),
|
|
.admin-panel :deep(.el-select__wrapper.is-focused) {
|
|
box-shadow:
|
|
0 0 0 1px var(--accent) inset,
|
|
0 0 0 3px rgba(15, 107, 95, 0.12);
|
|
}
|
|
|
|
.admin-panel :deep(.el-input-number .el-input__wrapper) {
|
|
padding-left: 8px;
|
|
}
|
|
|
|
.admin-panel :deep(.el-input-number__decrease),
|
|
.admin-panel :deep(.el-input-number__increase) {
|
|
border-color: var(--panel-line);
|
|
background: #f8fafc;
|
|
}
|
|
|
|
.admin-panel :deep(.el-switch.is-checked .el-switch__core) {
|
|
border-color: var(--accent);
|
|
background-color: var(--accent);
|
|
}
|
|
|
|
@media (max-width: 1200px) {
|
|
.lookup-grid {
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
}
|
|
|
|
.field-span-2 {
|
|
grid-column: span 2;
|
|
}
|
|
|
|
.sample-main {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.hero-main,
|
|
.section-heading,
|
|
.rules-heading,
|
|
.rule-head,
|
|
.pane-heading,
|
|
.rule-footer {
|
|
display: grid;
|
|
}
|
|
|
|
.hero-actions,
|
|
.toolbar-actions,
|
|
.sample-metrics,
|
|
.rule-head-meta {
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.status-strip,
|
|
.lookup-grid,
|
|
.cols-4,
|
|
.cols-3,
|
|
.switch-grid {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.file-status,
|
|
.field-span-2 {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.sample-card {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.hero-card,
|
|
.work-section {
|
|
padding: 14px;
|
|
}
|
|
|
|
.status-strip,
|
|
.lookup-grid,
|
|
.cols-4,
|
|
.cols-3,
|
|
.switch-grid,
|
|
.sample-main {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.hero-actions :deep(.el-button),
|
|
.toolbar-actions :deep(.el-button),
|
|
.sample-import-button {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
/* ============================================================
|
|
从 admin-config-pages.css 继承的共享结构样式,本页仅覆盖主题
|
|
============================================================ */
|
|
|
|
/* ---------- 主题覆写:标题颜色 ---------- */
|
|
.panel-header h1,
|
|
.panel-header-copy h1,
|
|
.section-title-row h3 {
|
|
color: #1d3555;
|
|
}
|
|
|
|
.panel-header p,
|
|
.panel-header-copy p,
|
|
.section-title-row p {
|
|
color: #64748b;
|
|
line-height: 1.55;
|
|
}
|
|
|
|
/* ---------- 主题覆写:chip 标签 (蓝色) ---------- */
|
|
.header-tag,
|
|
.mini-stat-chip,
|
|
.overview-note {
|
|
color: #175cd3;
|
|
}
|
|
|
|
/* ---------- 主题覆写:卡片圆角 ---------- */
|
|
.overview-card,
|
|
.table-card,
|
|
.empty-block,
|
|
.error-copy {
|
|
border-radius: 20px;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.overview-file code {
|
|
background: rgba(15, 23, 42, 0.05);
|
|
color: #1d3555;
|
|
}
|
|
|
|
/* ---------- 主题覆写:概览统计 ---------- */
|
|
.overview-stat {
|
|
border-radius: 16px;
|
|
}
|
|
|
|
.overview-stat span {
|
|
color: #64748b;
|
|
}
|
|
|
|
.overview-stat strong {
|
|
color: #1d3555;
|
|
font-size: var(--text-2xl);
|
|
}
|
|
|
|
/* ---------- 查询工具栏 (本页特有) ---------- */
|
|
.lookup-toolbar {
|
|
display: grid;
|
|
grid-template-columns: minmax(180px, 1fr) 110px 130px 180px;
|
|
gap: 12px;
|
|
align-items: end;
|
|
}
|
|
|
|
/* ---------- 字段块 ---------- */
|
|
.field-block span {
|
|
color: #1d3555;
|
|
}
|
|
|
|
.field-help,
|
|
.toolbar-hint,
|
|
.cell-subtle {
|
|
color: #64748b;
|
|
}
|
|
|
|
.field-wide {
|
|
grid-column: span 2;
|
|
}
|
|
|
|
/* ---------- 文本输入 (蓝色聚焦环) ---------- */
|
|
.text-input {
|
|
min-height: 36px;
|
|
padding: 8px 12px;
|
|
border: 1px solid rgba(86, 108, 138, 0.22);
|
|
background: #fff;
|
|
color: #1d3555;
|
|
outline: none;
|
|
transition: border-color 0.16s ease, box-shadow 0.16s ease;
|
|
}
|
|
|
|
.text-input:focus {
|
|
border-color: rgba(15, 93, 216, 0.42);
|
|
box-shadow: 0 0 0 4px rgba(15, 93, 216, 0.08);
|
|
}
|
|
|
|
.text-input--readonly,
|
|
.text-input:disabled {
|
|
background: #f8fafc;
|
|
color: #64748b;
|
|
}
|
|
|
|
.textarea-input {
|
|
min-height: 72px;
|
|
resize: vertical;
|
|
}
|
|
|
|
/* ---------- 主题覆写:校验/错误 ---------- */
|
|
.validation-banner,
|
|
.binding-inline-error {
|
|
background: #fff5f4;
|
|
border: 1px solid rgba(180, 35, 24, 0.14);
|
|
color: #b42318;
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
.error-copy {
|
|
color: #b42318;
|
|
}
|
|
|
|
/* ---------- 主题覆写:表格 ---------- */
|
|
.data-table th,
|
|
.data-table td {
|
|
padding: 11px 10px;
|
|
}
|
|
|
|
.data-table th {
|
|
color: #64748b;
|
|
font-size: var(--text-xs);
|
|
}
|
|
|
|
.cell-stack strong {
|
|
color: #1d3555;
|
|
}
|
|
|
|
/* ---------- 主题覆写:绑定卡片 ---------- */
|
|
.binding-card {
|
|
border-radius: 16px;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.binding-title-row {
|
|
color: #1d3555;
|
|
}
|
|
|
|
.binding-subtle {
|
|
color: #64748b;
|
|
}
|
|
|
|
.binding-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
.collapse-button {
|
|
color: #1d3555;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.binding-collapsed-preview {
|
|
padding: 10px 12px;
|
|
border-radius: 14px;
|
|
background: rgba(255, 255, 255, 0.78);
|
|
color: #64748b;
|
|
font-size: var(--text-xs);
|
|
}
|
|
|
|
.checkbox-line {
|
|
color: #1d3555;
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
.binding-actions {
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.toolbar-hint {
|
|
margin: 10px 0 0;
|
|
}
|
|
|
|
.empty-inline {
|
|
padding: 14px;
|
|
color: #64748b;
|
|
text-align: center;
|
|
}
|
|
|
|
/* ---------- 映射编辑 (本页特有) ---------- */
|
|
.mapping-editor {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr);
|
|
gap: 12px;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.mapping-panel {
|
|
display: grid;
|
|
align-content: start;
|
|
gap: 12px;
|
|
padding: 14px;
|
|
border-radius: 16px;
|
|
border: 1px solid rgba(148, 163, 184, 0.18);
|
|
}
|
|
|
|
.mapping-panel--external {
|
|
background: rgba(239, 246, 255, 0.72);
|
|
}
|
|
|
|
.mapping-panel--internal {
|
|
background: rgba(255, 255, 255, 0.86);
|
|
border-color: rgba(15, 93, 216, 0.16);
|
|
}
|
|
|
|
.mapping-panel-head {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
align-items: baseline;
|
|
}
|
|
|
|
.mapping-panel-head strong {
|
|
color: #1d3555;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.mapping-panel-head span {
|
|
color: #64748b;
|
|
font-size: var(--text-xs);
|
|
}
|
|
|
|
.mapping-grid,
|
|
.mapping-extra {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 10px 12px;
|
|
}
|
|
|
|
.mapping-arrow {
|
|
display: grid;
|
|
place-items: center;
|
|
color: #175cd3;
|
|
font-size: var(--text-xs);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.mapping-arrow span {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 30px;
|
|
min-width: 54px;
|
|
padding: 0 10px;
|
|
border-radius: var(--radius-full);
|
|
background: rgba(15, 93, 216, 0.08);
|
|
border: 1px solid rgba(15, 93, 216, 0.14);
|
|
}
|
|
|
|
.mapping-extra {
|
|
margin-top: 12px;
|
|
padding-top: 12px;
|
|
border-top: 1px dashed rgba(86, 108, 138, 0.18);
|
|
}
|
|
|
|
/* ---------- mini-stat-chip 交互态 (本页特有) ---------- */
|
|
.mini-stat-chip--button {
|
|
border: 1px solid rgba(15, 93, 216, 0.12);
|
|
cursor: pointer;
|
|
font: inherit;
|
|
}
|
|
|
|
.mini-stat-chip--active {
|
|
border-color: rgba(15, 93, 216, 0.32);
|
|
background: rgba(15, 93, 216, 0.14);
|
|
}
|
|
|
|
.overview-label {
|
|
color: #64748b;
|
|
font-size: var(--text-xs);
|
|
}
|
|
|
|
/* ---------- Element Plus 蓝色主题覆盖 ---------- */
|
|
.admin-panel :deep(.el-button) {
|
|
min-height: 34px;
|
|
border-radius: var(--radius-full);
|
|
}
|
|
|
|
.admin-panel :deep(.el-button--primary) {
|
|
--el-button-bg-color: #3a91f7;
|
|
--el-button-border-color: #3a91f7;
|
|
--el-button-hover-bg-color: #0f5dd8;
|
|
--el-button-hover-border-color: #0f5dd8;
|
|
}
|
|
|
|
/* ---------- 响应式 ---------- */
|
|
@media (max-width: 900px) {
|
|
.overview-stats,
|
|
.lookup-toolbar,
|
|
.binding-grid,
|
|
.mapping-editor {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.mapping-arrow {
|
|
display: none;
|
|
}
|
|
|
|
.field-wide {
|
|
grid-column: span 2;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.panel-header,
|
|
.section-title-row,
|
|
.section-header-tools,
|
|
.binding-actions,
|
|
.binding-header {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.overview-stats,
|
|
.lookup-toolbar,
|
|
.binding-grid,
|
|
.mapping-editor,
|
|
.mapping-grid,
|
|
.mapping-extra {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.field-wide {
|
|
grid-column: auto;
|
|
}
|
|
}
|
|
.section-title-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.panel-header {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.panel-header-copy h1,
|
|
.section-title-row h3 {
|
|
margin: 0;
|
|
color: #1d3555;
|
|
}
|
|
|
|
.panel-header-copy p,
|
|
.section-title-row p {
|
|
margin: 6px 0 0;
|
|
color: #64748b;
|
|
line-height: 1.55;
|
|
}
|
|
|
|
.header-tags,
|
|
.header-actions,
|
|
.section-header-tools,
|
|
.section-mini-stats,
|
|
.section-action-group,
|
|
.binding-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
align-items: center;
|
|
}
|
|
|
|
.header-actions,
|
|
.section-header-tools {
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.header-tag,
|
|
.mini-stat-chip,
|
|
.overview-note {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
min-height: 30px;
|
|
padding: 0 12px;
|
|
border-radius: var(--radius-full);
|
|
background: rgba(15, 93, 216, 0.08);
|
|
color: #175cd3;
|
|
font-size: var(--text-xs);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.mini-stat-chip--button {
|
|
border: 1px solid rgba(15, 93, 216, 0.12);
|
|
cursor: pointer;
|
|
font: inherit;
|
|
}
|
|
|
|
.mini-stat-chip--active {
|
|
border-color: rgba(15, 93, 216, 0.32);
|
|
background: rgba(15, 93, 216, 0.14);
|
|
}
|
|
|
|
.overview-card,
|
|
.table-card,
|
|
.empty-block,
|
|
.error-copy {
|
|
padding: 16px;
|
|
border-radius: 20px;
|
|
background: rgba(255, 255, 255, 0.94);
|
|
border: 1px solid rgba(86, 108, 138, 0.1);
|
|
box-shadow: none;
|
|
}
|
|
|
|
.table-card--dense {
|
|
padding: 14px 16px 16px;
|
|
}
|
|
|
|
.overview-card {
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
|
|
.overview-file {
|
|
display: grid;
|
|
gap: 6px;
|
|
}
|
|
|
|
.overview-label {
|
|
color: #64748b;
|
|
font-size: var(--text-xs);
|
|
}
|
|
|
|
.overview-file code {
|
|
display: inline-flex;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
padding: 8px 12px;
|
|
border-radius: 14px;
|
|
background: rgba(15, 23, 42, 0.05);
|
|
color: #1d3555;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.overview-stats {
|
|
display: grid;
|
|
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
gap: 10px;
|
|
}
|
|
|
|
.overview-stat {
|
|
display: grid;
|
|
gap: 4px;
|
|
padding: 12px 14px;
|
|
border-radius: 16px;
|
|
background: #f8fafc;
|
|
border: 1px solid rgba(148, 163, 184, 0.14);
|
|
}
|
|
|
|
.overview-stat span {
|
|
color: #64748b;
|
|
font-size: var(--text-xs);
|
|
}
|
|
|
|
.overview-stat strong {
|
|
color: #1d3555;
|
|
font-size: var(--text-2xl);
|
|
line-height: 1;
|
|
}
|
|
|
|
.overview-notes {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.section-title-row--tight {
|
|
align-items: center;
|
|
}
|
|
|
|
.lookup-toolbar {
|
|
display: grid;
|
|
grid-template-columns: minmax(180px, 1fr) 110px 130px 180px;
|
|
gap: 12px;
|
|
align-items: end;
|
|
}
|
|
|
|
.field-wide {
|
|
grid-column: span 2;
|
|
}
|
|
|
|
.field-block {
|
|
min-width: 0;
|
|
display: grid;
|
|
gap: 6px;
|
|
}
|
|
|
|
.field-block span {
|
|
color: #1d3555;
|
|
font-size: var(--text-xs);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.field-block--action {
|
|
align-content: end;
|
|
}
|
|
|
|
.field-block--action :deep(.el-button) {
|
|
width: 100%;
|
|
}
|
|
|
|
.text-input {
|
|
width: 100%;
|
|
min-height: 36px;
|
|
padding: 8px 12px;
|
|
border: 1px solid rgba(86, 108, 138, 0.22);
|
|
border-radius: 14px;
|
|
background: #fff;
|
|
color: #1d3555;
|
|
outline: none;
|
|
transition: border-color 0.16s ease, box-shadow 0.16s ease;
|
|
}
|
|
|
|
.text-input:focus {
|
|
border-color: rgba(15, 93, 216, 0.42);
|
|
box-shadow: 0 0 0 4px rgba(15, 93, 216, 0.08);
|
|
}
|
|
|
|
.text-input--readonly,
|
|
.text-input:disabled {
|
|
background: #f8fafc;
|
|
color: #64748b;
|
|
}
|
|
|
|
.textarea-input {
|
|
min-height: 72px;
|
|
resize: vertical;
|
|
}
|
|
|
|
.field-help,
|
|
.toolbar-hint,
|
|
.cell-subtle {
|
|
color: #64748b;
|
|
font-size: var(--text-xs);
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.toolbar-hint {
|
|
margin: 10px 0 0;
|
|
}
|
|
|
|
.error-copy,
|
|
.validation-banner,
|
|
.binding-inline-error {
|
|
color: #b42318;
|
|
}
|
|
|
|
.validation-banner,
|
|
.binding-inline-error {
|
|
margin: 10px 0 0;
|
|
padding: 10px 12px;
|
|
border-radius: 14px;
|
|
background: #fff5f4;
|
|
border: 1px solid rgba(180, 35, 24, 0.14);
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
.data-table {
|
|
width: 100%;
|
|
margin-top: 12px;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.data-table th,
|
|
.data-table td {
|
|
padding: 11px 10px;
|
|
text-align: left;
|
|
border-bottom: 1px solid rgba(86, 108, 138, 0.08);
|
|
vertical-align: top;
|
|
}
|
|
|
|
.data-table th {
|
|
color: #64748b;
|
|
font-size: var(--text-xs);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.cell-stack {
|
|
display: grid;
|
|
gap: 4px;
|
|
}
|
|
|
|
.cell-stack strong {
|
|
color: #1d3555;
|
|
}
|
|
|
|
.empty-inline {
|
|
padding: 14px;
|
|
color: #64748b;
|
|
text-align: center;
|
|
}
|
|
|
|
.binding-card {
|
|
margin-top: 12px;
|
|
padding: 14px;
|
|
border-radius: 16px;
|
|
background: #f8fafc;
|
|
border: 1px solid rgba(148, 163, 184, 0.18);
|
|
box-shadow: none;
|
|
}
|
|
|
|
.binding-card--invalid {
|
|
border-color: rgba(220, 38, 38, 0.3);
|
|
box-shadow: 0 0 0 4px rgba(254, 226, 226, 0.85);
|
|
}
|
|
|
|
.binding-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
align-items: flex-start;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.binding-summary {
|
|
display: grid;
|
|
gap: 4px;
|
|
}
|
|
|
|
.binding-title-row {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
color: #1d3555;
|
|
}
|
|
|
|
.binding-subtle {
|
|
color: #64748b;
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
.binding-status-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
border-radius: var(--radius-full);
|
|
padding: 2px 10px;
|
|
background: #fff1f2;
|
|
color: #be123c;
|
|
font-size: var(--text-xs);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.binding-status-chip--done {
|
|
background: #ecfdf3;
|
|
color: #027a48;
|
|
}
|
|
|
|
.collapse-button {
|
|
border: 1px solid rgba(86, 108, 138, 0.18);
|
|
background: rgba(255, 255, 255, 0.96);
|
|
color: #1d3555;
|
|
border-radius: var(--radius-full);
|
|
padding: 7px 12px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.binding-collapsed-preview {
|
|
display: grid;
|
|
gap: 6px;
|
|
padding: 10px 12px;
|
|
border-radius: 14px;
|
|
background: rgba(255, 255, 255, 0.78);
|
|
color: #64748b;
|
|
font-size: var(--text-xs);
|
|
}
|
|
|
|
.binding-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
.mapping-editor {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr);
|
|
gap: 12px;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.mapping-panel {
|
|
display: grid;
|
|
align-content: start;
|
|
gap: 12px;
|
|
padding: 14px;
|
|
border-radius: 16px;
|
|
border: 1px solid rgba(148, 163, 184, 0.18);
|
|
}
|
|
|
|
.mapping-panel--external {
|
|
background: rgba(239, 246, 255, 0.72);
|
|
}
|
|
|
|
.mapping-panel--internal {
|
|
background: rgba(255, 255, 255, 0.86);
|
|
border-color: rgba(15, 93, 216, 0.16);
|
|
}
|
|
|
|
.mapping-panel-head {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
align-items: baseline;
|
|
}
|
|
|
|
.mapping-panel-head strong {
|
|
color: #1d3555;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.mapping-panel-head span {
|
|
color: #64748b;
|
|
font-size: var(--text-xs);
|
|
}
|
|
|
|
.mapping-grid,
|
|
.mapping-extra {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 10px 12px;
|
|
}
|
|
|
|
.mapping-arrow {
|
|
display: grid;
|
|
place-items: center;
|
|
color: #175cd3;
|
|
font-size: var(--text-xs);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.mapping-arrow span {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 30px;
|
|
min-width: 54px;
|
|
padding: 0 10px;
|
|
border-radius: var(--radius-full);
|
|
background: rgba(15, 93, 216, 0.08);
|
|
border: 1px solid rgba(15, 93, 216, 0.14);
|
|
}
|
|
|
|
.mapping-extra {
|
|
margin-top: 12px;
|
|
padding-top: 12px;
|
|
border-top: 1px dashed rgba(86, 108, 138, 0.18);
|
|
}
|
|
|
|
.checkbox-line {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
color: #1d3555;
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
.binding-actions {
|
|
justify-content: space-between;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.admin-panel :deep(.el-button) {
|
|
min-height: 34px;
|
|
border-radius: var(--radius-full);
|
|
}
|
|
|
|
.admin-panel :deep(.el-button--primary) {
|
|
--el-button-bg-color: #3a91f7;
|
|
--el-button-border-color: #3a91f7;
|
|
--el-button-hover-bg-color: #0f5dd8;
|
|
--el-button-hover-border-color: #0f5dd8;
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.overview-stats,
|
|
.lookup-toolbar,
|
|
.binding-grid,
|
|
.mapping-editor {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.mapping-arrow {
|
|
display: none;
|
|
}
|
|
|
|
.field-wide {
|
|
grid-column: span 2;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.panel-header,
|
|
.section-title-row,
|
|
.section-header-tools,
|
|
.binding-actions,
|
|
.binding-header {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.overview-stats,
|
|
.lookup-toolbar,
|
|
.binding-grid,
|
|
.mapping-editor,
|
|
.mapping-grid,
|
|
.mapping-extra {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.field-wide {
|
|
grid-column: auto;
|
|
}
|
|
}
|