feat: test and save results

This commit is contained in:
robin committed 2026-11-01 14:48:09 +01:00
1 parent 92807e857a
commit 255699a25c
12 files changed
+797 -3

No files matched your search

+83
View File
@@ -0,0 +1,83 @@
.rating {
margin-top: 1.5rem;
padding-top: 1.25rem;
border-top: 1px solid var(--border);
}
.rating fieldset {
margin: 0 0 1rem;
padding: 0;
border: 0;
min-width: 0;
}
.rating legend {
padding: 0;
margin-bottom: .75rem;
font-size: 1.05rem;
font-weight: 600;
}
.rating .choices {
display: grid;
grid-template-columns: 1fr 1fr 2fr;
gap: .5rem;
}
.rating .choice {
position: relative;
display: block;
}
/* Das echte Radio bleibt für Tastatur und Screenreader erhalten, ist aber unsichtbar */
.rating .choice input {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
opacity: 0;
cursor: pointer;
}
.rating .choice span {
display: grid;
place-items: center;
min-height: 3rem;
padding: 0 .75rem;
text-align: center;
font-weight: 600;
color: var(--text);
background: var(--surface);
border: 1px solid var(--border);
border-radius: 8px;
transition: border-color .15s, background-color .15s;
}
.rating .choice input:hover + span { border-color: var(--accent); }
.rating .choice input:checked + span {
color: var(--accent-text);
background: var(--accent);
border-color: var(--accent);
}
.rating .choice input:focus-visible + span {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.rating button[type="submit"] {
min-height: 2.75rem;
padding: 0 1.75rem;
font-weight: 600;
}
.rating button[type="submit"]:disabled { opacity: .5; cursor: default; }
@media (max-width: 480px) {
.rating .choices { grid-template-columns: 1fr 1fr; }
.rating .choice-none { grid-column: 1 / -1; }
.rating button[type="submit"] { width: 100%; }
}