mirror of
https://github.com/ExamAware/ExamSchedule.git
synced 2025-04-29 11:06:32 +00:00

* docs: 更新README,添加考试看板和时间广播功能说明,优化界面截图 * docs: 在README中添加广播模式说明及相关截图 * refactor&fix&feat: 已知问题修复,加上暗色模式,还有拆分css * feat: 更新课程安排和提醒设置功能,支持导入导出配置 * feat: 添加考试信息展示,更新课程表加载逻辑,优化样式 * feat: 更新考试提醒设置,优化音频选择和配置加载逻辑 * feat: 优化提醒设置处理逻辑,支持临时生效配置导入
480 lines
9.6 KiB
CSS
480 lines
9.6 KiB
CSS
/* 基础样式 */
|
|
body {
|
|
font-family: 'Segoe UI', Arial, sans-serif;
|
|
margin: 0;
|
|
padding: 20px;
|
|
background: #f5f7fa;
|
|
color: #2d3436;
|
|
}
|
|
.container {
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
position: relative;
|
|
}
|
|
|
|
/* 考试信息板块 */
|
|
.exam-info {
|
|
text-align: center;
|
|
margin-bottom: 30px;
|
|
padding: 20px;
|
|
background: white;
|
|
border-radius: 12px;
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
|
|
}
|
|
|
|
.exam-info h1 {
|
|
margin: 0;
|
|
font-size: 32px;
|
|
color: #2c3e50;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.exam-room {
|
|
font-size: 18px;
|
|
color: #57606f;
|
|
}
|
|
|
|
.exam-message {
|
|
font-size: 20px;
|
|
color: #57606f;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
/* 状态显示框 */
|
|
.status-box {
|
|
background: linear-gradient(145deg, #ffffff, #f8f9fa);
|
|
border: 1px solid #e0e6ed;
|
|
padding: 30px;
|
|
margin: 20px 0;
|
|
border-radius: 16px;
|
|
box-shadow: 0 8px 24px rgba(0,0,0,0.06);
|
|
transition: all 0.3s ease;
|
|
}
|
|
.time-display {
|
|
font-size: 48px;
|
|
color: #2c3e50;
|
|
font-weight: 700;
|
|
margin: 15px 0;
|
|
text-align: center;
|
|
letter-spacing: 2px;
|
|
text-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
|
}
|
|
.status-label {
|
|
font-size: 28px;
|
|
text-align: center;
|
|
margin: 15px 0;
|
|
color: #57606f;
|
|
}
|
|
|
|
/* 课程表格 */
|
|
.schedule-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin: 25px 0;
|
|
background: white;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
|
|
}
|
|
.schedule-table th {
|
|
background: #f8f9fa;
|
|
padding: 16px;
|
|
color: #57606f;
|
|
font-weight: 600;
|
|
border-bottom: 2px solid #e0e6ed;
|
|
}
|
|
.schedule-table td {
|
|
padding: 14px;
|
|
border-bottom: 1px solid #f1f3f6;
|
|
}
|
|
.current-class {
|
|
background: #e8f5e9 !important;
|
|
position: relative;
|
|
}
|
|
.current-class:after {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
height: 100%;
|
|
width: 4px;
|
|
background: #2ecc71;
|
|
}
|
|
.future-class {
|
|
background: #f8f9fa !important;
|
|
}
|
|
.past-class {
|
|
background: #fafafa !important;
|
|
color: #a4b0be;
|
|
}
|
|
|
|
/* 移除全屏模式相关样式 */
|
|
.fullscreen-mode {
|
|
display: none;
|
|
}
|
|
|
|
/* 控制按钮 */
|
|
.control-bar {
|
|
position: fixed;
|
|
top: 20px;
|
|
right: 20px;
|
|
z-index: 10000;
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
.control-btn {
|
|
background: linear-gradient(135deg, #3498db, #2980b9);
|
|
color: white;
|
|
border: none;
|
|
padding: 12px 24px;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-size: 15px;
|
|
font-weight: 500;
|
|
transition: all 0.2s ease;
|
|
box-shadow: 0 4px 12px rgba(52,152,219,0.25);
|
|
}
|
|
.control-btn:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 6px 16px rgba(52,152,219,0.35);
|
|
}
|
|
|
|
/* 设置面板 */
|
|
.settings-panel {
|
|
background: rgba(255,255,255,0.95);
|
|
padding: 25px;
|
|
margin: 25px 0;
|
|
border-radius: 12px;
|
|
border: 1px solid #e0e6ed;
|
|
backdrop-filter: blur(8px);
|
|
}
|
|
.settings-panel h3 {
|
|
margin: 0 0 20px;
|
|
color: #2c3e50;
|
|
font-size: 20px;
|
|
}
|
|
.settings-panel label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin: 12px 0;
|
|
font-size: 16px;
|
|
color: #57606f;
|
|
flex-wrap: wrap; /* 解决文本框显示在页面外的问题 */
|
|
}
|
|
.settings-panel input[type="checkbox"] {
|
|
width: 18px;
|
|
height: 18px;
|
|
accent-color: #3498db;
|
|
}
|
|
.settings-panel input[type="number"] {
|
|
width: 60px;
|
|
padding: 5px;
|
|
border: 1px solid #e0e6ed;
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
color: #2d3436;
|
|
margin-right: 10px;
|
|
}
|
|
.settings-panel input[type="file"] {
|
|
margin-top: 10px;
|
|
}
|
|
.file-input-label {
|
|
display: inline-block;
|
|
padding: 10px 20px;
|
|
background: #27ae60;
|
|
color: white;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: background 0.3s ease;
|
|
}
|
|
.file-input-label:hover {
|
|
background: #219150;
|
|
}
|
|
.file-input-label input[type="file"] {
|
|
display: none;
|
|
}
|
|
.button-group {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
/* 信息提示 */
|
|
.info-container {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
background: #3498db;
|
|
color: white;
|
|
padding: 16px;
|
|
display: none;
|
|
z-index: 10001;
|
|
animation: slideUp 0.3s ease;
|
|
}
|
|
@keyframes slideUp {
|
|
from { transform: translateY(100%); }
|
|
to { transform: translateY(0); }
|
|
}
|
|
.info-content {
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
font-size: 15px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
.info-content:before {
|
|
content: 'i';
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 24px;
|
|
height: 24px;
|
|
background: white;
|
|
color: #3498db;
|
|
border-radius: 50%;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* 错误提示 */
|
|
.error-container {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
background: #ff6b6b;
|
|
color: white;
|
|
padding: 16px;
|
|
display: none;
|
|
z-index: 10001;
|
|
animation: slideUp 0.3s ease;
|
|
}
|
|
.error-content {
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
font-size: 15px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
.error-content:before {
|
|
content: '!';
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 24px;
|
|
height: 24px;
|
|
background: white;
|
|
color: #ff6b6b;
|
|
border-radius: 50%;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* 提醒表格 */
|
|
.reminder-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin: 15px 0;
|
|
background: white;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
|
|
}
|
|
.reminder-table th, .reminder-table td {
|
|
padding: 12px;
|
|
border-bottom: 1px solid #f1f3f6;
|
|
text-align: left;
|
|
}
|
|
.reminder-table th {
|
|
background: #f8f9fa;
|
|
color: #57606f;
|
|
font-weight: 600;
|
|
}
|
|
.reminder-table td {
|
|
padding: 12px;
|
|
border-bottom: 1px solid #f1f3f6;
|
|
text-align: left;
|
|
cursor: move; /* 添加拖拽光标 */
|
|
}
|
|
.reminder-table td.drag-handle {
|
|
cursor: grab; /* 添加拖拽光标 */
|
|
}
|
|
.reminder-table tr.dragging {
|
|
opacity: 0.5; /* 拖拽时透明度 */
|
|
}
|
|
.reminder-table td input, .reminder-table td select {
|
|
width: 100%;
|
|
padding: 8px;
|
|
border: 1px solid #e0e6ed;
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
color: #2d3436;
|
|
}
|
|
.reminder-table td button {
|
|
background: #e74c3c;
|
|
color: white;
|
|
border: none;
|
|
padding: 8px 16px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
.reminder-table td button:hover {
|
|
background: #c0392b;
|
|
}
|
|
.reminder-table td:last-child {
|
|
text-align: center;
|
|
}
|
|
|
|
/* 文件输入标签 */
|
|
.file-input-label {
|
|
display: inline-block;
|
|
padding: 10px 20px;
|
|
background: #27ae60;
|
|
color: white;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: background 0.3s ease;
|
|
}
|
|
.file-input-label:hover {
|
|
background: #219150;
|
|
}
|
|
.file-input-label input[type="file"] {
|
|
display: none;
|
|
}
|
|
|
|
/* 动作按钮 */
|
|
.action-btn {
|
|
background: #27ae60;
|
|
color: white;
|
|
border: none;
|
|
padding: 10px 20px;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-size: 15px;
|
|
font-weight: 500;
|
|
transition: all 0.2s ease;
|
|
box-shadow: 0 4px 12px rgba(39, 174, 96, 0.25);
|
|
margin-top: 10px;
|
|
}
|
|
.action-btn:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 6px 16px rgba(39, 174, 96, 0.35);
|
|
}
|
|
|
|
/* 明暗色切换 */
|
|
body.dark-mode {
|
|
background: #2d3436;
|
|
color: #e0e0e0;
|
|
}
|
|
body.dark-mode .status-box {
|
|
background: linear-gradient(145deg, #2d3436, #3a3a3a);
|
|
border: 1px solid #444;
|
|
}
|
|
body.dark-mode .time-display {
|
|
color: #ecf0f1;
|
|
}
|
|
body.dark-mode .status-label {
|
|
color: #bdc3c7;
|
|
}
|
|
body.dark-mode .schedule-table {
|
|
background: #3a3a3a;
|
|
}
|
|
body.dark-mode .schedule-table th {
|
|
background: #444;
|
|
color: #ecf0f1;
|
|
}
|
|
body.dark-mode .schedule-table td {
|
|
border-bottom: 1px solid #555;
|
|
}
|
|
body.dark-mode .current-class {
|
|
background: #34495e !important;
|
|
}
|
|
body.dark-mode .future-class {
|
|
background: #3a3a3a !important;
|
|
}
|
|
body.dark-mode .past-class {
|
|
background: #2d3436 !important;
|
|
color: #7f8c8d;
|
|
}
|
|
body.dark-mode .control-btn {
|
|
background: linear-gradient(135deg, #2980b9, #3498db);
|
|
}
|
|
body.dark-mode .control-btn:hover {
|
|
box-shadow: 0 6px 16px rgba(52, 152, 219, 0.35);
|
|
}
|
|
body.dark-mode .settings-panel {
|
|
background: rgba(45, 52, 54, 0.95);
|
|
border: 1px solid #444;
|
|
}
|
|
body.dark-mode .settings-panel h3 {
|
|
color: #ecf0f1;
|
|
}
|
|
body.dark-mode .settings-panel label {
|
|
color: #bdc3c7;
|
|
}
|
|
body.dark-mode .settings-panel input[type="number"] {
|
|
background: #3a3a3a;
|
|
color: #ecf0f1;
|
|
border: 1px solid #555;
|
|
}
|
|
body.dark-mode .settings-panel input[type="file"] {
|
|
background: #3a3a3a;
|
|
color: #ecf0f1;
|
|
border: 1px solid #555;
|
|
}
|
|
body.dark-mode .file-input-label {
|
|
background: #27ae60;
|
|
}
|
|
body.dark-mode .file-input-label:hover {
|
|
background: #219150;
|
|
}
|
|
body.dark-mode .info-container {
|
|
background: #2980b9;
|
|
}
|
|
body.dark-mode .info-content:before {
|
|
color: #2980b9;
|
|
}
|
|
body.dark-mode .error-container {
|
|
background: #c0392b;
|
|
}
|
|
body.dark-mode .error-content:before {
|
|
color: #c0392b;
|
|
}
|
|
body.dark-mode .reminder-table {
|
|
background: #3a3a3a;
|
|
}
|
|
body.dark-mode .reminder-table th {
|
|
background: #444;
|
|
color: #ecf0f1;
|
|
}
|
|
body.dark-mode .reminder-table td {
|
|
border-bottom: 1px solid #555;
|
|
}
|
|
body.dark-mode .reminder-table td input,
|
|
body.dark-mode .reminder-table td select {
|
|
background: #3a3a3a;
|
|
color: #ecf0f1;
|
|
border: 1px solid #555;
|
|
}
|
|
body.dark-mode .reminder-table td button {
|
|
background: #e74c3c;
|
|
}
|
|
body.dark-mode .reminder-table td button:hover {
|
|
background: #c0392b;
|
|
}
|
|
body.dark-mode .action-btn {
|
|
background: #27ae60;
|
|
}
|
|
body.dark-mode .action-btn:hover {
|
|
box-shadow: 0 6px 16px rgba(39, 174, 96, 0.35);
|
|
}
|
|
|
|
body.dark-mode .exam-message {
|
|
color: #bdc3c7;
|
|
}
|