Files
ClassManager/frontend/assets/css/admin.css
T
canglan 1068bc6def v4.2 科目管理优化与多项修复清理
1. 科目管理:代码长度放宽至50(含数据库升级v4.2)、编辑可清空代码、重命名查重、新增 ↑↓ 快捷排序(批量重排接口)、空代码不再显示占位
2. 修复单人加减分提交空名单:showSinglePointsModal 三处重复定义收口到 points-mgmt 并共享选中状态
3. SMTP:SMTP_FROM 默认取 SMTP_USER、SMTP_ENABLED 兼容 1/yes/on、启动日志打印邮件状态、新增邮件测试接口与按钮(返回真实 SMTP 错误)
4. 密码:加密改为 bcrypt 库直连(修复 passlib 兼容问题)、重置密码不再依赖影响行数、前端统一展示422校验错误
5. 冗余清理:删除未用导入/Schema/函数、死文件 admin.js 与 sanitize.py、重复 escapeHtml、重复CSS、重复脚本加载
6. 修复11个文件被写入的 UTF-8 BOM
7. 文档与版本同步至4.2
2026-09-20 20:35:13 +08:00

340 lines
6.1 KiB
CSS

/**
* 班级操行分管理系统 - 管理端样式
*
* 开发者: Canglan
* 联系方式: admin@sea-studio.top
* 版权归属: Sea Network Technology Studio
* 许可证: MIT License
*
* 版权所有 © Sea Network Technology Studio
*/
/* 批量操作栏 */
.batch-bar {
background: #f0f4ff;
padding: 12px 16px;
border-radius: 8px;
margin-bottom: 16px;
display: flex;
justify-content: space-between;
align-items: center;
}
.batch-info {
color: var(--color-primary);
font-weight: 500;
}
/* 导入区域 */
.import-area {
border: 2px dashed var(--color-border);
border-radius: 12px;
padding: 30px;
text-align: center;
margin-bottom: 20px;
transition: border-color 0.3s;
cursor: pointer;
}
.import-area:hover {
border-color: var(--color-primary);
}
.import-area input {
display: none;
}
.import-label {
color: var(--color-primary);
text-decoration: underline;
cursor: pointer;
}
/* 预览表格 */
.preview-table {
max-height: 300px;
overflow-y: auto;
margin-top: 16px;
}
/* 筛选栏 */
.filter-bar {
background: var(--color-hover);
padding: 16px;
border-radius: 8px;
margin-bottom: 20px;
display: flex;
flex-wrap: wrap;
gap: 16px;
align-items: flex-end;
}
.filter-group {
flex: 1;
min-width: 150px;
}
.filter-group label {
display: block;
margin-bottom: 4px;
font-size: 12px;
color: var(--color-text-secondary);
}
.filter-group input,
.filter-group select {
width: 100%;
padding: 8px;
border: 1px solid var(--color-border);
border-radius: 4px;
}
/* 作业卡片 */
.assignment-card {
margin-bottom: 20px;
}
.assignment-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16px;
flex-wrap: wrap;
gap: 10px;
}
.assignment-title {
font-size: 16px;
font-weight: bold;
color: var(--color-text);
}
.assignment-meta {
color: var(--color-text-muted);
font-size: 12px;
}
/* 状态选择器 */
.status-select {
padding: 4px 8px;
border: 1px solid var(--color-border);
border-radius: 4px;
font-size: 12px;
}
/* 复选框 */
.student-checkbox {
width: 18px;
height: 18px;
cursor: pointer;
}
/* 扣分类型按钮组 */
.deduction-types {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
/* 考勤学生方格网格 */
.student-grid {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin: 15px 0;
}
.student-cell {
width: calc(100% / 7 - 10px);
min-height: 60px;
border: 2px solid #e5e7eb;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
font-size: 14px;
font-weight: 500;
transition: all 0.2s ease;
padding: 8px 4px;
text-align: center;
word-break: break-all;
user-select: none;
}
.student-cell:hover {
background: #f3f4f6;
border-color: #9ca3af;
}
.student-cell.selected {
background: #fee2e2;
border-color: #ef4444;
color: #dc2626;
}
.student-cell.has-record {
border: 2px dashed #9ca3af;
opacity: 0.7;
}
.attendance-toolbar {
display: flex;
align-items: center;
gap: 10px;
margin: 15px 0;
flex-wrap: wrap;
}
.toolbar-field {
display: inline-flex;
align-items: center;
gap: 6px;
background: var(--color-hover);
border: 1px solid var(--color-border);
border-radius: 4px;
padding: 6px 10px;
}
.toolbar-field .toolbar-label {
font-size: 12px;
color: var(--color-text-secondary);
white-space: nowrap;
}
.toolbar-field input,
.toolbar-field select {
border: none;
background: transparent;
outline: none;
font-size: 13px;
padding: 0;
min-width: 0;
}
.attendance-toolbar .status-group {
display: flex;
gap: 8px;
}
.attendance-toolbar .status-btn {
padding: 6px 16px;
border: 2px solid #e5e7eb;
border-radius: 6px;
background: white;
cursor: pointer;
font-size: 13px;
transition: all 0.2s;
}
.attendance-toolbar .status-btn.active {
border-color: var(--color-primary);
background: var(--color-primary-light);
color: #4338ca;
}
.student-tag {
display: inline-block;
padding: 2px 8px;
background: #e8f4f8;
border-radius: 12px;
font-size: 12px;
margin: 2px;
color: #2c3e50;
}
.student-tags-container {
display: flex;
flex-wrap: wrap;
gap: 4px;
}
@media (max-width: 768px) {
.student-cell {
width: calc(100% / 4 - 10px);
}
}
@media (max-width: 480px) {
.student-cell {
width: calc(100% / 3 - 10px);
}
}
.preserve-newlines {
white-space: normal;
word-break: break-word;
}
/* ========== 权限组编辑 ========== */
.perm-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
}
.perm-section {
margin-bottom: 12px;
}
.perm-section-title {
font-size: 12px;
color: var(--color-text-secondary);
border-left: 3px solid var(--color-primary);
padding-left: 6px;
margin-bottom: 6px;
}
.check-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 6px 12px;
}
.form-group .check-item {
display: flex;
align-items: center;
gap: 6px;
margin-bottom: 0;
font-weight: normal;
font-size: 13px;
}
.perm-cap-row {
display: flex;
flex-wrap: wrap;
gap: 20px;
align-items: center;
margin-bottom: 8px;
}
@media (max-width: 640px) {
.check-grid {
grid-template-columns: repeat(2, 1fr);
}
}
/* ========== 状态徽标(管理员/科目通用) ========== */
.subject-status {
font-size: 11px;
padding: 2px 8px;
border-radius: 12px;
white-space: nowrap;
}
.subject-status-active {
background: #c6f6d5;
color: #22543d;
}
.subject-status-inactive {
background: #fed7d7;
color: #742a2a;
}
/* 已选学生信息条 */
.selected-info {
padding: 8px 12px;
background: var(--color-hover);
border: 1px solid var(--color-border);
border-radius: 6px;
font-size: 14px;
}
/* 表格长文本单元格 */
.cell-wrap {
max-width: 340px;
white-space: normal;
word-break: break-word;
}