Files
Jyotisha/frontend/src/app/admin/admin.css
T
ClaudeandClaude Opus 5.5 0aa17da25d
Independent Staging Quality Gate / publish (push) Canceled after 0s
Independent Staging Quality Gate / validate-python (push) Canceled after 4m11s
Independent Staging Quality Gate / validate-frontend (push) Canceled after 4m2s
fix(ui): every modal overlay is the frosted veil — Dialog, AlertDialog, Sheet, Drawer and admin antd masks (BUG-2276)
The owner (2026-11-23): 「只要是出现弹窗…背景没有磨砂的,需要加上这个」. The four kit overlays
used shadcn's bg-black/10, so the page showed through the 星盘类型 dialog and every other
modal. They now share .modal-scrim: the annual start veil's canvas at 72% plus a 6px blur,
near-solid without backdrop-filter or with reduced transparency. BUG-2252's one-off rule
for the report start dialog is folded in; the admin's antd masks get the same veil.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-24 00:28:40 +08:00

78 lines
4.5 KiB
CSS

:root {
--font-body: var(--font-inter, Inter), system-ui, sans-serif;
--font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}
html, body {
width: 100%;
min-height: 100%;
margin: 0;
}
.admin-app-shell {
min-height: 100dvh;
background: #f3f2ee;
color: #1d1d1f;
font-family: var(--font-body);
}
.admin-app-shell .ant-layout { background: #f3f2ee; }
.admin-app-shell .ant-layout-sider { border-right: 1px solid #d8d6cf; box-shadow: none !important; }
.admin-app-shell .ant-layout-header { border-bottom: 1px solid #d8d6cf; box-shadow: none !important; }
.admin-app-shell .ant-layout-content { padding: 22px; }
.admin-app-shell .ant-menu { border-inline-end: 0 !important; background: transparent !important; }
.admin-app-shell .ant-menu-item, .admin-app-shell .ant-menu-submenu-title { margin-inline: 8px; width: calc(100% - 16px); }
.admin-app-shell .ant-card { border-color: #d8d6cf; box-shadow: none !important; }
.admin-app-shell .ant-card-head { border-bottom-color: #d8d6cf; }
.admin-app-shell .ant-card .ant-card { border-radius: 0; }
.admin-app-shell .ant-card .ant-card:not(:last-child) { border-bottom: 0; }
.admin-app-shell .ant-list-bordered { border-color: #d8d6cf; border-radius: 6px; }
.admin-app-shell .ant-table-wrapper .ant-table { background: #fbfaf7; }
.admin-app-shell .ant-table-wrapper .ant-table-container { border-radius: 6px; }
.admin-app-shell .ant-table-wrapper .ant-table-thead > tr > th { font-size: 12px; font-weight: 650; }
.admin-app-shell .ant-table-wrapper .ant-table-cell { line-height: 1.45; }
.admin-app-shell .ant-tag { margin-inline-end: 4px; border-radius: 4px; font-weight: 550; }
.admin-app-shell .ant-alert { border-radius: 6px; box-shadow: none; }
.admin-app-shell .ant-statistic-title { color: #5f5f59; font-size: 12px; }
.admin-app-shell .ant-statistic-content { font-size: 22px; font-weight: 650; }
.admin-app-shell .ant-typography h1, .admin-app-shell h1.ant-typography { font-family: var(--font-body); font-size: 26px; font-weight: 680; letter-spacing: -.025em; }
.admin-app-shell .ant-typography h2, .admin-app-shell h2.ant-typography { font-family: var(--font-body); font-size: 21px; font-weight: 650; letter-spacing: -.015em; }
.admin-app-shell .ant-typography h3, .admin-app-shell h3.ant-typography { font-family: var(--font-body); font-size: 17px; font-weight: 650; }
.admin-app-shell code { font-family: var(--font-mono); }
.admin-text-list { max-width: 680px; color: #5f5f59; line-height: 1.65; white-space: normal; overflow-wrap: anywhere; }
.admin-loading { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 12px; background: #f3f2ee; color: #5f5f59; }
@media (max-width: 767px) {
.admin-app-shell .ant-layout-content { padding: 14px; }
/* BUG-1916:手机上左上角的菜单按钮压在页面第一行上,内容区上方留出按钮的高度。 */
.admin-app-shell .ant-layout-content { padding-top: 56px; }
}
/* 「更新说明」 editor (issue #331): the form and a live preview side by side on wide screens. */
.admin-release-note-editor { display: grid; gap: 16px; }
@media (min-width: 900px) {
.admin-release-note-editor { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.admin-release-note-preview { position: sticky; top: 0; }
}
/* #330: the small text preview under the success fields of 「新建兑换码」. */
.admin-redeem-preview { display: grid; gap: 2px; justify-items: center; text-align: center; padding: 12px; margin-bottom: 16px; border: 1px dashed #d9d9d9; border-radius: 8px; }
/* BUG-2276 (产品负责人 2026-11-23): antd modal, drawer and image-preview masks use the same frosted veil as the
product's .modal-scrim (globals.css): the admin canvas #f3f2ee at 72% plus a 6px blur, not antd's plain
45% black. 原值:antd 默认 colorBgMask;新值:磨砂;原因:弹窗背后的页面看起来太乱。 */
.ant-modal-root .ant-modal-mask,
.ant-drawer .ant-drawer-mask,
.ant-image-preview-root .ant-image-preview-mask {
background: rgba(243, 242, 238, .72);
-webkit-backdrop-filter: blur(6px);
backdrop-filter: blur(6px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
.ant-modal-root .ant-modal-mask,
.ant-drawer .ant-drawer-mask,
.ant-image-preview-root .ant-image-preview-mask { background: rgba(243, 242, 238, .92); }
}
@media (prefers-reduced-transparency: reduce) {
.ant-modal-root .ant-modal-mask,
.ant-drawer .ant-drawer-mask,
.ant-image-preview-root .ant-image-preview-mask { background: rgba(243, 242, 238, .94); -webkit-backdrop-filter: none; backdrop-filter: none; }
}