Show one question per card in the take-quiz screen, with prev/next arrows
Some checks failed
CI/CD / build-test-deploy (pull_request) Failing after 2s
Some checks failed
CI/CD / build-test-deploy (pull_request) Failing after 2s
Replaces the single long scrollable list of every question with one card at a time plus arrow navigation, so a student's focus stays on the current question instead of the whole quiz at once.
This commit is contained in:
@@ -297,28 +297,27 @@ a {
|
||||
/* ============================================================
|
||||
Taking a quiz
|
||||
============================================================ */
|
||||
.question {
|
||||
.question-nav {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
border-top: 1px solid var(--line);
|
||||
padding: 1.25rem 0;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.question:first-of-type {
|
||||
border-top: none;
|
||||
.question-card {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
.question-number {
|
||||
display: block;
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.85rem;
|
||||
color: var(--brass);
|
||||
flex-shrink: 0;
|
||||
padding-top: 0.15rem;
|
||||
}
|
||||
|
||||
.question-body {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
margin-bottom: 0.6rem;
|
||||
}
|
||||
|
||||
.question-text {
|
||||
@@ -326,6 +325,23 @@ a {
|
||||
margin-bottom: 0.6rem;
|
||||
}
|
||||
|
||||
.nav-arrow {
|
||||
flex-shrink: 0;
|
||||
width: 2.5rem;
|
||||
height: 2.5rem;
|
||||
padding: 0;
|
||||
font-size: 1.3rem;
|
||||
line-height: 1;
|
||||
border-radius: 50%;
|
||||
background: var(--surface);
|
||||
color: var(--ink);
|
||||
border: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.nav-arrow:hover:not(:disabled) {
|
||||
background: var(--brass-soft);
|
||||
}
|
||||
|
||||
.option {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -730,6 +746,24 @@ a {
|
||||
padding: 0.3rem 0;
|
||||
}
|
||||
|
||||
.topic-checkbox-list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0 1rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.topic-picker-section {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
padding: 0.75rem 1rem;
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.topic-picker-section h4 {
|
||||
margin: 0 0 0.5rem;
|
||||
}
|
||||
|
||||
/* ---- Modal overlay (quiz create/edit form) ---- */
|
||||
|
||||
.modal-backdrop {
|
||||
|
||||
Reference in New Issue
Block a user