Files
iAOP/web/admin/admin.css
T

68 lines
3.6 KiB
CSS

/* iAOP 管理控制台样式(issue #135)。深色主题,与 cockpit/studio 一致。 */
:root {
--bg: #0b1220; --surface: #13203a; --fg: #e6edf6; --muted: #8aa0bd;
--accent: #18d3c8; --warn: #f5a623; --line: rgba(255,255,255,.06);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
background: var(--bg); color: var(--fg); }
#topbar { display: flex; align-items: center; justify-content: space-between;
padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
h1 { font-size: 18px; color: var(--accent); margin: 0; }
h1 .sub { font-size: 12px; color: var(--muted); font-weight: 400; }
#topbar-right { display: flex; gap: 14px; align-items: center; font-size: 13px; }
#topbar-right a { color: var(--accent); text-decoration: none; }
.hint { font-size: 11px; color: #64748b; }
#tabs { display: flex; gap: 4px; padding: 8px 16px 0; }
.tab { padding: 8px 18px; border: 1px solid var(--line); border-bottom: none;
border-radius: 8px 8px 0 0; background: transparent; color: var(--muted);
cursor: pointer; font-size: 14px; }
.tab.active { background: var(--surface); color: var(--accent); }
.page { display: none; padding: 12px 16px 24px; }
.page.active { display: block; }
.panel { background: var(--surface); border: 1px solid var(--line);
border-radius: 8px; padding: 14px 16px; }
.panel h2 { font-size: 14px; margin: 0 0 10px; color: var(--accent); }
.row { display: flex; align-items: center; gap: 10px; margin: 10px 0; flex-wrap: wrap; }
select, input { padding: 7px 10px; border-radius: 6px; font-size: 13px;
border: 1px solid var(--line); background: var(--bg); color: var(--fg); }
button { padding: 6px 14px; border: none; border-radius: 6px; cursor: pointer;
background: #1e293b; color: var(--fg); font-size: 12px; }
button.primary { background: var(--accent); color: #04202a; }
button:disabled { opacity: .4; cursor: not-allowed; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
th, td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-weight: 400; }
/* 模型阶段徽标 */
.stage { padding: 2px 10px; border-radius: 10px; font-size: 12px; }
.stage-dev { background: rgba(138,160,189,.15); color: var(--muted); }
.stage-staging { background: rgba(245,166,35,.15); color: var(--warn); }
.stage-prod { background: rgba(46,204,113,.15); color: #2ecc71; }
/* 知识库 */
.detail { margin-top: 12px; background: var(--bg); border-radius: 6px; padding: 10px;
font-size: 12px; color: var(--muted); max-height: 260px; overflow-y: auto; }
.idx-ok { color: #2ecc71; }
.idx-pending { color: var(--warn); }
/* 告警 */
.split-alerts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.alert-item { border-radius: 6px; padding: 8px 12px; margin-bottom: 6px; font-size: 13px;
border-left: 3px solid transparent; cursor: pointer;
display: flex; gap: 10px; align-items: center; }
.alert-item:hover { outline: 1px solid var(--line); }
.alert-item .sev { font-weight: 700; }
.alert-item .st { margin-left: auto; font-size: 11px; color: var(--muted); }
#alert-detail { font-size: 13px; line-height: 1.7; }
#alert-detail .llm { background: var(--bg); border-radius: 6px; padding: 10px;
white-space: pre-wrap; margin: 8px 0; }
#alert-detail .sop { border-left: 3px solid var(--warn); padding: 4px 10px;
color: var(--muted); font-size: 12px; }
@media (max-width: 1000px) { .split-alerts { grid-template-columns: 1fr; } }