Redesign study lesson UI: progress bar, sidebar nav, inline answers; v1.2.5

- Progress bar: thin gold bar under lesson label showing completed/total lessons
- Sidebar lesson navigator: all lessons listed with ✓/current/○ states, replaces static Study Track + Lesson Navigation blocks
- Notes panel moves to sidebar: clicking a block's Note button opens NoteCard in sidebar instead of inline, preserving reading position
- Inline reflection answers: textareas under each question auto-save to quiz API; replaces separate quiz page link
- Note buttons: "Note" / "✎ Note" text label instead of bare pencil icon for better discoverability
- Greek Word Study block hidden when lesson has no greek notes

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
nmemmertandClaude Sonnet 4.6 committed 2026-09-03 16:01:15 -04:00
1 parent 038ef2b039
commit 874dd0c89b
3 files changed
+328 -108

No files matched your search

+186 -5
View File
@@ -2668,17 +2668,20 @@
.note-anchor-btn {
position: absolute;
top: 1rem;
right: 1rem;
top: 0.85rem;
right: 0.85rem;
background: transparent;
border: 1px solid #3a3828;
border-radius: 6px;
color: #5a5440;
padding: 0.2rem 0.55rem;
font-size: 0.9rem;
padding: 0.22rem 0.65rem;
font-size: 0.78rem;
font-family: var(--brand-font-body);
font-weight: 500;
letter-spacing: 0.02em;
cursor: pointer;
transition: color 150ms, border-color 150ms, background 150ms;
line-height: 1;
line-height: 1.4;
z-index: 1;
}
@@ -2699,6 +2702,184 @@
border-color: rgba(224, 192, 112, 0.5);
}
/* ── Progress bar ────────────────────────────────────────────────── */
.study-lesson-progress-bar {
height: 3px;
background: rgba(201, 168, 76, 0.12);
border-radius: 2px;
margin: 0.35rem 0 0.1rem;
overflow: hidden;
}
.study-lesson-progress-fill {
height: 100%;
background: #c9a84c;
border-radius: 2px;
transition: width 0.4s ease;
min-width: 3px;
}
/* ── Sidebar lesson navigator ────────────────────────────────────── */
.study-lesson-nav-progress {
font-size: 0.72rem;
font-weight: 400;
color: #5a5440;
margin-left: 0.4rem;
letter-spacing: 0.02em;
}
.study-lesson-nav {
display: flex;
flex-direction: column;
gap: 1px;
margin-top: 0.25rem;
max-height: 320px;
overflow-y: auto;
}
.study-lesson-nav-item {
display: flex;
align-items: center;
gap: 0.55rem;
padding: 0.42rem 0.55rem;
border-radius: 7px;
border: 1px solid transparent;
text-decoration: none;
transition: background 120ms, border-color 120ms;
cursor: pointer;
}
.study-lesson-nav-item:hover {
background: rgba(201, 168, 76, 0.06);
}
.study-lesson-nav-item--current {
background: rgba(201, 168, 76, 0.1);
border-color: rgba(201, 168, 76, 0.2);
}
.study-lesson-nav-item--locked {
opacity: 0.45;
cursor: default;
pointer-events: none;
}
.study-lesson-nav-icon {
width: 20px;
height: 20px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.72rem;
font-weight: 700;
flex-shrink: 0;
background: rgba(255, 255, 255, 0.05);
color: #5a5440;
}
.study-lesson-nav-item--done .study-lesson-nav-icon {
background: rgba(201, 168, 76, 0.18);
color: #c9a84c;
}
.study-lesson-nav-item--current .study-lesson-nav-icon {
background: #c9a84c;
color: #0e0d0b;
}
.study-lesson-nav-label {
font-size: 0.8rem;
font-weight: 500;
color: #7a7060;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
min-width: 0;
}
.study-lesson-nav-item--current .study-lesson-nav-label {
color: #e2d4a8;
}
.study-lesson-nav-item--done .study-lesson-nav-label {
color: #5a5040;
}
.study-lesson-nav-actions {
display: flex;
justify-content: space-between;
align-items: center;
gap: 0.5rem;
margin-top: 0.25rem;
}
/* ── Notes count badge ────────────────────────────────────────────── */
.study-notes-count-badge {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 18px;
height: 18px;
border-radius: 9px;
background: rgba(201, 168, 76, 0.18);
color: #c9a84c;
font-size: 0.7rem;
font-weight: 600;
padding: 0 5px;
margin-left: 0.4rem;
font-family: var(--brand-font-body);
vertical-align: middle;
}
/* ── Inline reflection question answers ─────────────────────────── */
.study-detail-list--questions {
list-style: none;
padding: 0;
display: flex;
flex-direction: column;
gap: 1.25rem;
margin-top: 0.25rem;
}
.study-question-item {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.study-question-text {
color: var(--brand-muted);
font-size: 0.93rem;
line-height: 1.6;
margin: 0;
}
.study-question-answer {
width: 100%;
box-sizing: border-box;
background: rgba(201, 168, 76, 0.04);
border: 1px solid rgba(201, 168, 76, 0.15);
border-radius: 8px;
padding: 0.65rem 0.85rem;
font-size: 0.88rem;
font-family: var(--brand-font-body);
color: #f0ead8;
resize: vertical;
min-height: 72px;
line-height: 1.6;
transition: border-color 150ms;
}
.study-question-answer:focus {
outline: none;
border-color: rgba(201, 168, 76, 0.4);
}
.study-question-answer::placeholder {
color: #3a3020;
}
/* ── Sidebar anchor list ─────────────────────────────────────────── */
.note-anchor-list {
display: flex;