- 评论管理页:创建 comments.css,controller 传递 ExtraCSS/ExtraJS,模板移除所有 inline style,JS 改用 CSS 类 - 修复 comments.js 加载顺序:通过 ExtraJS 在 common.js 之后加载,解决 api is not defined - base.html:SVG inline style 移至 common.css - dashboard/index.html:3 处 inline style 替换为 CSS 类 - audit/index.html:modal 移除冗余 style="display:none" - fund_logs/logs:label inline style 移至 energy.css - common.css 新增多个 CSS 规则 - energy.css 新增 .filter-bar label 规则
266 lines
4.5 KiB
CSS
266 lines
4.5 KiB
CSS
/* 域能管理页面样式 */
|
|
|
|
.fund-card {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
border-radius: 8px;
|
|
padding: 1.5rem;
|
|
color: #fff;
|
|
margin-bottom: 1.5rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.fund-card .fund-info h3 {
|
|
margin: 0 0 0.25rem 0;
|
|
font-size: 0.9rem;
|
|
opacity: 0.9;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.fund-card .fund-info .fund-balance {
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
margin: 0;
|
|
}
|
|
|
|
.fund-card .fund-info .fund-balance.negative {
|
|
color: #fdd;
|
|
}
|
|
|
|
.fund-card .fund-icon {
|
|
font-size: 2.5rem;
|
|
opacity: 0.3;
|
|
}
|
|
|
|
/* 调整表单 */
|
|
.adjust-form {
|
|
background: #fff;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 8px;
|
|
padding: 1.5rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.adjust-form h3 {
|
|
margin: 0 0 1rem 0;
|
|
font-size: 1.1rem;
|
|
color: #1a202c;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
margin-bottom: 0.35rem;
|
|
font-size: 0.85rem;
|
|
font-weight: 500;
|
|
color: #4a5568;
|
|
}
|
|
|
|
.form-group input,
|
|
.form-group textarea,
|
|
.form-group select {
|
|
width: 100%;
|
|
padding: 0.5rem 0.75rem;
|
|
border: 1px solid #cbd5e0;
|
|
border-radius: 6px;
|
|
font-size: 0.9rem;
|
|
color: #2d3748;
|
|
background: #fff;
|
|
transition: border-color 0.15s;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.form-group input:focus,
|
|
.form-group textarea:focus,
|
|
.form-group select:focus {
|
|
outline: none;
|
|
border-color: #667eea;
|
|
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
|
|
}
|
|
|
|
.form-group textarea {
|
|
resize: vertical;
|
|
min-height: 80px;
|
|
}
|
|
|
|
.form-hint {
|
|
font-size: 0.78rem;
|
|
color: #a0aec0;
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: #667eea;
|
|
color: #fff;
|
|
border: none;
|
|
padding: 0.6rem 1.5rem;
|
|
border-radius: 6px;
|
|
font-size: 0.9rem;
|
|
cursor: pointer;
|
|
transition: background 0.15s;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: #5a67d8;
|
|
}
|
|
|
|
.btn-primary:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* 日志表格 */
|
|
.log-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
background: #fff;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.log-table th {
|
|
background: #f7fafc;
|
|
padding: 0.75rem 1rem;
|
|
text-align: left;
|
|
font-size: 0.82rem;
|
|
font-weight: 600;
|
|
color: #4a5568;
|
|
border-bottom: 1px solid #e2e8f0;
|
|
}
|
|
|
|
.log-table td {
|
|
padding: 0.7rem 1rem;
|
|
font-size: 0.85rem;
|
|
color: #2d3748;
|
|
border-bottom: 1px solid #edf2f7;
|
|
}
|
|
|
|
.log-table tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.log-table .amount-positive {
|
|
color: #38a169;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.log-table .amount-negative {
|
|
color: #e53e3e;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.type-badge {
|
|
display: inline-block;
|
|
padding: 0.15rem 0.5rem;
|
|
border-radius: 4px;
|
|
font-size: 0.78rem;
|
|
font-weight: 500;
|
|
background: #ebf8ff;
|
|
color: #2b6cb0;
|
|
}
|
|
|
|
/* 筛选栏 */
|
|
.filter-bar {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
margin-bottom: 1rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.filter-bar label {
|
|
font-size: 0.85rem;
|
|
font-weight: 500;
|
|
color: #4a5568;
|
|
}
|
|
|
|
.filter-bar select {
|
|
padding: 0.4rem 0.75rem;
|
|
border: 1px solid #cbd5e0;
|
|
border-radius: 6px;
|
|
font-size: 0.85rem;
|
|
color: #4a5568;
|
|
background: #fff;
|
|
}
|
|
|
|
.filter-bar select:focus {
|
|
outline: none;
|
|
border-color: #667eea;
|
|
}
|
|
|
|
/* 分页 */
|
|
.pagination {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
margin-top: 1rem;
|
|
justify-content: center;
|
|
}
|
|
|
|
.pagination button {
|
|
padding: 0.4rem 0.85rem;
|
|
border: 1px solid #cbd5e0;
|
|
border-radius: 6px;
|
|
background: #fff;
|
|
font-size: 0.85rem;
|
|
color: #4a5568;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.pagination button:hover:not(:disabled) {
|
|
background: #f7fafc;
|
|
border-color: #a0aec0;
|
|
}
|
|
|
|
.pagination button.active {
|
|
background: #667eea;
|
|
color: #fff;
|
|
border-color: #667eea;
|
|
}
|
|
|
|
.pagination button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* 操作结果消息 */
|
|
.form-message {
|
|
margin-top: 0.75rem;
|
|
font-size: 0.85rem;
|
|
padding: 0.5rem 0.75rem;
|
|
border-radius: 6px;
|
|
display: none;
|
|
}
|
|
|
|
.form-message.success {
|
|
background: #f0fff4;
|
|
color: #38a169;
|
|
border: 1px solid #c6f6d5;
|
|
display: block;
|
|
}
|
|
|
|
.form-message.error {
|
|
background: #fff5f5;
|
|
color: #e53e3e;
|
|
border: 1px solid #fed7d7;
|
|
display: block;
|
|
}
|
|
|
|
/* 日志时间 */
|
|
.log-time {
|
|
font-size: 0.8rem;
|
|
color: #a0aec0;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* 空状态 */
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 3rem 1rem;
|
|
color: #a0aec0;
|
|
font-size: 0.9rem;
|
|
}
|