用中性灰底 + 单一强调色重做后台视觉,并集中到一套令牌: - 新增 apps/admin/src/lib/theme.ts,通过 ConfigProvider 注入主题令牌 - 新增 apps/admin/src/styles/admin.css 与 AdminSection、MetricCard、StatusTag 组件 - 侧栏改白底浅色并补图标,顶栏改 56px 白底,内容区最大宽 1200px - 全部页面接入状态标签,antd 原生彩色 Tag 与内联色值清零 - 登录与改密页、加载态骨架屏、错误提示条统一 - brand 页两个 Tab 统一为白卡片容器,消除双标题与宽度不一致 设计规范见 apps/admin/design.md。
28 lines
488 B
CSS
28 lines
488 B
CSS
.template-preview {
|
|
position: relative;
|
|
width: 100%;
|
|
height: min(72vh, 760px);
|
|
min-height: 560px;
|
|
overflow: hidden;
|
|
border: 1px solid var(--admin-border);
|
|
background: var(--admin-fill);
|
|
}
|
|
|
|
.template-preview iframe {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
border: 0;
|
|
background: #fff;
|
|
transition: opacity 120ms ease;
|
|
}
|
|
|
|
.template-preview__loading {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 1;
|
|
display: grid;
|
|
place-items: center;
|
|
background: #fff;
|
|
}
|