mirror of
https://github.com/temetro/temetro.git
synced 2026-07-26 11:58:14 +00:00
9588d16869
Round-2 fixes to the 6 features: - Logo: enlarge the sidebar mark, drop the inline wordmark, and show "temetro" via a hover tooltip; bigger logo on the auth screens. - Sidebar footer: wrap the quick-nav, clinic switcher, and user menu in a single bordered block so it reads as one footer instead of three cards. - Sidebar nav: highlight the active page (usePathname + data-[active]), and add an Appointments & Schedule sub-page under Patients that auto-expands for the current section. New mock /appointments page; reachable via ⌘K. - Notes: redesign to a two-pane list + editor with an Empty state on the right when nothing is selected; fix the editor so text starts top-left (div instead of a centering <button>); compact the toolbar; add .note-content typography in globals.css so headings/lists/etc. actually render (the app has no typography plugin). - Patients: new PatientDetail laid out to fit the side Sheet (stacked full-width sections, no nested click-to-expand dialogs); keep Edit. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
315 lines
9.6 KiB
CSS
315 lines
9.6 KiB
CSS
@import "tailwindcss";
|
|
@import "tw-animate-css";
|
|
@import "shadcn/tailwind.css";
|
|
|
|
@custom-variant dark (&:is(.dark *));
|
|
|
|
@theme inline {
|
|
--color-background: var(--background);
|
|
--color-foreground: var(--foreground);
|
|
--font-sans: var(--font-sans);
|
|
--font-mono: var(--font-mono);
|
|
--font-heading: var(--font-heading);
|
|
--color-sidebar-ring: var(--sidebar-ring);
|
|
--color-sidebar-border: var(--sidebar-border);
|
|
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
--color-sidebar-accent: var(--sidebar-accent);
|
|
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
--color-sidebar-primary: var(--sidebar-primary);
|
|
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
--color-sidebar: var(--sidebar);
|
|
--color-chart-5: var(--chart-5);
|
|
--color-chart-4: var(--chart-4);
|
|
--color-chart-3: var(--chart-3);
|
|
--color-chart-2: var(--chart-2);
|
|
--color-chart-1: var(--chart-1);
|
|
--color-ring: var(--ring);
|
|
--color-input: var(--input);
|
|
--color-border: var(--border);
|
|
--color-destructive: var(--destructive);
|
|
--color-accent-foreground: var(--accent-foreground);
|
|
--color-accent: var(--accent);
|
|
--color-muted-foreground: var(--muted-foreground);
|
|
--color-muted: var(--muted);
|
|
--color-secondary-foreground: var(--secondary-foreground);
|
|
--color-secondary: var(--secondary);
|
|
--color-primary-foreground: var(--primary-foreground);
|
|
--color-primary: var(--primary);
|
|
--color-popover-foreground: var(--popover-foreground);
|
|
--color-popover: var(--popover);
|
|
--color-card-foreground: var(--card-foreground);
|
|
--color-card: var(--card);
|
|
--radius-sm: calc(var(--radius) * 0.6);
|
|
--radius-md: calc(var(--radius) * 0.8);
|
|
--radius-lg: var(--radius);
|
|
--radius-xl: calc(var(--radius) * 1.4);
|
|
--radius-2xl: calc(var(--radius) * 1.8);
|
|
--radius-3xl: calc(var(--radius) * 2.2);
|
|
--radius-4xl: calc(var(--radius) * 2.6);
|
|
--color-warning-foreground: var(--warning-foreground);
|
|
--color-warning: var(--warning);
|
|
--color-success-foreground: var(--success-foreground);
|
|
--color-success: var(--success);
|
|
--color-info-foreground: var(--info-foreground);
|
|
--color-info: var(--info);
|
|
--color-destructive-foreground: var(--destructive-foreground);
|
|
--animate-skeleton: skeleton 2s -1s infinite linear;
|
|
@keyframes skeleton {
|
|
to {
|
|
background-position: -200% 0;
|
|
}
|
|
}
|
|
--animate-toast-success-odd: toast-success-odd 0.32s cubic-bezier(0.5, 1, 0.89, 1);
|
|
--animate-toast-success-even: toast-success-even 0.32s cubic-bezier(0.5, 1, 0.89, 1);
|
|
--animate-toast-error-odd: toast-error-odd 0.28s cubic-bezier(0.5, 1, 0.89, 1);
|
|
--animate-toast-error-even: toast-error-even 0.28s cubic-bezier(0.5, 1, 0.89, 1)
|
|
;
|
|
@keyframes toast-success-odd {
|
|
0% {
|
|
scale: 1;}
|
|
30% {
|
|
scale: 1.025;}
|
|
60% {
|
|
scale: 0.99;}
|
|
100% {
|
|
scale: 1;}}
|
|
@keyframes toast-error-odd {
|
|
0% {
|
|
translate: 0 0;}
|
|
25% {
|
|
translate: -3px 0;}
|
|
50% {
|
|
translate: 3px 0;}
|
|
75% {
|
|
translate: -3px 0;}
|
|
100% {
|
|
translate: 0 0;}}
|
|
@keyframes toast-success-even {
|
|
0% {
|
|
scale: 1;}
|
|
30% {
|
|
scale: 1.025;}
|
|
60% {
|
|
scale: 0.99;}
|
|
100% {
|
|
scale: 1;}}
|
|
@keyframes toast-error-even {
|
|
0% {
|
|
translate: 0 0;}
|
|
25% {
|
|
translate: -3px 0;}
|
|
50% {
|
|
translate: 3px 0;}
|
|
75% {
|
|
translate: -3px 0;}
|
|
100% {
|
|
translate: 0 0;}}}
|
|
|
|
:root {
|
|
--card: var(--color-white);
|
|
--card-foreground: var(--color-neutral-800);
|
|
--popover: var(--color-white);
|
|
--popover-foreground: var(--color-neutral-800);
|
|
--primary: var(--color-neutral-800);
|
|
--primary-foreground: var(--color-neutral-50);
|
|
--secondary: --alpha(var(--color-black) / 4%);
|
|
--secondary-foreground: var(--color-neutral-800);
|
|
--muted: --alpha(var(--color-black) / 4%);
|
|
--muted-foreground: color-mix(in srgb, var(--color-neutral-500) 90%, var(--color-black));
|
|
--accent: --alpha(var(--color-black) / 4%);
|
|
--accent-foreground: var(--color-neutral-800);
|
|
--destructive: var(--color-red-500);
|
|
--border: --alpha(var(--color-black) / 8%);
|
|
--input: --alpha(var(--color-black) / 10%);
|
|
--ring: var(--color-neutral-400);
|
|
--chart-1: oklch(0.809 0.105 251.813);
|
|
--chart-2: oklch(0.623 0.214 259.815);
|
|
--chart-3: oklch(0.546 0.245 262.881);
|
|
--chart-4: oklch(0.488 0.243 264.376);
|
|
--chart-5: oklch(0.424 0.199 265.638);
|
|
--radius: 0.875rem;
|
|
--sidebar: var(--color-neutral-50);
|
|
--sidebar-foreground: var(--color-neutral-800);
|
|
--sidebar-primary: var(--color-neutral-800);
|
|
--sidebar-primary-foreground: var(--color-neutral-50);
|
|
--sidebar-accent: --alpha(var(--color-black) / 4%);
|
|
--sidebar-accent-foreground: var(--color-neutral-800);
|
|
--sidebar-border: --alpha(var(--color-black) / 8%);
|
|
--sidebar-ring: var(--color-neutral-400);
|
|
--background: var(--color-white);
|
|
--foreground: var(--color-neutral-800);
|
|
--destructive-foreground: var(--color-red-700);
|
|
--info: var(--color-blue-500);
|
|
--info-foreground: var(--color-blue-700);
|
|
--success: var(--color-emerald-500);
|
|
--success-foreground: var(--color-emerald-700);
|
|
--warning: var(--color-amber-500);
|
|
--warning-foreground: var(--color-amber-700);
|
|
}
|
|
|
|
/* COSS neutral dark palette: near-black canvas, neutral accent, hairline borders. */
|
|
.dark {
|
|
--background: color-mix(in srgb, var(--color-neutral-950) 95%, var(--color-white));
|
|
--foreground: var(--color-neutral-100);
|
|
--card: color-mix(in srgb, var(--background) 98%, var(--color-white));
|
|
--card-foreground: var(--color-neutral-100);
|
|
--popover: color-mix(in srgb, var(--background) 98%, var(--color-white));
|
|
--popover-foreground: var(--color-neutral-100);
|
|
--primary: var(--color-neutral-100);
|
|
--primary-foreground: var(--color-neutral-800);
|
|
--secondary: --alpha(var(--color-white) / 4%);
|
|
--secondary-foreground: var(--color-neutral-100);
|
|
--muted: --alpha(var(--color-white) / 4%);
|
|
--muted-foreground: color-mix(in srgb, var(--color-neutral-500) 90%, var(--color-white));
|
|
--accent: --alpha(var(--color-white) / 4%);
|
|
--accent-foreground: var(--color-neutral-100);
|
|
--destructive: color-mix(in srgb, var(--color-red-500) 90%, var(--color-white));
|
|
--border: --alpha(var(--color-white) / 6%);
|
|
--input: --alpha(var(--color-white) / 8%);
|
|
--ring: var(--color-neutral-500);
|
|
--chart-1: oklch(0.809 0.105 251.813);
|
|
--chart-2: oklch(0.623 0.214 259.815);
|
|
--chart-3: oklch(0.546 0.245 262.881);
|
|
--chart-4: oklch(0.488 0.243 264.376);
|
|
--chart-5: oklch(0.424 0.199 265.638);
|
|
--sidebar: var(--color-neutral-950);
|
|
--sidebar-foreground: var(--color-neutral-100);
|
|
--sidebar-primary: var(--color-neutral-100);
|
|
--sidebar-primary-foreground: var(--color-neutral-800);
|
|
--sidebar-accent: --alpha(var(--color-white) / 4%);
|
|
--sidebar-accent-foreground: var(--color-neutral-100);
|
|
--sidebar-border: --alpha(var(--color-white) / 6%);
|
|
--sidebar-ring: var(--color-neutral-500);
|
|
--destructive-foreground: var(--color-red-400);
|
|
--info: var(--color-blue-500);
|
|
--info-foreground: var(--color-blue-400);
|
|
--success: var(--color-emerald-500);
|
|
--success-foreground: var(--color-emerald-400);
|
|
--warning: var(--color-amber-500);
|
|
--warning-foreground: var(--color-amber-400);
|
|
}
|
|
|
|
@layer base {
|
|
* {
|
|
@apply border-border outline-ring/50;
|
|
scrollbar-width: thin;
|
|
scrollbar-color: color-mix(in srgb, var(--foreground) 20%, transparent) transparent;
|
|
}
|
|
*::-webkit-scrollbar {
|
|
width: 8px;
|
|
height: 8px;
|
|
}
|
|
*::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
*::-webkit-scrollbar-thumb {
|
|
background-color: color-mix(in srgb, var(--foreground) 20%, transparent);
|
|
border-radius: 9999px;
|
|
}
|
|
*::-webkit-scrollbar-thumb:hover {
|
|
background-color: color-mix(in srgb, var(--foreground) 32%, transparent);
|
|
}
|
|
body {
|
|
@apply bg-background text-foreground;
|
|
}
|
|
html {
|
|
@apply font-sans;
|
|
}
|
|
}
|
|
|
|
/*
|
|
* Rich-text styling for the Notes Tiptap editor. The app has no typography
|
|
* plugin, and Tailwind's preflight resets headings/lists — so without this,
|
|
* H1/H2/lists render identically to body text. Scoped to `.note-content`
|
|
* (set on the editor's contenteditable) and themed via semantic tokens.
|
|
*/
|
|
.note-content {
|
|
@apply text-foreground;
|
|
font-size: 0.95rem;
|
|
line-height: 1.7;
|
|
}
|
|
.note-content:focus {
|
|
outline: none;
|
|
}
|
|
.note-content > :first-child {
|
|
margin-top: 0;
|
|
}
|
|
.note-content p {
|
|
margin: 0.5rem 0;
|
|
}
|
|
.note-content h1 {
|
|
@apply font-heading font-bold;
|
|
font-size: 1.6rem;
|
|
line-height: 1.25;
|
|
margin: 1.2rem 0 0.6rem;
|
|
}
|
|
.note-content h2 {
|
|
@apply font-heading font-semibold;
|
|
font-size: 1.3rem;
|
|
line-height: 1.3;
|
|
margin: 1rem 0 0.5rem;
|
|
}
|
|
.note-content h3 {
|
|
@apply font-heading font-semibold;
|
|
font-size: 1.1rem;
|
|
margin: 0.9rem 0 0.4rem;
|
|
}
|
|
.note-content ul,
|
|
.note-content ol {
|
|
margin: 0.5rem 0;
|
|
padding-left: 1.5rem;
|
|
}
|
|
.note-content ul {
|
|
list-style: disc;
|
|
}
|
|
.note-content ol {
|
|
list-style: decimal;
|
|
}
|
|
.note-content li {
|
|
margin: 0.2rem 0;
|
|
}
|
|
.note-content li > p {
|
|
margin: 0;
|
|
}
|
|
.note-content blockquote {
|
|
@apply border-border text-muted-foreground;
|
|
border-left-width: 3px;
|
|
margin: 0.75rem 0;
|
|
padding-left: 1rem;
|
|
}
|
|
.note-content a {
|
|
@apply text-primary underline underline-offset-2;
|
|
}
|
|
.note-content strong {
|
|
font-weight: 600;
|
|
}
|
|
.note-content code {
|
|
@apply bg-muted font-mono;
|
|
border-radius: 0.375rem;
|
|
font-size: 0.85em;
|
|
padding: 0.1rem 0.35rem;
|
|
}
|
|
.note-content pre {
|
|
@apply bg-muted font-mono;
|
|
border-radius: 0.6rem;
|
|
margin: 0.75rem 0;
|
|
overflow-x: auto;
|
|
padding: 0.75rem 1rem;
|
|
}
|
|
.note-content pre code {
|
|
background: transparent;
|
|
padding: 0;
|
|
}
|
|
.note-content hr {
|
|
@apply border-border;
|
|
border-top-width: 1px;
|
|
margin: 1.25rem 0;
|
|
}
|
|
/* Tiptap placeholder (empty document) */
|
|
.note-content p.is-editor-empty:first-child::before {
|
|
@apply text-muted-foreground;
|
|
content: attr(data-placeholder);
|
|
float: left;
|
|
height: 0;
|
|
pointer-events: none;
|
|
} |