first
This commit is contained in:
@@ -0,0 +1,196 @@
|
||||
/* 无人机资产管理系统样式 */
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
|
||||
:root {
|
||||
--bg: #f4f6f9;
|
||||
--card: #ffffff;
|
||||
--border: #e2e6ec;
|
||||
--text: #26303c;
|
||||
--muted: #7a8699;
|
||||
--primary: #2563eb;
|
||||
--primary-dark: #1d4ed8;
|
||||
--danger: #dc2626;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
header {
|
||||
background: var(--card);
|
||||
border-bottom: 1px solid var(--border);
|
||||
padding: 14px 24px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 24px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
header h1 { font-size: 20px; font-weight: 600; }
|
||||
|
||||
nav { display: flex; gap: 8px; }
|
||||
|
||||
.tab {
|
||||
padding: 8px 16px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
background: var(--card);
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
color: var(--muted);
|
||||
}
|
||||
.tab.active {
|
||||
background: var(--primary);
|
||||
border-color: var(--primary);
|
||||
color: #fff;
|
||||
}
|
||||
.tab:hover:not(.active) { color: var(--primary); }
|
||||
|
||||
main.view { display: none; padding: 20px 24px; max-width: 1400px; margin: 0 auto; }
|
||||
main.view.active { display: block; }
|
||||
|
||||
/* 工具条 */
|
||||
.toolbar {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
margin-bottom: 16px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.toolbar label { font-size: 13px; color: var(--muted); }
|
||||
|
||||
input[type="text"], input[type="date"], select, textarea {
|
||||
padding: 8px 10px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
font-size: 14px;
|
||||
background: var(--card);
|
||||
color: var(--text);
|
||||
}
|
||||
input:focus, select:focus, textarea:focus { outline: 2px solid #93c5fd; border-color: var(--primary); }
|
||||
textarea { resize: vertical; min-height: 64px; }
|
||||
|
||||
button {
|
||||
padding: 8px 14px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
background: var(--card);
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
color: var(--text);
|
||||
transition: all .15s;
|
||||
}
|
||||
button:hover { border-color: var(--primary); color: var(--primary); }
|
||||
button.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
|
||||
button.primary:hover { background: var(--primary-dark); color: #fff; }
|
||||
button.danger:hover { border-color: var(--danger); color: var(--danger); }
|
||||
button.small { padding: 4px 10px; font-size: 13px; }
|
||||
|
||||
/* 表格 */
|
||||
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--border); border-radius: 10px; }
|
||||
table { border-collapse: collapse; width: 100%; font-size: 14px; }
|
||||
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
|
||||
th { background: #fafbfc; color: var(--muted); font-weight: 600; font-size: 13px; }
|
||||
tbody tr:hover { background: #f8fafc; }
|
||||
tbody tr:last-child td { border-bottom: none; }
|
||||
td.remark-cell { white-space: normal; min-width: 160px; max-width: 320px; }
|
||||
td .actions { display: flex; gap: 6px; flex-wrap: wrap; }
|
||||
|
||||
/* 状态徽标 */
|
||||
.badge {
|
||||
display: inline-block;
|
||||
padding: 3px 10px;
|
||||
border-radius: 999px;
|
||||
font-size: 12px;
|
||||
color: #fff;
|
||||
font-weight: 600;
|
||||
}
|
||||
.badge.empty { background: #e5e9f0; color: var(--muted); }
|
||||
.badge-待组装 { background: #9e9e9e; }
|
||||
.badge-待调试 { background: #ff9800; }
|
||||
.badge-待飞 { background: #4caf50; }
|
||||
.badge-损坏 { background: #f44336; }
|
||||
|
||||
/* 弹窗 */
|
||||
.modal-mask {
|
||||
position: fixed; inset: 0;
|
||||
background: rgba(15, 23, 42, .45);
|
||||
display: none;
|
||||
align-items: flex-start;
|
||||
justify-content: center;
|
||||
padding: 48px 16px;
|
||||
z-index: 50;
|
||||
overflow-y: auto;
|
||||
}
|
||||
.modal-mask.open { display: flex; }
|
||||
.modal {
|
||||
background: var(--card);
|
||||
border-radius: 12px;
|
||||
width: 100%;
|
||||
max-width: 520px;
|
||||
box-shadow: 0 20px 50px rgba(0,0,0,.25);
|
||||
}
|
||||
.modal-header {
|
||||
display: flex; justify-content: space-between; align-items: center;
|
||||
padding: 14px 20px; border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.modal-header h2 { font-size: 16px; }
|
||||
.modal-close { border: none; background: none; font-size: 20px; color: var(--muted); cursor: pointer; }
|
||||
.modal-body { padding: 18px 20px; }
|
||||
.modal-footer {
|
||||
padding: 12px 20px; border-top: 1px solid var(--border);
|
||||
display: flex; justify-content: flex-end; gap: 10px;
|
||||
}
|
||||
|
||||
.form-row { margin-bottom: 14px; }
|
||||
.form-row label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
|
||||
.form-row input, .form-row select, .form-row textarea { width: 100%; }
|
||||
|
||||
/* 历史时间线 */
|
||||
.timeline { max-height: 420px; overflow-y: auto; padding-right: 6px; }
|
||||
.tl-item {
|
||||
display: flex; gap: 12px; padding: 10px 0;
|
||||
border-left: 3px solid var(--border); margin-left: 6px; padding-left: 16px;
|
||||
position: relative;
|
||||
}
|
||||
.tl-item .dot {
|
||||
position: absolute; left: -8px; top: 16px;
|
||||
width: 13px; height: 13px; border-radius: 50%;
|
||||
border: 2px solid #fff; box-shadow: 0 0 0 2px var(--border);
|
||||
}
|
||||
.tl-item .tl-time { font-size: 12px; color: var(--muted); min-width: 150px; }
|
||||
.tl-item .tl-status { font-weight: 600; }
|
||||
.tl-item .tl-remark { font-size: 13px; color: var(--muted); margin-top: 2px; }
|
||||
|
||||
/* 透视表 */
|
||||
.matrix-wrap { overflow: auto; max-height: 70vh; }
|
||||
#matrix-table th { position: sticky; top: 0; background: #fafbfc; z-index: 2; }
|
||||
#matrix-table th:first-child, #matrix-table td:first-child { position: sticky; left: 0; background: #fafbfc; z-index: 1; }
|
||||
#matrix-table td:first-child { background: #f4f6f9; color: var(--muted); font-size: 12px; }
|
||||
#matrix-table th.corner { z-index: 3; }
|
||||
.cell {
|
||||
display: inline-block; min-width: 64px; text-align: center;
|
||||
padding: 3px 8px; border-radius: 6px; font-size: 12px; color: #fff; font-weight: 600;
|
||||
line-height: 1.35;
|
||||
}
|
||||
.cell-remark {
|
||||
display: block; font-weight: 400; font-size: 11px;
|
||||
opacity: .88; margin-top: 2px; max-width: 180px;
|
||||
white-space: normal; word-break: break-all;
|
||||
}
|
||||
.cell.empty-cell { background: #f1f4f8; color: #c3cbd6; }
|
||||
|
||||
/* 提示 */
|
||||
.toast {
|
||||
position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
|
||||
background: #111827; color: #fff; padding: 10px 20px;
|
||||
border-radius: 8px; font-size: 14px; z-index: 100;
|
||||
opacity: 0; transition: opacity .25s; pointer-events: none;
|
||||
}
|
||||
.toast.show { opacity: 1; }
|
||||
.toast.error { background: var(--danger); }
|
||||
|
||||
.empty-tip { color: var(--muted); text-align: center; padding: 40px 0; font-size: 14px; }
|
||||
Reference in New Issue
Block a user