再次优化css等

This commit is contained in:
yml2213
2026-05-15 03:59:45 +08:00
parent 2f6380ad4d
commit c6eb0d60b1
8 changed files with 1063 additions and 807 deletions
@@ -1,3 +1,5 @@
@import '../../styles/admin-config-pages.css';
.admin-panel {
--panel-ink: var(--text-primary);
--panel-muted: var(--text-secondary);
@@ -651,8 +653,336 @@
}
}
/* ============================================================
从 admin-config-pages.css 继承的共享结构样式,本页仅覆盖主题
============================================================ */
.panel-header,
/* ---------- 主题覆写:标题颜色 ---------- */
.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;