|
|
@@ -15,15 +15,15 @@
|
|
|
|
--sidebar-surface: #f8fafd;
|
|
|
|
--sidebar-surface: #f8fafd;
|
|
|
|
--sidebar: 202px;
|
|
|
|
--sidebar: 202px;
|
|
|
|
--mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
|
|
--mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
|
|
--ui-scale: .8;
|
|
|
|
--viewport-height: 100vh;
|
|
|
|
--viewport-height: calc(100vh / var(--ui-scale));
|
|
|
|
--dynamic-viewport-height: 100dvh;
|
|
|
|
--dynamic-viewport-height: calc(100dvh / var(--ui-scale));
|
|
|
|
--small-viewport-height: 100svh;
|
|
|
|
--small-viewport-height: calc(100svh / var(--ui-scale));
|
|
|
|
--topbar-height: 53px;
|
|
|
|
|
|
|
|
--workspace-sticky-top: var(--topbar-height);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
html { zoom: var(--ui-scale); }
|
|
|
|
@media (max-width: 760px) { :root { --topbar-height: 40px; } }
|
|
|
|
@media (max-width: 760px) { :root { --ui-scale: 1; } }
|
|
|
|
|
|
|
|
html, body, #root { min-width: 320px; min-height: 100%; margin: 0; }
|
|
|
|
html, body, #root { min-width: 320px; min-height: 100%; margin: 0; }
|
|
|
|
body { color: var(--ink); background: #f4f6fb; font-size: var(--font-body); }
|
|
|
|
body { color: var(--ink); background: #f4f6fb; font-size: var(--font-body); }
|
|
|
|
button, input, textarea, select { font: inherit; }
|
|
|
|
button, input, textarea, select { font: inherit; }
|
|
|
@@ -69,7 +69,7 @@ button { color: inherit; }
|
|
|
|
.sidebar-collapsed .user-profile-trigger { flex: 0; }
|
|
|
|
.sidebar-collapsed .user-profile-trigger { flex: 0; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@media (max-width: 760px) { .sidebar-toggle.ant-btn { display: none; } }
|
|
|
|
@media (max-width: 760px) { .sidebar-toggle.ant-btn { display: none; } }
|
|
|
|
.topbar { position: sticky; top: 0; z-index: 40; display: flex; height: 44px; align-items: center; justify-content: space-between; padding: 0 22px; background: var(--surface); border-bottom: 1px solid var(--line); }
|
|
|
|
.topbar { position: sticky; top: 0; z-index: 40; display: flex; height: var(--topbar-height); align-items: center; justify-content: space-between; padding: 0 22px; background: var(--surface); border-bottom: 1px solid var(--line); }
|
|
|
|
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: var(--font-control); }
|
|
|
|
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: var(--font-control); }
|
|
|
|
.breadcrumb strong { font-weight: 650; }
|
|
|
|
.breadcrumb strong { font-weight: 650; }
|
|
|
|
.breadcrumb-slash { color: #63738a; }
|
|
|
|
.breadcrumb-slash { color: #63738a; }
|
|
|
@@ -78,7 +78,7 @@ button { color: inherit; }
|
|
|
|
.page-content { width: 100%; min-width: 0; margin: 0; padding: 15px 20px 20px; }
|
|
|
|
.page-content { width: 100%; min-width: 0; margin: 0; padding: 15px 20px 20px; }
|
|
|
|
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--panel-radius, 5px) !important; }
|
|
|
|
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--panel-radius, 5px) !important; }
|
|
|
|
.query-page { display: flex; min-width: 0; flex-direction: column; gap: 11px; overflow-anchor: none; }
|
|
|
|
.query-page { display: flex; min-width: 0; flex-direction: column; gap: 11px; overflow-anchor: none; }
|
|
|
|
.query-toolbar { position: sticky; top: 53px; z-index: 35; display: flex; min-height: 48px; flex-wrap: wrap; align-items: center; gap: 10px 13px; padding: 7px 11px; }
|
|
|
|
.query-toolbar { position: sticky; top: var(--workspace-sticky-top); z-index: 35; display: flex; min-height: 48px; flex-wrap: wrap; align-items: center; gap: 10px 13px; padding: 7px 11px; }
|
|
|
|
.query-toolbar::before { content: ''; position: absolute; right: -20px; bottom: 100%; left: -20px; height: 18px; background: var(--background); pointer-events: none; }
|
|
|
|
.query-toolbar::before { content: ''; position: absolute; right: -20px; bottom: 100%; left: -20px; height: 18px; background: var(--background); pointer-events: none; }
|
|
|
|
.query-field { display: inline-flex; min-width: 0; align-items: center; gap: 7px; }
|
|
|
|
.query-field { display: inline-flex; min-width: 0; align-items: center; gap: 7px; }
|
|
|
|
.query-field > span { flex: 0 0 auto; white-space: nowrap; font-size: var(--font-control); }
|
|
|
|
.query-field > span { flex: 0 0 auto; white-space: nowrap; font-size: var(--font-control); }
|
|
|
@@ -155,8 +155,8 @@ button { color: inherit; }
|
|
|
|
.trend-object .ant-select { width: min(420px, 100%); }
|
|
|
|
.trend-object .ant-select { width: min(420px, 100%); }
|
|
|
|
.chart-viewport { width: 100%; overflow-x: auto; }
|
|
|
|
.chart-viewport { width: 100%; overflow-x: auto; }
|
|
|
|
.chart-surface { position: relative; width: 100%; min-width: 0; }
|
|
|
|
.chart-surface { position: relative; width: 100%; min-width: 0; }
|
|
|
|
/* Keep SVG chart coordinates aligned with pointer events under the app's global UI zoom. */
|
|
|
|
/* 图表与页面使用同一坐标尺寸,保持 SVG 和鼠标位置一致。 */
|
|
|
|
.chart-container { width: 100%; height: calc(380px * var(--ui-scale)); min-width: 0; zoom: calc(1 / var(--ui-scale)); }
|
|
|
|
.chart-container { width: 100%; height: 380px; min-width: 0; }
|
|
|
|
.chart-footnote { display: flex; justify-content: space-between; gap: 12px; padding: 0 13px 10px; font-size: var(--font-note); }
|
|
|
|
.chart-footnote { display: flex; justify-content: space-between; gap: 12px; padding: 0 13px 10px; font-size: var(--font-note); }
|
|
|
|
.defects-panel { min-height: 120px; }
|
|
|
|
.defects-panel { min-height: 120px; }
|
|
|
|
.defect-stage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
|
|
|
|
.defect-stage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
|
|
|
@@ -164,7 +164,7 @@ button { color: inherit; }
|
|
|
|
.defect-pareto-heading { display: flex; min-height: 38px; flex-wrap: wrap; align-items: baseline; gap: 5px 12px; padding: 8px 1px 0; }
|
|
|
|
.defect-pareto-heading { display: flex; min-height: 38px; flex-wrap: wrap; align-items: baseline; gap: 5px 12px; padding: 8px 1px 0; }
|
|
|
|
.defect-pareto-heading strong { font-size: var(--font-body); font-weight: 650; }
|
|
|
|
.defect-pareto-heading strong { font-size: var(--font-body); font-weight: 650; }
|
|
|
|
.defect-pareto-heading span { color: var(--ink); font-size: var(--font-note); }
|
|
|
|
.defect-pareto-heading span { color: var(--ink); font-size: var(--font-note); }
|
|
|
|
.defect-pareto-chart { width: 100%; height: calc(470px * var(--ui-scale)); min-width: 0; zoom: calc(1 / var(--ui-scale)); }
|
|
|
|
.defect-pareto-chart { width: 100%; height: 470px; min-width: 0; }
|
|
|
|
.defect-pareto-status { display: flex; min-height: 52px; align-items: center; justify-content: center; gap: 8px; font-size: var(--font-control); }
|
|
|
|
.defect-pareto-status { display: flex; min-height: 52px; align-items: center; justify-content: center; gap: 8px; font-size: var(--font-control); }
|
|
|
|
.defect-stage-column { min-width: 0; padding: 0 12px 10px; }
|
|
|
|
.defect-stage-column { min-width: 0; padding: 0 12px 10px; }
|
|
|
|
.defect-stage-column + .defect-stage-column { border-left: 1px solid var(--line); }
|
|
|
|
.defect-stage-column + .defect-stage-column { border-left: 1px solid var(--line); }
|
|
|
@@ -374,7 +374,7 @@ button { color: inherit; }
|
|
|
|
:root { --sidebar: 0px; }
|
|
|
|
:root { --sidebar: 0px; }
|
|
|
|
.sidebar { display: none; }
|
|
|
|
.sidebar { display: none; }
|
|
|
|
.main-column { margin-left: 0; }
|
|
|
|
.main-column { margin-left: 0; }
|
|
|
|
.topbar { height: 40px; padding: 0 12px; }
|
|
|
|
.topbar { padding: 0 12px; }
|
|
|
|
.top-organization { display: none; }
|
|
|
|
.top-organization { display: none; }
|
|
|
|
.mobile-brand { display: flex; min-height: 44px; align-items: center; gap: 7px; padding: 4px 10px; background: #f8f9fc; border-bottom: 1px solid var(--line); font-size: var(--font-section); }
|
|
|
|
.mobile-brand { display: flex; min-height: 44px; align-items: center; gap: 7px; padding: 4px 10px; background: #f8f9fc; border-bottom: 1px solid var(--line); font-size: var(--font-section); }
|
|
|
|
.mobile-brand > strong { white-space: nowrap; }
|
|
|
|
.mobile-brand > strong { white-space: nowrap; }
|
|
|
@@ -478,7 +478,7 @@ body { background: var(--background); }
|
|
|
|
.nav-item:hover { background: var(--hover); }
|
|
|
|
.nav-item:hover { background: var(--hover); }
|
|
|
|
.nav-item.active { color: var(--blue-dark); background: var(--blue-soft); }
|
|
|
|
.nav-item.active { color: var(--blue-dark); background: var(--blue-soft); }
|
|
|
|
.nav-item.active .anticon { color: var(--blue); }
|
|
|
|
.nav-item.active .anticon { color: var(--blue); }
|
|
|
|
.topbar { height: 53px; padding: 0 20px; }
|
|
|
|
.topbar { height: var(--topbar-height); padding: 0 20px; }
|
|
|
|
.topbar-actions { display: flex; align-items: center; gap: 8px; }
|
|
|
|
.topbar-actions { display: flex; align-items: center; gap: 8px; }
|
|
|
|
.topbar-search.ant-btn {
|
|
|
|
.topbar-search.ant-btn {
|
|
|
|
display: inline-flex;
|
|
|
|
display: inline-flex;
|
|
|
@@ -559,7 +559,7 @@ body { background: var(--background); }
|
|
|
|
.query-toolbar::before { right: -15px; left: -15px; height: 16px; }
|
|
|
|
.query-toolbar::before { right: -15px; left: -15px; height: 16px; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@media (max-width: 760px) {
|
|
|
|
@media (max-width: 760px) {
|
|
|
|
.topbar { height: 40px; padding: 0 12px; }
|
|
|
|
.topbar { padding: 0 12px; }
|
|
|
|
.topbar-actions { gap: 2px; }
|
|
|
|
.topbar-actions { gap: 2px; }
|
|
|
|
.topbar-search.ant-btn { width: 30px; justify-content: center; padding: 0; }
|
|
|
|
.topbar-search.ant-btn { width: 30px; justify-content: center; padding: 0; }
|
|
|
|
.topbar-search > span:not(.anticon), .topbar-search kbd { display: none; }
|
|
|
|
.topbar-search > span:not(.anticon), .topbar-search kbd { display: none; }
|
|
|
@@ -568,7 +568,7 @@ body { background: var(--background); }
|
|
|
|
.top-organization { display: none; }
|
|
|
|
.top-organization { display: none; }
|
|
|
|
.mobile-brand { background: var(--sidebar-surface); }
|
|
|
|
.mobile-brand { background: var(--sidebar-surface); }
|
|
|
|
.page-content { padding: 11px 10px 18px; }
|
|
|
|
.page-content { padding: 11px 10px 18px; }
|
|
|
|
.query-toolbar { top: 40px; }
|
|
|
|
.query-toolbar { top: var(--workspace-sticky-top); }
|
|
|
|
.query-toolbar::before { right: -10px; left: -10px; height: 12px; }
|
|
|
|
.query-toolbar::before { right: -10px; left: -10px; height: 12px; }
|
|
|
|
.navigation-search-modal { max-width: calc(100vw - 24px); }
|
|
|
|
.navigation-search-modal { max-width: calc(100vw - 24px); }
|
|
|
|
}
|
|
|
|
}
|
|
|
|