mirror of
https://github.com/bitbaum/vitareba.git
synced 2026-12-04 22:47:52 +01:00
* fix(ui): mobile patient table fits a 390px card Walkthrough at 390px showed the triage table still ~50px wider than its card: desktop cell padding, and the email ellipsis targeting a <p> that is actually a <div> — plus max-width on the td, which auto table layout ignores; the cap now sits on the inner divs. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * feat(design): token discipline with CI teeth, clinic-timezone dates, skeleton loading Design discipline (SSOT enforced, not aspirational): - Normalize every raw border-radius, transition duration, rgba() and hex in *.module.css to the globals.css token scale (26 files); add --radius-2xs (2px bars) and --radius-pill (2rem pills) - lib/design-discipline.test.ts: 8 CI rules — no raw colors in css modules, radius/transition must use tokens, every var() must resolve in globals.css, no hex in TSX, style={{}} only in a data-driven allowlist (with staleness check) UX intuition: - formatDateISO now uses Europe/Zurich (CLINIC_TIMEZONE SSOT in lib/config/company.ts) instead of UTC: a 00:30 check-in no longer lands on yesterday's date, overwriting it and killing the streak; client and server now agree on 'today' even when the patient travels - Shared <LoadingState/> shimmer skeleton (reduced-motion aware) replaces nine bare 'Loading…' strings across portal and admin Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
84 lines
1.3 KiB
CSS
84 lines
1.3 KiB
CSS
.section {
|
|
background: var(--ink);
|
|
padding: 4rem 1.5rem;
|
|
}
|
|
|
|
.grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 2rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.body {
|
|
font-size: 0.88rem;
|
|
color: var(--white-40);
|
|
line-height: 1.85;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.bodyMb {
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.cards {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 0.8rem;
|
|
}
|
|
|
|
.card {
|
|
border: 1px solid var(--white-8);
|
|
border-radius: var(--radius-sm);
|
|
padding: 1.2rem;
|
|
}
|
|
|
|
.cardLabel {
|
|
font-size: 0.6rem;
|
|
letter-spacing: 0.2em;
|
|
text-transform: uppercase;
|
|
color: var(--gold-70);
|
|
margin-bottom: 0.4rem;
|
|
}
|
|
|
|
.cardText {
|
|
font-size: 0.78rem;
|
|
color: var(--white-40);
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.enquireLink {
|
|
display: inline-block;
|
|
border: 1px solid var(--white-18);
|
|
color: var(--white-55);
|
|
padding: 0.85rem 2rem;
|
|
font-size: 0.7rem;
|
|
letter-spacing: 0.16em;
|
|
text-transform: uppercase;
|
|
text-decoration: none;
|
|
font-family: var(--font-dm-sans), sans-serif;
|
|
border-radius: var(--radius-xs);
|
|
transition: all var(--transition-normal);
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
.enquireLink:hover {
|
|
border-color: var(--white-40);
|
|
color: var(--white-80);
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.section {
|
|
padding: 6rem 3rem;
|
|
}
|
|
|
|
.grid {
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 5rem;
|
|
}
|
|
|
|
.cards {
|
|
grid-template-columns: 1fr 1fr;
|
|
}
|
|
}
|