v1.0.0 — 评分规则大改 & UI优化

- 责善改过:纵向排列、输入框样式对齐立志、扁平化去内层卡片嵌套
- 自动保存:blur 触发替代 input 防抖,静默保存
- 日评分:3项全有 → 60分 + 多出条数×5;缺失 → 条数×5
- 周评分:日峰值累加制,取消百分比上限
- 修复 preset-note 溢出、清理冗余代码
This commit is contained in:
mac
2026-06-02 23:31:46 +08:00
parent 2545f39af9
commit 2d6eb4dc35
3 changed files with 77 additions and 75 deletions

View File

@@ -618,17 +618,14 @@ body {
/* 责善改过 横排双输入 */
.evening-row {
border: 1px solid var(--border);
border-radius: var(--radius-sm);
padding: 12px 10px 10px;
margin-bottom: 10px;
background: var(--bg);
transition: border-color 0.2s;
padding: 0 0 12px;
margin-bottom: 12px;
border-bottom: 1px solid var(--border);
}
.evening-row:focus-within {
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(74,108,247,0.06);
.evening-row:last-child {
border-bottom: none;
margin-bottom: 0;
}
.evening-header {
@@ -645,10 +642,10 @@ body {
}
.mistake-row {
display: grid;
grid-template-columns: 1fr 1fr;
display: flex;
flex-direction: column;
gap: 8px;
align-items: start;
align-items: stretch;
}
.mistake-row .col {
@@ -664,7 +661,23 @@ body {
padding-left: 2px;
}
.mistake-row input[type="text"] { width: 100%; }
.mistake-row input[type="text"] {
width: 100%;
padding: 9px 12px;
border: 1.5px solid var(--border);
border-radius: var(--radius-sm);
font-size: 13px;
font-family: inherit;
color: var(--text);
background: var(--bg);
transition: border-color 0.2s, background 0.2s;
}
.mistake-row input[type="text"]:focus {
outline: none;
border-color: var(--primary);
background: var(--card);
box-shadow: 0 0 0 3px rgba(74,108,247,0.08);
}
/* 勤学预设项目 */
@@ -705,7 +718,7 @@ body {
.preset-note {
display: none;
width: 100%;
width: calc(100% - 24px);
margin-top: 6px;
margin-left: 24px;
padding: 6px 10px;
@@ -1088,7 +1101,6 @@ body {
.weekly-overview { flex-direction: column; gap: 16px; text-align: center; }
.week-days-grid { grid-template-columns: repeat(4, 1fr); }
.history-grid { grid-template-columns: 1fr; }
.mistake-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {