feat: 完善后台设计语言细节

- 统一说明文案层级:Typography.Paragraph 次要文案迁移到 admin-section-description
- 状态色补齐边框与中间调令牌,Alert/错误条/Descriptions 与 StatusTag 同源
- 咨询详情描述列表去表格线,改为键值展示并统一令牌
- 新增 BrandMark,侧栏与登录页标识改用品牌首字
- 信任内容改用列表行,空状态、表格骨架屏、主按钮脏检查落地
- design.md 同步令牌映射、切换控件选型与组件清单
This commit is contained in:
que01 committed 2026-10-14 11:21:31 +08:00
1 parent 2f26828f09
commit 3ef46b0aa8
25 files changed
+836 -393

No files matched your search

+170 -9
View File
@@ -16,14 +16,19 @@
--admin-fill-quiet: #fafafb;
--admin-tone-success-bg: #ecfdf3;
--admin-tone-success-border: #abefc6;
--admin-tone-success-fg: #067647;
--admin-tone-warning-bg: #fffaeb;
--admin-tone-warning-border: #fedf89;
--admin-tone-warning-fg: #b54708;
--admin-tone-error-bg: #fef3f2;
--admin-tone-error-border: #fbd5d1;
--admin-tone-error-fg: #b42318;
--admin-tone-neutral-bg: #f2f4f7;
--admin-tone-neutral-border: #e7e9ec;
--admin-tone-neutral-fg: #475467;
--admin-tone-info-bg: #eff4ff;
--admin-tone-info-border: #b2ccff;
--admin-tone-info-fg: #2563eb;
}
@@ -217,6 +222,14 @@ body {
color: var(--admin-text);
}
.admin-subhead {
margin: 0;
font-size: 15px;
font-weight: 600;
line-height: 1.45;
color: var(--admin-text);
}
.admin-section-description {
margin: 6px 0 0;
font-size: 13px;
@@ -266,14 +279,6 @@ body {
overflow: hidden;
}
.admin-empty-inline {
padding: 24px 0;
text-align: center;
font-size: 13px;
color: var(--admin-text-tertiary);
margin: 0;
}
/* 列表行 */
.admin-list {
margin: 0;
@@ -281,6 +286,38 @@ body {
list-style: none;
}
.admin-record {
gap: 12px;
}
.admin-record__thumb {
flex: none;
display: inline-flex;
align-items: center;
justify-content: center;
width: 48px;
height: 48px;
border-radius: 8px;
border: 1px solid var(--admin-border);
background: var(--admin-fill);
color: var(--admin-text-tertiary);
font-size: 18px;
overflow: hidden;
}
.admin-record__thumb img {
width: 100%;
height: 100%;
object-fit: cover;
}
.admin-record__actions {
flex: none;
display: flex;
align-items: center;
gap: 4px;
}
.admin-row {
display: flex;
align-items: center;
@@ -490,6 +527,11 @@ body {
background: var(--swatch-color, transparent);
}
/* 描述列表(键值展示) */
.admin-descriptions .ant-descriptions-item-label {
font-size: 13px;
}
/* 状态标签 */
.admin-status-tag {
display: inline-flex;
@@ -548,9 +590,128 @@ body {
}
/* 反馈 */
.admin-empty {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
padding: 40px 24px;
}
.admin-empty--compact {
padding: 24px 16px;
}
.admin-empty__icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
margin-bottom: 12px;
border-radius: 10px;
background: var(--admin-fill);
color: var(--admin-text-tertiary);
font-size: 20px;
}
.admin-empty--compact .admin-empty__icon {
width: 32px;
height: 32px;
margin-bottom: 8px;
font-size: 16px;
}
.admin-empty__title {
margin: 0;
font-size: 15px;
font-weight: 600;
line-height: 1.5;
color: var(--admin-text);
}
.admin-empty--compact .admin-empty__title {
font-size: 14px;
}
.admin-empty__description {
margin: 6px 0 0;
max-width: 360px;
font-size: 13px;
line-height: 1.6;
color: var(--admin-text-secondary);
}
.admin-empty__action {
margin-top: 16px;
}
.admin-empty--compact .admin-empty__action {
margin-top: 12px;
}
.admin-table-skeleton {
border-top: 1px solid var(--admin-divider);
}
.admin-table-skeleton__row {
display: flex;
align-items: center;
min-height: 52px;
padding: 0 16px;
border-bottom: 1px solid var(--admin-divider);
}
.admin-table-skeleton__row:last-child {
border-bottom: 0;
}
.admin-table-skeleton__row .ant-skeleton {
width: 100%;
}
.admin-table-skeleton__row .ant-skeleton-input {
width: 60%;
min-width: 120px;
}
.admin-list-skeleton {
display: flex;
flex-direction: column;
}
.admin-list-skeleton__row {
display: flex;
align-items: center;
gap: 12px;
padding: 14px 0;
border-bottom: 1px solid var(--admin-divider);
}
.admin-list-skeleton__row:last-child {
border-bottom: 0;
}
.admin-list-skeleton__thumb .ant-skeleton-input {
width: 48px;
min-width: 48px;
height: 48px;
}
.admin-list-skeleton__body {
flex: 1;
display: grid;
gap: 8px;
min-width: 0;
}
.admin-list-skeleton__body .ant-skeleton-input:last-child {
width: 45%;
}
.admin-error-note {
padding: 12px 16px;
border: 1px solid #fbd5d1;
border: 1px solid var(--admin-tone-error-border);
border-radius: 8px;
background: var(--admin-tone-error-bg);
color: var(--admin-tone-error-fg);