xtablo-source/backend/internal/web/ui/badge.css
Arthur Belleville a30a6f9088
feat(13-02): replace CSS files, migrate card.templ to typed API, update all template hardcodes
- button.css: replaced with go-backend multi-class selector version + ghost variant rules
- badge.css: replaced with go-backend pill-shape version + primary variant
- card.css: replaced with go-backend token-based header/body/footer version
- card.templ: migrated from children passthrough to typed CardProps{Header/Body/Footer}
- ui_test.go: rewrote TestCard_RendersChildren -> TestCard_RendersTypedRegions; added TestBadge_PrimaryVariant; added textComponent helper + io import
- auth_login.templ, auth_signup.templ: migrated Card usage to typed CardProps API
- tablos.templ: migrated TabloCard to typed CardProps API with extracted tabloCardBody
- planning.templ, tasks.templ, events.templ, etapes.templ: all compound button class strings updated to multi-class pattern
- go test ./... passes (all packages green)
- just generate succeeds
2026-05-16 13:55:30 +02:00

42 lines
1.1 KiB
CSS

/* badge.css — pill-shape badges ported from go-backend. */
.ui-badge {
border: 1px solid transparent;
border-radius: 999px;
display: inline-flex;
font-size: 0.75rem;
font-weight: 600;
line-height: 1.2;
padding: 0.3rem 0.75rem;
}
.ui-badge-info {
background: var(--color-status-info-soft-bg);
border-color: var(--color-status-info-soft-border);
color: var(--color-status-info-foreground);
}
.ui-badge-warning {
background: var(--color-status-warning-soft-bg);
border-color: var(--color-status-warning-soft-border);
color: var(--color-status-warning-foreground);
}
.ui-badge-success {
background: var(--color-status-success-soft-bg);
border-color: var(--color-status-success-soft-border);
color: var(--color-status-success-foreground);
}
.ui-badge-danger {
background: var(--color-status-danger-soft-bg);
border-color: var(--color-status-danger-soft-border);
color: var(--color-status-danger-foreground);
}
/* Primary variant — new in Phase 13, D-CA02 */
.ui-badge-primary {
background: var(--color-surface-brand-soft);
border-color: rgba(128, 78, 236, 0.3);
color: var(--color-text-brand);
}