notes upgrade

This commit is contained in:
nmemmert
2026-06-18 13:43:17 -04:00
parent e0ed798741
commit dd43d0c3ea
9 changed files with 1591 additions and 155 deletions
+419 -3
View File
@@ -386,6 +386,17 @@
transform: translateY(-1px);
}
.btn-primary:disabled {
opacity: 0.55;
cursor: not-allowed;
transform: none;
}
.btn-secondary:disabled {
opacity: 0.55;
cursor: not-allowed;
}
.btn-secondary {
display: inline-flex;
align-items: center;
@@ -719,6 +730,78 @@
100% { background-position: -200% 0; }
}
/* Shared shimmer mixin used by multiple skeleton components */
.episode-embed-skeleton {
width: 100%;
height: 152px;
border-radius: 10px;
background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
background-size: 200% 100%;
animation: skeleton-shimmer 1.4s infinite;
}
/* Q&A skeleton cards */
.qa-skeleton-list {
display: flex;
flex-direction: column;
gap: 1rem;
margin-top: 1.5rem;
}
.qa-skeleton-card {
padding: 1.25rem 1.5rem;
border-radius: 10px;
border: 1px solid rgba(255,255,255,0.07);
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.qa-skeleton-line {
height: 14px;
border-radius: 6px;
width: 100%;
background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
background-size: 200% 100%;
animation: skeleton-shimmer 1.4s infinite;
}
.qa-skeleton-line--short { width: 38%; }
.qa-skeleton-line--medium { width: 68%; }
/* Certificate loading skeleton */
.cert-skeleton-wrap {
display: flex;
justify-content: center;
align-items: center;
min-height: 60vh;
padding: 2rem 1rem;
}
.cert-skeleton-card {
width: 100%;
max-width: 520px;
padding: 3rem 2.5rem;
border-radius: 16px;
border: 1px solid rgba(255,255,255,0.1);
display: flex;
flex-direction: column;
gap: 1.25rem;
align-items: center;
}
.cert-skeleton-line {
height: 14px;
border-radius: 6px;
background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
background-size: 200% 100%;
animation: skeleton-shimmer 1.4s infinite;
}
.cert-skeleton-line--short { width: 40%; }
.cert-skeleton-line--medium { width: 65%; }
.cert-skeleton-line--title { width: 80%; height: 28px; border-radius: 8px; }
.platform-buttons {
display: flex;
gap: 1rem;
@@ -1490,6 +1573,23 @@
font-weight: 500;
}
.study-lesson-announcement-close {
background: none;
border: none;
cursor: pointer;
font-size: 1.3rem;
line-height: 1;
color: #3a2800;
opacity: 0.65;
padding: 0.2rem 0.4rem;
flex-shrink: 0;
transition: opacity 150ms;
}
.study-lesson-announcement-close:hover {
opacity: 1;
}
.section-study-course-hero {
padding: 6.5rem 0 3rem;
background: linear-gradient(135deg, rgba(201, 168, 76, 0.08) 0%, rgba(201, 168, 76, 0.03) 40%, transparent 100%);
@@ -2483,6 +2583,261 @@
gap: 0.5rem;
}
/* ── Anchor note buttons (per lesson block) ────────────────────── */
.study-class-block--anchored {
position: relative;
}
.note-anchor-btn {
position: absolute;
top: 1rem;
right: 1rem;
background: transparent;
border: 1px solid #3a3828;
border-radius: 6px;
color: #5a5440;
padding: 0.2rem 0.55rem;
font-size: 0.9rem;
cursor: pointer;
transition: color 150ms, border-color 150ms, background 150ms;
line-height: 1;
z-index: 1;
}
.note-anchor-btn:hover {
color: #e0c070;
border-color: rgba(224, 192, 112, 0.45);
background: rgba(224, 192, 112, 0.06);
}
.note-anchor-btn--has-note {
color: #c9a84c;
border-color: rgba(201, 168, 76, 0.35);
}
.note-anchor-btn--open {
color: #e0c070;
background: rgba(224, 192, 112, 0.1);
border-color: rgba(224, 192, 112, 0.5);
}
/* ── Sidebar anchor list ─────────────────────────────────────────── */
.note-anchor-list {
display: flex;
flex-direction: column;
gap: 0.3rem;
}
.note-anchor-list-item {
display: flex;
align-items: center;
justify-content: space-between;
background: transparent;
border: 1px solid #27231b;
border-radius: 8px;
padding: 0.4rem 0.7rem;
color: #7a7060;
font-size: 0.83rem;
font-family: var(--brand-font-body);
cursor: pointer;
text-align: left;
transition: color 150ms, border-color 150ms, background 150ms;
width: 100%;
}
.note-anchor-list-item:hover {
color: #f0ead8;
border-color: #3a3828;
background: rgba(255, 255, 255, 0.03);
}
.note-anchor-list-item--has {
color: #c9a84c;
border-color: rgba(201, 168, 76, 0.3);
}
.note-anchor-list-item--open {
color: #e0c070;
background: rgba(224, 192, 112, 0.07);
border-color: rgba(224, 192, 112, 0.45);
}
.note-anchor-dot {
font-size: 0.45rem;
color: #c9a84c;
flex-shrink: 0;
}
/* ── NoteCard (WYSIWYG inline editor) ────────────────────────────── */
.note-card {
margin-top: 1.25rem;
border-radius: 14px;
border: 1px solid rgba(224, 192, 112, 0.22);
background: #14130f;
overflow: hidden;
}
.note-card-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.6rem 1rem;
border-bottom: 1px solid #27231b;
}
.note-card-label {
color: #c9a84c;
font-size: 0.82rem;
font-weight: 600;
letter-spacing: 0.04em;
font-family: var(--brand-font-body);
}
.note-card-autosave {
color: #7a9c6a;
font-size: 0.78rem;
font-family: var(--brand-font-body);
}
.note-card-close {
background: transparent;
border: none;
color: #6a6050;
font-size: 1.1rem;
cursor: pointer;
padding: 0 0.2rem;
line-height: 1;
transition: color 150ms;
}
.note-card-close:hover {
color: #e0c070;
}
.note-card-toolbar {
display: flex;
align-items: center;
gap: 0.2rem;
padding: 0.35rem 0.75rem;
border-bottom: 1px solid #27231b;
}
.note-tool {
background: transparent;
border: 1px solid transparent;
border-radius: 5px;
color: #8a8070;
padding: 0.2rem 0.5rem;
font-size: 0.88rem;
font-family: var(--brand-font-body);
cursor: pointer;
transition: color 150ms, background 150ms, border-color 150ms;
min-width: 28px;
text-align: center;
line-height: 1.4;
}
.note-tool:hover:not(:disabled) {
color: #f0ead8;
background: #1f1d19;
}
.note-tool:disabled {
opacity: 0.3;
cursor: default;
}
.note-tool--active {
color: #e0c070;
background: rgba(224, 192, 112, 0.12);
border-color: rgba(224, 192, 112, 0.28);
}
.note-tool-divider {
width: 1px;
height: 18px;
background: #2a2518;
margin: 0 0.2rem;
flex-shrink: 0;
}
.note-card-editor {
padding: 0.85rem 1rem;
min-height: 120px;
}
.note-card-editor .tiptap {
outline: none;
color: #f0ead8;
font-family: var(--brand-font-body);
font-size: 0.95rem;
line-height: 1.65;
}
.note-card-editor .tiptap p {
margin: 0 0 0.5em;
}
.note-card-editor .tiptap p:last-child {
margin-bottom: 0;
}
.note-card-editor .tiptap ul,
.note-card-editor .tiptap ol {
padding-left: 1.4rem;
margin: 0 0 0.5em;
}
.note-card-editor .tiptap li {
margin-bottom: 0.25rem;
}
.note-card-editor .tiptap strong {
color: #f4edd5;
font-weight: 700;
}
.note-card-editor .tiptap em {
color: #d4c898;
}
.note-card-editor .tiptap .is-editor-empty:first-child::before {
content: attr(data-placeholder);
float: left;
color: #4a4535;
pointer-events: none;
height: 0;
}
/* ── Notes page rich content display ─────────────────────────────── */
.study-note-rich-content {
color: #d8cca8;
font-size: 0.95rem;
line-height: 1.7;
}
.study-note-rich-content p {
margin: 0 0 0.6em;
}
.study-note-rich-content ul,
.study-note-rich-content ol {
padding-left: 1.5rem;
margin: 0 0 0.6em;
}
.study-note-rich-content li {
margin-bottom: 0.3rem;
}
.study-note-rich-content strong {
color: #f0ead8;
}
.study-note-rich-content em {
color: #d4c898;
}
.study-auth-box label {
font-size: 0.8rem;
letter-spacing: 0.06em;
@@ -2537,6 +2892,25 @@
font-size: 0.92rem;
}
.study-modal-overlay {
position: fixed;
inset: 0;
background: rgba(12, 11, 10, 0.8);
display: flex;
align-items: center;
justify-content: center;
z-index: 50;
padding: 1rem;
}
.study-modal-box {
width: min(540px, 100%);
background: #1b1a16;
border: 1px solid #3c3a31;
border-radius: 18px;
padding: 2.5rem 2rem;
}
.study-detail-nav {
display: flex;
align-items: stretch;
@@ -2798,6 +3172,15 @@
background: var(--brand-gold-light, #e0c070);
}
@keyframes buffering-pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.4; }
}
.episode-audio-player__play--buffering {
animation: buffering-pulse 1s ease-in-out infinite;
}
.episode-audio-player__play svg {
width: 14px;
height: 14px;
@@ -3250,6 +3633,12 @@
margin: 0.25rem 0 0 !important;
}
.study-signup-field-error {
font-size: 0.82rem;
color: #e57373;
margin: 0.2rem 0 0.1rem;
}
.study-signup-success {
font-size: 1.05rem !important;
color: #81c784 !important;
@@ -3658,6 +4047,26 @@
color: var(--brand-gold);
}
.download-clear-link {
background: none;
border: none;
cursor: pointer;
font-family: var(--brand-font-body);
font-size: 0.82rem;
font-weight: 600;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--brand-muted);
padding: 0.35rem 0.5rem;
transition: color 140ms ease;
text-decoration: underline;
text-underline-offset: 3px;
}
.download-clear-link:hover {
color: var(--brand-warm-white);
}
.download-empty-state {
text-align: center;
color: var(--brand-muted);
@@ -5457,7 +5866,10 @@
}
.header-nav {
display: none;
max-height: 0;
opacity: 0;
pointer-events: none;
overflow: hidden;
position: absolute;
top: 100%;
left: 0;
@@ -5466,13 +5878,17 @@
flex-direction: column;
align-items: stretch;
gap: 0;
padding: 0.5rem 1rem 1rem;
padding: 0 1rem;
background: rgba(10, 10, 8, 0.98);
border-bottom: 1px solid rgba(201, 168, 76, 0.2);
transition: max-height 0.28s ease, opacity 0.22s ease, padding 0.28s ease;
}
.header-nav--open {
display: flex;
max-height: 500px;
opacity: 1;
pointer-events: auto;
padding: 0.5rem 1rem 1rem;
}
.header-nav .header-nav-link {