feat: student name popover preview on /repertoire via htmx

This commit is contained in:
Pontoporeia
2026-04-24 13:11:15 +02:00
parent d961f9533c
commit ede53746ba
18 changed files with 237 additions and 278 deletions

View File

@@ -340,3 +340,70 @@
margin: var(--space-2xs) var(--space-m);
flex-shrink: 0;
}
/* ---- Student popover ---- */
.student-popover {
position: absolute;
z-index: 200;
width: 320px;
background: var(--bg-primary, #fff);
border: 1px solid var(--border-primary, #ddd);
box-shadow: 0 4px 18px rgba(0,0,0,.12);
border-radius: 4px;
overflow: hidden;
pointer-events: auto;
}
.student-popover[hidden] {
display: none;
}
.student-popover__iframe {
display: block;
width: 100%;
height: 400px;
border: none;
}
.student-preview__iframe {
display: block;
width: 100%;
height: 400px;
border: none;
}
.student-preview__name {
font-weight: 600;
font-size: var(--step--1);
padding: var(--space-xs) var(--space-s) var(--space-3xs);
margin: 0;
border-bottom: 1px solid var(--border-primary, #eee);
}
.student-preview__list {
list-style: none;
margin: 0;
padding: var(--space-3xs) 0;
}
.student-preview__list li {
border-bottom: 1px solid var(--border-primary, #eee);
}
.student-preview__list li:last-child {
border-bottom: none;
}
.student-preview__link {
display: block;
padding: var(--space-2xs) var(--space-s);
font-size: var(--step--1);
color: var(--text-primary);
text-decoration: none;
transition: background 0.12s, color 0.12s;
}
.student-preview__link:hover {
background: var(--accent-primary, #0055ff);
color: #fff;
}