171 lines
8.7 KiB
CSS
171 lines
8.7 KiB
CSS
/* 巨子测肤 · 后台查看页样式(零依赖) */
|
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
body {
|
|
font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
|
|
background: #f3f5f8; color: #2b3445; font-size: 14px;
|
|
}
|
|
.hidden { display: none !important; }
|
|
|
|
/* ─── 顶栏 ─── */
|
|
.topbar {
|
|
display: flex; align-items: center; gap: 32px;
|
|
background: #fff; border-bottom: 1px solid #e4e8ef;
|
|
padding: 0 24px; height: 56px; position: sticky; top: 0; z-index: 20;
|
|
}
|
|
.brand { font-size: 17px; font-weight: 700; color: #1f2733; }
|
|
.brand span { font-weight: 400; color: #8a94a6; margin-left: 8px; font-size: 13px; }
|
|
.tabs { display: flex; gap: 4px; height: 56px; }
|
|
.tab {
|
|
border: none; background: none; cursor: pointer; padding: 0 18px;
|
|
font-size: 14px; color: #5a6578; border-bottom: 2px solid transparent;
|
|
}
|
|
.tab:hover { color: #2563eb; }
|
|
.tab.on { color: #2563eb; border-bottom-color: #2563eb; font-weight: 600; }
|
|
|
|
main { padding: 20px 24px; }
|
|
.panel { display: none; }
|
|
.panel.on { display: block; }
|
|
|
|
/* ─── 筛选栏 ─── */
|
|
.filters {
|
|
background: #fff; border: 1px solid #e4e8ef; border-radius: 8px;
|
|
padding: 12px 16px; margin-bottom: 16px;
|
|
display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center;
|
|
}
|
|
.filters label { color: #5a6578; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
|
|
input, select {
|
|
border: 1px solid #d4dae3; border-radius: 6px; padding: 6px 8px; font-size: 13px; color: #2b3445;
|
|
background: #fff; outline: none;
|
|
}
|
|
input:focus, select:focus { border-color: #2563eb; }
|
|
input[type="number"] { width: 64px; }
|
|
#f-q { width: 170px; }
|
|
|
|
.btn {
|
|
border: 1px solid #d4dae3; background: #fff; border-radius: 6px;
|
|
padding: 6px 14px; font-size: 13px; cursor: pointer; color: #2b3445;
|
|
}
|
|
.btn:hover { border-color: #2563eb; color: #2563eb; }
|
|
.btn.primary { background: #2563eb; border-color: #2563eb; color: #fff; }
|
|
.btn.primary:hover { background: #1d4fd7; color: #fff; }
|
|
.btn.small { padding: 3px 10px; font-size: 12px; }
|
|
|
|
/* ─── 表格 ─── */
|
|
.table-wrap { background: #fff; border: 1px solid #e4e8ef; border-radius: 8px; overflow: auto; }
|
|
table { width: 100%; border-collapse: collapse; min-width: 1080px; }
|
|
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eef1f6; white-space: nowrap; }
|
|
th { background: #f8fafc; color: #5a6578; font-weight: 600; font-size: 13px; }
|
|
tbody tr { cursor: pointer; }
|
|
tbody tr:hover { background: #f5f8ff; }
|
|
tbody tr:last-child td { border-bottom: none; }
|
|
.thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; border: 1px solid #e4e8ef; cursor: zoom-in; display: block; }
|
|
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: #4a5568; }
|
|
.sub { color: #8a94a6; font-size: 12px; }
|
|
|
|
/* 原始档位样式键不变;展示按 ReportUI 映射为改善 / 良好 / 优秀。 */
|
|
.lv {
|
|
display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; margin: 1px 2px;
|
|
}
|
|
.lv-bad { background: #fdecec; color: #d93026; }
|
|
.lv-warn { background: #fdf3e0; color: #d4880f; }
|
|
.lv-good { background: #e6f6ec; color: #1e9e50; }
|
|
.st { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
|
|
.st-ok { background: #e6f6ec; color: #1e9e50; }
|
|
.st-fail { background: #fdecec; color: #d93026; }
|
|
.st-ing { background: #e8f0fe; color: #2563eb; }
|
|
.st-wait { background: #f0f2f5; color: #8a94a6; }
|
|
|
|
.pager { display: flex; align-items: center; gap: 12px; justify-content: flex-end; margin-top: 12px; color: #5a6578; font-size: 13px; }
|
|
|
|
/* ─── 失败分布条 ─── */
|
|
.fail-dist { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
|
|
.fail-chip {
|
|
background: #fff; border: 1px solid #e4e8ef; border-radius: 8px;
|
|
padding: 10px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 150px;
|
|
}
|
|
.fail-chip .code { font-weight: 600; color: #d93026; font-size: 13px; }
|
|
.fail-chip .pct { color: #5a6578; font-size: 12px; }
|
|
.fail-chip .bar { height: 6px; background: #fdecec; border-radius: 3px; margin-top: 4px; overflow: hidden; }
|
|
.fail-chip .bar i { display: block; height: 100%; background: #d93026; }
|
|
|
|
/* ─── 统计卡片与图表 ─── */
|
|
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 16px; }
|
|
.card { background: #fff; border: 1px solid #e4e8ef; border-radius: 8px; padding: 16px 18px; }
|
|
.card .num { font-size: 26px; font-weight: 700; color: #1f2733; margin-top: 4px; }
|
|
.card .lab { color: #8a94a6; font-size: 13px; }
|
|
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
|
|
@media (max-width: 900px) { .grid2 { grid-template-columns: 1fr; } }
|
|
.block { background: #fff; border: 1px solid #e4e8ef; border-radius: 8px; padding: 16px 18px; margin-bottom: 14px; }
|
|
.block h3 { font-size: 14px; color: #1f2733; margin-bottom: 14px; }
|
|
|
|
.dim-row { margin-bottom: 12px; }
|
|
.dim-row .dim-name { font-weight: 600; margin-bottom: 4px; }
|
|
.dim-bar { display: flex; height: 18px; border-radius: 4px; overflow: hidden; gap: 2px; }
|
|
.dim-bar i { display: block; height: 100%; }
|
|
.dim-bar .b-bad { background: #d93026; }
|
|
.dim-bar .b-warn { background: #f0a020; }
|
|
.dim-bar .b-good { background: #2fa84f; }
|
|
.dim-legend { color: #8a94a6; font-size: 12px; margin-top: 4px; }
|
|
|
|
.pie-wrap { display: flex; align-items: center; gap: 24px; }
|
|
.pie { width: 140px; height: 140px; border-radius: 50%; flex: none; }
|
|
.pie-legend { font-size: 13px; color: #5a6578; }
|
|
.pie-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }
|
|
.pie-empty { color: #8a94a6; }
|
|
|
|
.daily-chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 8px; }
|
|
.daily-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
|
|
.daily-bar { width: 70%; background: #2563eb; border-radius: 3px 3px 0 0; position: relative; min-height: 2px; }
|
|
.daily-bar.ok { background: #2fa84f; position: absolute; bottom: 0; left: 15%; opacity: .55; }
|
|
.daily-val { font-size: 11px; color: #5a6578; }
|
|
.daily-date { font-size: 11px; color: #8a94a6; transform: rotate(-38deg); white-space: nowrap; }
|
|
|
|
.export-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
|
|
.hint { color: #8a94a6; font-size: 12px; }
|
|
|
|
/* ─── 详情抽屉 ─── */
|
|
.drawer-mask { position: fixed; inset: 0; background: rgba(20, 28, 45, .45); z-index: 30; }
|
|
.drawer {
|
|
position: fixed; top: 0; right: 0; bottom: 0; width: min(860px, 94vw);
|
|
background: #fff; z-index: 31; box-shadow: -6px 0 24px rgba(20, 28, 45, .18);
|
|
display: flex; flex-direction: column;
|
|
}
|
|
.drawer-head {
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
padding: 14px 20px; border-bottom: 1px solid #e4e8ef; flex: none;
|
|
}
|
|
.drawer-head h2 { font-size: 16px; }
|
|
.drawer-head > div { display: flex; gap: 8px; }
|
|
.drawer-body { overflow: auto; padding: 18px 20px 40px; }
|
|
.d-sec { margin-bottom: 20px; }
|
|
.d-sec h3 { font-size: 14px; color: #1f2733; margin-bottom: 10px; border-left: 3px solid #2563eb; padding-left: 8px; }
|
|
.d-photos { display: flex; gap: 14px; flex-wrap: wrap; }
|
|
.d-photo { text-align: center; }
|
|
.d-photo img { width: 150px; height: 150px; object-fit: cover; border-radius: 6px; border: 1px solid #e4e8ef; cursor: zoom-in; display: block; }
|
|
.d-photo a { font-size: 12px; color: #2563eb; text-decoration: none; }
|
|
.d-kv { display: flex; flex-wrap: wrap; gap: 6px 22px; color: #4a5568; font-size: 13px; }
|
|
.d-kv b { color: #1f2733; }
|
|
.d-table { width: 100%; min-width: 0; border: 1px solid #e4e8ef; border-radius: 6px; overflow: hidden; }
|
|
.d-table th, .d-table td { white-space: normal; }
|
|
.d-copy { background: #f8fafc; border: 1px solid #e4e8ef; border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; font-size: 13px; line-height: 1.7; color: #4a5568; }
|
|
.d-copy b { color: #1f2733; }
|
|
.d-notes li { color: #8a6d1a; font-size: 13px; margin: 4px 0 4px 18px; }
|
|
.d-versions a { color: #2563eb; cursor: pointer; text-decoration: none; margin-right: 14px; font-size: 13px; }
|
|
details pre {
|
|
background: #1f2733; color: #d7e1f0; border-radius: 6px; padding: 12px;
|
|
font-size: 12px; overflow: auto; max-height: 420px; white-space: pre-wrap; word-break: break-all;
|
|
}
|
|
summary { cursor: pointer; color: #2563eb; font-size: 13px; margin-bottom: 8px; }
|
|
|
|
/* ─── 图片查看 / 提示 ─── */
|
|
.lightbox {
|
|
position: fixed; inset: 0; background: rgba(10, 14, 22, .85); z-index: 40;
|
|
display: flex; align-items: center; justify-content: center; cursor: zoom-out;
|
|
}
|
|
.lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 6px; }
|
|
.toast {
|
|
position: fixed; top: 70px; left: 50%; transform: translateX(-50%);
|
|
background: #1f2733; color: #fff; padding: 9px 20px; border-radius: 6px;
|
|
font-size: 13px; z-index: 50;
|
|
}
|