- 新增箱子重命名与删除功能 - 引入新箱子前缀与起始编号配置 - 在首页展示箱子编号范围 - 添加概览按钮,快速查看已启用的物品及其名称 - 实现组件的启用/禁用功能 - 更新数据库结构,新增箱子与组件字段 - 优化箱子与组件管理界面,改进表单与表格展示 - 在索引页面增加箱子详细信息概览区域 - 增强扫描与搜索功能,优化结果显示效果
297 lines
4.5 KiB
CSS
297 lines
4.5 KiB
CSS
:root {
|
|
--bg: #f3f7fb;
|
|
--card: #ffffff;
|
|
--text: #112031;
|
|
--muted: #506070;
|
|
--brand: #0c7a6f;
|
|
--brand-dark: #07564f;
|
|
--danger: #b42318;
|
|
--line: #d8e3ec;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
|
|
background: radial-gradient(circle at top right, #defff8, var(--bg) 42%);
|
|
color: var(--text);
|
|
}
|
|
|
|
.hero {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 24px;
|
|
background: linear-gradient(125deg, #0c7a6f, #145e9e);
|
|
color: #fff;
|
|
}
|
|
|
|
.hero.slim {
|
|
padding: 18px 24px;
|
|
}
|
|
|
|
.hero h1 {
|
|
margin: 0;
|
|
font-size: 24px;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1080px;
|
|
margin: 18px auto;
|
|
padding: 0 16px 28px;
|
|
}
|
|
|
|
.btn {
|
|
display: inline-block;
|
|
border: 0;
|
|
background: var(--brand);
|
|
color: #fff;
|
|
text-decoration: none;
|
|
border-radius: 10px;
|
|
padding: 9px 14px;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.btn:hover {
|
|
background: var(--brand-dark);
|
|
}
|
|
|
|
.btn-light {
|
|
background: #eaf2f9;
|
|
color: #183247;
|
|
}
|
|
|
|
.btn-danger {
|
|
background: var(--danger);
|
|
}
|
|
|
|
.box-list {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
|
gap: 14px;
|
|
}
|
|
|
|
.group-panel {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.group-title-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.group-title-row h3 {
|
|
margin: 0;
|
|
}
|
|
|
|
.group-desc {
|
|
color: var(--muted);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.new-box-form {
|
|
display: grid;
|
|
grid-template-columns: 1.2fr 0.8fr 0.7fr 1fr auto;
|
|
gap: 8px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.new-box-form.compact {
|
|
grid-template-columns: 1.1fr 0.8fr 0.7fr 1fr auto;
|
|
}
|
|
|
|
.box-card,
|
|
.panel {
|
|
background: var(--card);
|
|
border: 1px solid var(--line);
|
|
border-radius: 14px;
|
|
padding: 14px;
|
|
box-shadow: 0 3px 12px rgba(17, 32, 49, 0.05);
|
|
}
|
|
|
|
.box-card h3 {
|
|
margin: 0 0 6px;
|
|
}
|
|
|
|
.box-card h4 {
|
|
margin: 0 0 6px;
|
|
}
|
|
|
|
.card-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: center;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.card-actions form {
|
|
margin: 0;
|
|
}
|
|
|
|
.box-overview {
|
|
margin-top: 8px;
|
|
border: 1px dashed var(--line);
|
|
border-radius: 10px;
|
|
padding: 8px;
|
|
}
|
|
|
|
.box-overview summary {
|
|
cursor: pointer;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.box-overview ul {
|
|
margin: 8px 0 0;
|
|
padding-left: 18px;
|
|
}
|
|
|
|
.slot-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(7, minmax(90px, 1fr));
|
|
gap: 10px;
|
|
}
|
|
|
|
.slot-grid-14 {
|
|
grid-template-columns: repeat(7, minmax(90px, 1fr));
|
|
}
|
|
|
|
.slot-grid-bag {
|
|
grid-template-columns: repeat(2, minmax(120px, 1fr));
|
|
}
|
|
|
|
.slot {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
min-height: 110px;
|
|
padding: 10px;
|
|
border-radius: 12px;
|
|
text-decoration: none;
|
|
border: 1px solid var(--line);
|
|
color: var(--text);
|
|
background: #ffffff;
|
|
}
|
|
|
|
.slot.filled {
|
|
border-color: #9ccfd1;
|
|
background: #ecfbf8;
|
|
}
|
|
|
|
.slot-no {
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.form-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 10px;
|
|
}
|
|
|
|
.form-grid label {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.form-grid .full {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
input,
|
|
textarea {
|
|
border: 1px solid var(--line);
|
|
border-radius: 10px;
|
|
padding: 9px 10px;
|
|
font: inherit;
|
|
}
|
|
|
|
.actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.alert {
|
|
background: #fff1f2;
|
|
border: 1px solid #fecdd3;
|
|
color: #9f1239;
|
|
border-radius: 10px;
|
|
padding: 10px;
|
|
}
|
|
|
|
.notice {
|
|
background: #ecfeff;
|
|
border: 1px solid #a5f3fc;
|
|
color: #155e75;
|
|
border-radius: 10px;
|
|
padding: 10px;
|
|
}
|
|
|
|
.search-row {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.search-row input {
|
|
flex: 1;
|
|
}
|
|
|
|
.table-wrap {
|
|
overflow-x: auto;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
th,
|
|
td {
|
|
text-align: left;
|
|
border-bottom: 1px solid var(--line);
|
|
padding: 8px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.hint {
|
|
color: var(--muted);
|
|
margin: 10px 0 0;
|
|
}
|
|
|
|
.batch-input {
|
|
width: 100%;
|
|
margin-top: 8px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
@media (max-width: 760px) {
|
|
.hero {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.slot-grid,
|
|
.slot-grid-14,
|
|
.slot-grid-bag {
|
|
grid-template-columns: repeat(4, minmax(70px, 1fr));
|
|
}
|
|
|
|
.new-box-form {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.form-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|