153 lines
10 KiB
CSS
153 lines
10 KiB
CSS
/* Shared finish for every palette. Layout dimensions remain in the existing styles. */
|
|
:root {
|
|
--control-radius: 4px;
|
|
--panel-radius: 5px;
|
|
--surface-subtle: #f5f7fb;
|
|
--surface-elevated: #fff;
|
|
--table-head: color-mix(in srgb, var(--surface) 55%, var(--background));
|
|
--table-combined: color-mix(in srgb, var(--blue-soft) 62%, var(--surface));
|
|
--table-bright-head: color-mix(in srgb, var(--teal) 12%, var(--surface));
|
|
--table-row-alt: color-mix(in srgb, var(--surface) 97%, var(--blue-soft));
|
|
--panel-shadow: 0 2px 7px #21375605;
|
|
}
|
|
:root[data-workspace-theme='dark'] {
|
|
--table-head: #222d42;
|
|
--table-combined: #1b2339;
|
|
--table-bright-head: #213b43;
|
|
--table-row-alt: #111b2d;
|
|
--panel-shadow: none;
|
|
}
|
|
body, .app-shell, .main-column { color: var(--ink); background: var(--background); }
|
|
.panel, .metric-strip { box-shadow: var(--panel-shadow); }
|
|
.metric-strip { border-radius: var(--panel-radius); overflow: hidden; }
|
|
.nav-item { border-radius: var(--control-radius); }
|
|
.nav-item.active { box-shadow: inset 3px 0 var(--blue); }
|
|
.nav-group-label { color: var(--ink); }
|
|
.nav-item .anticon { color: var(--muted-ink); }
|
|
.nav-item.active .anticon { color: var(--blue-dark); }
|
|
.metric-value { font-weight: 700; font-variant-numeric: tabular-nums lining-nums; }
|
|
.metric-card small { color: var(--muted-ink); }
|
|
.metric-table-scroll .ant-table { background: var(--surface); color: var(--ink); }
|
|
.metric-table-scroll .ant-table-thead > tr > th { background: var(--table-head); color: var(--ink); }
|
|
.metric-table-scroll .ant-table-tbody > tr > td { background: var(--surface); color: var(--ink); }
|
|
.metric-table-scroll .ant-table-tbody > tr:nth-child(even) > td { background: var(--table-row-alt); }
|
|
.metric-table-scroll .ant-table-tbody > tr:hover > td,
|
|
.metric-table-scroll .ant-table-tbody > tr.ant-table-row:hover > td { background: var(--hover); }
|
|
.ant-segmented { border-radius: var(--control-radius); }
|
|
.ant-segmented .ant-segmented-item-selected { color: var(--blue-dark); background: var(--blue-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 22%, transparent); }
|
|
.ant-segmented .ant-segmented-item, .ant-segmented .ant-segmented-thumb { border-radius: calc(var(--control-radius) - 1px); }
|
|
.ant-btn-primary { box-shadow: 0 1px 2px #101b3010; }
|
|
.ant-btn:focus-visible, .nav-item:focus-visible, .metric-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
|
|
.workspace-theme-dropdown .ant-dropdown-menu { border-radius: var(--panel-radius); }
|
|
.workspace-theme-dropdown .ant-dropdown-menu-item { border-radius: calc(var(--control-radius) - 1px); }
|
|
:root[data-workspace-theme='dark'] .panel,
|
|
:root[data-workspace-theme='dark'] .metric-strip { box-shadow: none; }
|
|
|
|
/* 查询表格统一阶段语义配色,亮片沿用原黑片蓝色,综合合格率沿用原亮片绿色。 */
|
|
.query-page {
|
|
--query-black: #20252b;
|
|
--query-bright: var(--blue-dark);
|
|
--query-combined: var(--teal);
|
|
--table-combined: color-mix(in srgb, var(--query-combined) 5%, var(--surface));
|
|
--table-bright-head: color-mix(in srgb, var(--query-bright) 10%, var(--surface));
|
|
--table-black-head: color-mix(in srgb, var(--query-black) 7%, var(--surface));
|
|
}
|
|
:root[data-workspace-theme='dark'] .query-page {
|
|
/* 深色底上的黑片使用中性浅灰,保留黑白体系及文字对比度。 */
|
|
--query-black: #d5d8de;
|
|
}
|
|
:root .query-page .metric-table-scroll :is(.stage-heading.black, .rate-cell.black, .rate-cell.black .table-value) { color: var(--query-black); }
|
|
:root .query-page .metric-table-scroll :is(.stage-heading.bright, .rate-cell.bright, .rate-cell.bright .table-value) { color: var(--query-bright); }
|
|
:root .query-page .metric-table-scroll :is(.combined-column, .combined-value, .combined-column .header-link) { color: var(--query-combined); }
|
|
:root .query-page .metric-table-scroll :is(.rate-cell, .combined-column) { font-weight: 600; }
|
|
:root .query-page .metric-table-scroll .stage-heading.black i { background: var(--query-black); }
|
|
:root .query-page .metric-table-scroll .stage-heading.bright i { background: var(--query-bright); }
|
|
:root .query-page .metric-table-scroll .ant-table-thead > tr:first-child > th:has(.stage-heading.black) { background: var(--table-black-head) !important; }
|
|
:root .query-page .metric-table-scroll .ant-table-thead > tr:first-child > th:has(.stage-heading.bright) { background: var(--table-bright-head) !important; }
|
|
:root .query-page .metric-card.black .metric-value { color: var(--query-black); }
|
|
:root .query-page .metric-card.bright .metric-value { color: var(--query-bright); }
|
|
:root .query-page .metric-card.primary .metric-value { color: var(--query-combined); }
|
|
:root .query-page .metric-card.primary { background: var(--table-combined); }
|
|
:root .query-page .metric-card.black .stage-dot { background: var(--query-black); }
|
|
:root .query-page .metric-card.bright .stage-dot { background: var(--query-bright); }
|
|
|
|
/* 右侧冻结区自行绘制起始边框,避免依赖被隐藏的默认阴影。 */
|
|
:root .query-page .metric-table-scroll .combined-column.ant-table-cell-fix {
|
|
border-inline-start: 1px solid var(--metric-grid) !important;
|
|
}
|
|
:root .query-page .metric-table-scroll th.combined-column.ant-table-cell-fix {
|
|
border-inline-start-color: var(--metric-grid-head) !important;
|
|
}
|
|
|
|
/* 指标恢复随页面滚动;口径切换与卡片共用一行,不再独占顶部空行。 */
|
|
:root .query-page > .metric-strip {
|
|
position: relative;
|
|
top: auto;
|
|
z-index: auto;
|
|
}
|
|
.query-page .metric-strip > .rate-basis-control {
|
|
position: absolute;
|
|
top: 6px;
|
|
right: 10px;
|
|
z-index: 1;
|
|
}
|
|
.query-page .metric-strip > .metric-card {
|
|
min-height: 96px;
|
|
padding: 8px 13px;
|
|
gap: 3px;
|
|
}
|
|
.query-page .metric-strip:has(> .rate-basis-control) > .metric-card:last-child .metric-label { padding-right: 140px; }
|
|
@media (max-width: 760px) {
|
|
.query-page .metric-strip > .metric-card { min-height: 84px; }
|
|
.query-page .metric-strip > .rate-basis-control { position: static; padding: 0 8px; }
|
|
.query-page .metric-strip:has(> .rate-basis-control) > .metric-card:last-child .metric-label { padding-right: 0; }
|
|
}
|
|
|
|
.mapping-issue-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
|
|
.mapping-issue-filters .ant-select { min-width: 180px; flex: 0 1 240px; }
|
|
|
|
/* Retained maintenance sections share a compact, sticky navigation bar. */
|
|
.management-sections > .ant-tabs-nav { position: sticky; top: var(--workspace-sticky-top); z-index: 34; margin: 0 0 12px; padding: 0 16px; background: var(--surface); border: 1px solid var(--line); }
|
|
.management-sections > .ant-tabs-body-holder > .ant-tabs-body > .ant-tabs-content { padding: 12px; background: var(--surface); border: 1px solid var(--line); }
|
|
.management-sections .management-page { gap: 10px; }
|
|
.management-module-actions { display: flex; justify-content: flex-end; margin: 0; padding: 0 0 6px; }
|
|
.management-module-actions .page-heading-actions { margin: 0; }
|
|
.management-sections .nc-simple-config-tabs > .ant-tabs-nav { position: sticky; top: calc(var(--workspace-sticky-top) + 47px); z-index: 33; background: var(--surface); }
|
|
|
|
|
|
.management-sections > .ant-tabs-body-holder, .management-sections > .ant-tabs-body-holder > .ant-tabs-body { overflow: visible; }
|
|
.management-sections { overflow: visible; }
|
|
.management-sections .management-sections > .ant-tabs-nav { top: calc(var(--workspace-sticky-top) + 47px); z-index: 33; }
|
|
.management-sections .management-sections .management-sections > .ant-tabs-nav { top: calc(var(--workspace-sticky-top) + 94px); z-index: 32; }
|
|
|
|
/* A clipping panel becomes a false scroll ancestor for sticky tab navigation. */
|
|
.management-sections .panel:has(.ant-tabs-nav) { overflow: visible; }
|
|
.management-sections .resource-toolbar > .completion-actions { margin-left: auto; }
|
|
|
|
.page-view .panel:has(> .management-sections) { overflow: visible; }
|
|
|
|
/* Flat maintenance navigation: one full-width frozen bar, plain tools underneath. */
|
|
.management-sections > .ant-tabs-nav { isolation: isolate; background: var(--surface); box-shadow: 0 1px 0 var(--line); }
|
|
.management-sections .flat-config-page .flat-config-panel { padding: 4px 8px 8px; border: 0; box-shadow: none; }
|
|
.flat-config-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; min-height: 32px; }
|
|
.config-type-filter { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
|
|
.config-type-filter > span { white-space: nowrap; }
|
|
.config-type-filter .ant-select { width: 166px; }
|
|
.flat-config-panel .structured-config-toolbar { margin-top: 0; }
|
|
.classification-rule-fields { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:20px; }
|
|
.classification-rule-fields label, .classification-target { display:flex; flex-direction:column; gap:8px; font-weight:600; }
|
|
.classification-rule-fields .ant-select { width:100%; }
|
|
.classification-condition-heading, .classification-preview-action, .configuration-import-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin:16px 0; }
|
|
.classification-conditions { display:grid; gap:10px; }
|
|
.classification-condition-row { display:grid; grid-template-columns:90px 110px minmax(100px,1fr) auto; gap:10px; align-items:center; padding:10px 12px; background:var(--surface-soft,var(--surface)); border:1px solid var(--line); border-radius:6px; }
|
|
.classification-condition-row > span { font-weight:600; }
|
|
.classification-target { margin-top:18px; }
|
|
.classification-preview-action > span { font-size:13px; color:var(--muted-ink); }
|
|
.classification-impact, .configuration-table-preview { margin-top:16px; display:grid; gap:12px; }
|
|
.ant-modal.classification-rule-modal, .ant-modal.configuration-import-modal { top:24px; padding-bottom:24px; }
|
|
.classification-rule-modal .ant-modal-body, .configuration-import-modal .ant-modal-body { max-height:calc(100dvh - 210px); overflow:auto; padding-right:3px; }
|
|
@media(max-width:680px) { .classification-rule-fields { grid-template-columns:1fr; } .classification-condition-row { grid-template-columns:80px 1fr; } .classification-condition-row > .ant-input { grid-column:1/-1; } }
|
|
@media (max-width: 960px) { .config-type-filter { flex-wrap: wrap; } .structured-config-actions { margin-left: auto; } }
|
|
.classification-queue-status { display:grid; gap:8px; margin:0 0 12px; }
|
|
.classification-queue-status > span { display:flex; align-items:center; gap:8px; color:var(--text-secondary); font-size:13px; }
|