forge
Explore
Log in

Don't you dare go Hollow

🎨 neutralize decorative metric-card borders on exam detail

Browse files at this commit

109b1e41d0b64c2a519a853efeaa03dd5af66dcdBurak BoduroğluParent: ae4184f
  • style
    • 🎨 neutralize decorative metric-card borders on exam detail
Show full message
style: 🎨 neutralize decorative metric-card borders on exam detail
- drop per-card rainbow borders (sky/violet/rose/amber/emerald) on info tiles,
  stat cards and the header; use neutral border-border, no shadows
- keep semantic status chip + alerts unchanged
src/pages/exam-detail-page.tsxmodified+11 -11
@@ -393,7 +393,7 @@ function ExamDetailContent() {
393393 <PageHeader
394394 title={ex().title}
395395 description={ex().description || "—"}
396- class="border-rose-500/30 shadow-sm"
396+ class="border-border/70"
397397 actions={
398398 <div class="flex flex-wrap items-center gap-2">
399399 <Show when={isStudent() && !isDraft() && isSittable()}>
@@ -452,14 +452,14 @@ function ExamDetailContent() {
452452 <span class="mr-1.5 inline-block h-1.5 w-1.5 rounded-full bg-muted-foreground" />
453453 {detailStatusLabel()}
454454 </Badge>
455- <Badge variant="outline" class="rounded-full border-rose-500/30">
455+ <Badge variant="outline" class="rounded-full">
456456 {examKindLabel(String(ex().kind), t)}
457457 </Badge>
458458 </div>
459459 </PageHeader>
460460 </div>
461461 <div class="grid gap-2 sm:grid-cols-2 xl:grid-cols-4">
462- <div class="flex min-w-0 items-center gap-3 rounded-lg border border-sky-500/30 bg-card p-3.5">
462+ <div class="flex min-w-0 items-center gap-3 rounded-lg border border-border/70 bg-card p-3.5">
463463 <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-muted text-muted-foreground">
464464 <IconExam class="h-4 w-4" />
465465 </span>
@@ -468,7 +468,7 @@ function ExamDetailContent() {
468468 <p class="truncate text-sm font-semibold">{examModeLabel(ex().mode)}</p>
469469 </div>
470470 </div>
471- <div class="flex min-w-0 items-center gap-3 rounded-lg border border-violet-500/30 bg-card p-3.5">
471+ <div class="flex min-w-0 items-center gap-3 rounded-lg border border-border/70 bg-card p-3.5">
472472 <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-muted text-muted-foreground">
473473 <IconRefresh class="h-4 w-4" />
474474 </span>
@@ -484,7 +484,7 @@ function ExamDetailContent() {
484484 </Show>
485485 </div>
486486 </div>
487- <div class="flex min-w-0 items-center gap-3 rounded-lg border border-rose-500/30 bg-card p-3.5">
487+ <div class="flex min-w-0 items-center gap-3 rounded-lg border border-border/70 bg-card p-3.5">
488488 <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-muted text-muted-foreground">
489489 <IconCalendarDays class="h-4 w-4" />
490490 </span>
@@ -498,7 +498,7 @@ function ExamDetailContent() {
498498 </Show>
499499 </div>
500500 </div>
501- <div class="flex min-w-0 items-center gap-3 rounded-lg border border-amber-500/30 bg-card p-3.5">
501+ <div class="flex min-w-0 items-center gap-3 rounded-lg border border-border/70 bg-card p-3.5">
502502 <span class="flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-muted text-muted-foreground">
503503 <IconClock class="h-4 w-4" />
504504 </span>
@@ -618,7 +618,7 @@ function ExamDetailContent() {
618618
619619 <Show when={isStudent() && ownResult()}>
620620 {(result) => (
621- <section class="space-y-4 rounded-lg border border-emerald-500/30 bg-card p-4" aria-labelledby="own-exam-result">
621+ <section class="space-y-4 rounded-lg border border-border/70 bg-card p-4" aria-labelledby="own-exam-result">
622622 <div class="flex flex-wrap items-center gap-3">
623623 <span class="flex h-9 w-9 items-center justify-center rounded-xl bg-muted text-muted-foreground">
624624 <IconClipboardCheck class="h-4 w-4" />
@@ -646,19 +646,19 @@ function ExamDetailContent() {
646646 <Show when={stats()}>
647647 {(s) => (
648648 <div class="grid gap-2 text-sm sm:grid-cols-2 lg:grid-cols-4">
649- <div class="rounded-xl border border-violet-500/30 bg-card p-4">
649+ <div class="rounded-xl border border-border/70 bg-card p-4">
650650 <p class="text-xs font-medium uppercase tracking-[0.08em] text-muted-foreground">{t("exams.graded")}</p>
651651 <p class="mono mt-1 text-2xl font-semibold tabular-nums">{s().graded}</p>
652652 </div>
653- <div class="rounded-xl border border-sky-500/30 bg-card p-4">
653+ <div class="rounded-xl border border-border/70 bg-card p-4">
654654 <p class="text-xs font-medium uppercase tracking-[0.08em] text-muted-foreground">{t("exams.average")}</p>
655655 <p class="mono mt-1 text-2xl font-semibold tabular-nums">{s().average == null ? "—" : s().average}</p>
656656 </div>
657- <div class="rounded-xl border border-amber-500/30 bg-card p-4">
657+ <div class="rounded-xl border border-border/70 bg-card p-4">
658658 <p class="text-xs font-medium uppercase tracking-[0.08em] text-muted-foreground">{t("exams.min")}</p>
659659 <p class="mono mt-1 text-2xl font-semibold tabular-nums">{s().min == null ? "—" : s().min}</p>
660660 </div>
661- <div class="rounded-xl border border-emerald-500/30 bg-card p-4">
661+ <div class="rounded-xl border border-border/70 bg-card p-4">
662662 <p class="text-xs font-medium uppercase tracking-[0.08em] text-muted-foreground">{t("exams.max")}</p>
663663 <p class="mono mt-1 text-2xl font-semibold tabular-nums">{s().max == null ? "—" : s().max}</p>
664664 </div>