forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiB078b459Burak Boduroğlu2 months ago671 commits

index.css645 lines, 21.2 KiBHistoryRawDownload
1@import 'tailwindcss';
2
3@plugin 'tailwindcss-animate';
4
5@custom-variant dark (&:is([data-kb-theme="dark"] *));
6
7@utility container {
8 margin-inline: auto;
9 padding-inline: 1.25rem;
10 @media (width >= --theme(--breakpoint-sm)) {
11 max-width: none;
12 }
13 @media (width >= 1280px) {
14 max-width: 1280px;
15 }
16}
17
18@theme {
19 --font-sans:
20 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
21 sans-serif;
22
23 --color-border: hsl(var(--border));
24 --color-input: hsl(var(--input));
25 --color-ring: hsl(var(--ring));
26 --color-background: hsl(var(--background));
27 --color-foreground: hsl(var(--foreground));
28
29 --color-primary: hsl(var(--primary));
30 --color-primary-foreground: hsl(var(--primary-foreground));
31
32 --color-secondary: hsl(var(--secondary));
33 --color-secondary-foreground: hsl(var(--secondary-foreground));
34
35 --color-destructive: hsl(var(--destructive));
36 --color-destructive-foreground: hsl(var(--destructive-foreground));
37
38 --color-muted: hsl(var(--muted));
39 --color-muted-foreground: hsl(var(--muted-foreground));
40
41 --color-accent: hsl(var(--accent));
42 --color-accent-foreground: hsl(var(--accent-foreground));
43
44 --color-popover: hsl(var(--popover));
45 --color-popover-foreground: hsl(var(--popover-foreground));
46
47 --color-card: hsl(var(--card));
48 --color-card-foreground: hsl(var(--card-foreground));
49
50 --color-success: hsl(var(--success));
51 --color-warning: hsl(var(--warning));
52 --color-info: hsl(var(--info));
53 /* Text-on-surface variants: the fills above are for buttons, dots and
54 tints; small colored text uses these, which reach WCAG AA (4.5:1) on the
55 page and card backgrounds in both themes. */
56 --color-primary-text: hsl(var(--primary-text));
57 --color-success-text: hsl(var(--success-text));
58 --color-warning-text: hsl(var(--warning-text));
59 --color-info-text: hsl(var(--info-text));
60 --color-destructive-text: hsl(var(--destructive-text));
61
62 --color-sidebar: hsl(var(--sidebar));
63 --color-sidebar-foreground: hsl(var(--sidebar-foreground));
64
65 /* Hezarfen Figma semantic aliases. Keep page code semantic while matching
66 the shared design vocabulary across light and dark modes. */
67 --color-brand: hsl(var(--brand));
68 --color-brand-accent: hsl(var(--brand-accent));
69 --color-brand-hover: hsl(var(--brand-hover));
70 --color-brand-ink: hsl(var(--brand-ink));
71 --color-brand-wash: hsl(var(--brand-wash));
72 --color-surface-base: hsl(var(--surface-base));
73 --color-surface-overlay: hsl(var(--surface-overlay));
74 --color-surface-tint: hsl(var(--surface-tint));
75 --color-surface-fill: hsl(var(--surface-fill));
76 --color-text-strong: hsl(var(--text-strong));
77 --color-text-default: hsl(var(--text-default));
78 --color-text-subtle: hsl(var(--text-subtle));
79 --color-text-placeholder: hsl(var(--text-placeholder));
80 --color-border-line: hsl(var(--border-line));
81 --color-border-hairline: hsl(var(--border-hairline));
82
83 /* bdash radius scale: base 0.5rem, sm=r-4px, md=r-2px, lg=r, xl=r+4px */
84 --radius-3xl: calc(var(--radius) + 12px);
85 --radius-2xl: calc(var(--radius) + 8px);
86 --radius-xl: calc(var(--radius) + 4px);
87 --radius-lg: var(--radius);
88 --radius-md: calc(var(--radius) - 2px);
89 --radius-sm: calc(var(--radius) - 4px);
90
91 --animate-fade-up: fade-up 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
92 --animate-accordion-down: accordion-down 0.25s cubic-bezier(0.16, 1, 0.3, 1);
93 --animate-accordion-up: accordion-up 0.25s cubic-bezier(0.16, 1, 0.3, 1);
94
95 @keyframes fade-up {
96 from {
97 opacity: 0;
98 transform: translateY(8px);
99 }
100 to {
101 opacity: 1;
102 transform: translateY(0);
103 }
104 }
105 @keyframes accordion-down {
106 from {
107 height: 0;
108 }
109 to {
110 height: var(--kb-collapsible-content-height);
111 }
112 }
113 @keyframes accordion-up {
114 from {
115 height: var(--kb-collapsible-content-height);
116 }
117 to {
118 height: 0;
119 }
120 }
121}
122
123/*
124 The default border color has changed to `currentcolor` in Tailwind CSS v4,
125 so we've added these compatibility styles to make sure everything still
126 looks the same as it did with Tailwind CSS v3.
127
128 If we ever want to remove these styles, we need to add an explicit border
129 color utility to any element that depends on these defaults.
130*/
131@layer base {
132 button:not(:disabled),
133 [role='button']:not([aria-disabled='true']) {
134 cursor: pointer;
135 }
136
137 *,
138 ::after,
139 ::before,
140 ::backdrop,
141 ::file-selector-button {
142 border-color: var(--color-gray-200, currentcolor);
143 }
144}
145
146@utility topbar-control {
147 @apply border border-border/70 bg-transparent text-muted-foreground transition-colors hover:border-border hover:bg-muted/60 hover:text-foreground;
148}
149
150/* AI action button uses the landing-page brand blue. */
151@utility topbar-ai-control {
152 @apply border border-brand/20 bg-brand/10 text-brand transition-colors hover:bg-brand/16 hover:text-brand;
153}
154
155@utility data-shell {
156 @apply rounded-xl border border-border-line bg-surface-base;
157}
158
159@utility data-table-wrap {
160 @apply isolate max-h-[65vh] overflow-auto rounded-xl border border-border-line bg-surface-base;
161}
162
163@utility data-table {
164 @apply w-full caption-bottom text-sm;
165
166 & thead {
167 @apply sticky top-0 z-20 border-b border-border-hairline text-text-subtle;
168 background-color: color-mix(in srgb, hsl(var(--muted)) 55%, hsl(var(--card)));
169 }
170
171 & th {
172 /* No text-align here: `.data-table th` would out-specify the per-column
173 * text-right/center utility on TableHead and force every header left. The
174 * TableHead base class provides the left default; alignment stays utility-driven.
175 * Title Case (no uppercase transform), light weight, muted. */
176 @apply h-11 overflow-hidden text-ellipsis whitespace-nowrap px-3 text-xs font-medium tracking-normal text-text-subtle first:pl-4 last:pr-4;
177 background-color: color-mix(in srgb, hsl(var(--muted)) 55%, hsl(var(--card)));
178 }
179
180 & td {
181 /* tabular-nums: vertically aligned digits without a mono font. */
182 @apply whitespace-nowrap px-3 py-3 align-middle text-sm font-normal text-foreground tabular-nums first:pl-4 last:pr-4;
183 }
184
185 & tbody tr {
186 @apply border-b border-border-hairline transition-colors data-[state=selected]:bg-muted;
187 background-color: hsl(var(--card));
188 }
189
190 & tbody tr:hover {
191 background-color: color-mix(in oklab, hsl(var(--muted)) 40%, hsl(var(--card)));
192 }
193
194 & tbody tr[data-state='selected'] {
195 background-color: hsl(var(--muted));
196 }
197}
198
199/*
200 * Yatay kaydırmada sabit kalan (dondurulmuş) kolonlar. Altındaki içerik görünmesin
201 * diye opak olmalı ama zebra/hover satır tonuyla da eşleşmeli: gövde hücresi satır
202 * tonunu `inherit` ile alır, başlık hücresi başlık tonunu kullanır. Kayan içerikle
203 * arasında görsel dikiş için kenara ince çizgi + yumuşak gölge eklenir.
204 */
205@utility table-sticky-left {
206 background-color: inherit;
207 border-right: 1px solid hsl(var(--border));
208 box-shadow: 4px 0 6px -6px color-mix(in srgb, hsl(var(--foreground)) 12%, transparent);
209}
210
211@utility table-sticky-right {
212 background-color: inherit;
213 border-left: 1px solid hsl(var(--border));
214 box-shadow: -4px 0 6px -6px color-mix(in srgb, hsl(var(--foreground)) 12%, transparent);
215}
216
217/* Dondurulmuş başlık hücreleri gövde hücrelerinin üstünde opak kalmalı. */
218@utility table-sticky-head-left {
219 background-color: color-mix(in srgb, hsl(var(--muted)) 55%, hsl(var(--card)));
220 border-right: 1px solid hsl(var(--border));
221 box-shadow: 4px 0 6px -6px color-mix(in srgb, hsl(var(--foreground)) 12%, transparent);
222}
223
224@utility table-sticky-head-right {
225 background-color: color-mix(in srgb, hsl(var(--muted)) 55%, hsl(var(--card)));
226 border-left: 1px solid hsl(var(--border));
227 box-shadow: -4px 0 6px -6px color-mix(in srgb, hsl(var(--foreground)) 12%, transparent);
228}
229
230/* İşlemler sütunu: sabit 110x45. */
231.data-table td.table-action-cell,
232.data-table th.table-action-cell {
233 width: 110px;
234 min-width: 110px;
235 max-width: 110px;
236 height: 45px;
237 padding-top: 0;
238 padding-bottom: 0;
239}
240
241/* Insight ledgers are intentionally spreadsheet-like: centered metrics and
242 * explicit cell rules make a wide scan easier than a card-style table. */
243.insight-grid-table th,
244.insight-grid-table td {
245 border-right: 1px solid hsl(var(--border));
246 text-align: center;
247}
248
249.insight-grid-table th:last-child,
250.insight-grid-table td:last-child {
251 border-right: 0;
252}
253
254.insight-grid-table tbody tr:nth-child(even) {
255 background-color: color-mix(in oklab, hsl(var(--muted)) 18%, hsl(var(--card)));
256}
257
258@utility detail-breadcrumb {
259 @apply flex flex-wrap items-center gap-1.5 text-xs text-muted-foreground font-medium;
260
261 & a {
262 @apply transition-colors hover:text-foreground;
263 }
264}
265
266@utility detail-action-group {
267 @apply flex w-full flex-wrap items-center gap-1.5 rounded-lg border border-border/80 bg-card p-1.5 shadow-sm sm:w-auto;
268}
269
270@utility detail-action-divider {
271 @apply flex flex-1 items-center gap-1.5 border-t border-border pt-1.5 sm:ml-1 sm:flex-none sm:border-l sm:border-t-0 sm:pl-1.5 sm:pt-0;
272}
273
274@utility tab-panel-header {
275 @apply flex flex-wrap items-center justify-between gap-3 rounded-lg border border-border/60 bg-muted/20 px-3 py-2;
276}
277
278@utility tab-panel-note {
279 @apply rounded-lg border border-border/60 bg-muted/20 px-3 py-2 text-sm text-muted-foreground;
280}
281
282@utility detail-metric-card {
283 @apply rounded-lg border border-border bg-card px-4 py-4 shadow-sm;
284}
285
286@utility side-panel-body {
287 & form {
288 @apply space-y-4 pb-4;
289 }
290
291 & form > .space-y-3 {
292 @apply rounded-lg border border-border bg-card p-4;
293 }
294
295 & form > .space-y-4 {
296 @apply rounded-lg border border-border bg-card p-4;
297 }
298
299 & form > .space-y-1\.5 {
300 @apply rounded-lg border border-border bg-card p-4;
301 }
302
303 & form > .grid {
304 @apply rounded-lg border border-border bg-card p-4;
305 }
306
307 & label {
308 @apply text-xs font-semibold text-muted-foreground/90 tracking-tight;
309 }
310
311 & input {
312 @apply h-9 rounded-md;
313 }
314
315 & textarea {
316 @apply rounded-md;
317 }
318
319 & select {
320 @apply h-9 rounded-md;
321 }
322
323 & form > .flex:last-child {
324 @apply sticky bottom-0 -mx-5 justify-end border-t border-border bg-background px-5 py-3;
325 }
326
327 & form > .flex.flex-wrap:last-child {
328 @apply sticky bottom-0 -mx-5 justify-end border-t border-border bg-background px-5 py-3;
329 }
330
331 & form > .flex:last-child button {
332 @apply h-9 rounded-md px-4 font-medium;
333 }
334
335 & form > .flex.flex-wrap:last-child button {
336 @apply h-9 rounded-md px-4 font-medium;
337 }
338}
339
340@utility tactile-press {
341 @apply active:scale-[0.97] transition-transform duration-150;
342}
343
344@utility animate-pulse-glow {
345 animation: pulse-glow 3s ease-in-out infinite;
346
347 @media (prefers-reduced-motion: reduce) {
348 animation: none;
349 }
350}
351
352@utility num {
353 font-family:
354 SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
355 monospace;
356 font-variant-numeric: tabular-nums;
357}
358
359@utility mono {
360 font-family:
361 SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
362 monospace;
363 font-variant-numeric: tabular-nums;
364}
365
366@layer base {
367 /* Hue-neutral gray scale + Carbon-style semantic colors. */
368 :root {
369 /* Height of the area the user can actually see: the display minus the
370 status bar / camera cutout at the top. Full-height layouts measure this
371 instead of the viewport, which on mobile is taller than the page. */
372 --app-viewport: calc(100dvh - env(safe-area-inset-top));
373
374 /* The UA paints the caret, the text-selection handles, the keyboard and
375 the overscroll canvas from this — and `light dark` in the meta tag makes
376 it follow the OS, not the app. A dark app on a light phone then drew a
377 black caret on a black field, and the strip revealed by overscrolling
378 came back white. Pinning it per theme keeps that chrome in the theme. */
379 color-scheme: light;
380
381 /* --accent-light / --accent-light-fg are set inline by preferences-context
382 when the user picks an accent color. Figma brand blue is only the
383 default; a saved user palette continues to win. */
384 --brand: 191.94 100% 42.35%;
385 --brand-accent: 191.94 100% 42.35%;
386 --brand-hover: 192.06 100% 37.06%;
387 --brand-ink: 192.46 94.2% 27.06%;
388 --brand-wash: 193.33 75% 95.29%;
389 --surface-base: 0 0% 100%;
390 --surface-overlay: 0 0% 97%;
391 --surface-tint: 0 0% 96%;
392 --surface-fill: 0 0% 90%;
393 --text-strong: 0 0% 4%;
394 --text-default: 240 6% 10%;
395 --text-subtle: 0 0% 45%;
396 --text-placeholder: 0 0% 63%;
397 --border-line: 0 0% 4% / 0.1;
398 --border-hairline: 0 0% 91%;
399 --ui-accent: var(--accent-light, var(--brand));
400 --background: var(--surface-overlay);
401 --foreground: var(--text-default);
402 --card: 0 0% 100%;
403 --card-foreground: 0 0% 8%;
404 --popover: 0 0% 100%;
405 --popover-foreground: 0 0% 8%;
406 --primary: var(--ui-accent);
407 --primary-foreground: var(--accent-light-fg, 0 0% 4%);
408 --secondary: var(--surface-fill);
409 --secondary-foreground: 0 0% 16%;
410 --muted: var(--surface-tint);
411 --muted-foreground: var(--text-subtle);
412 --accent: var(--surface-fill);
413 --accent-foreground: 0 0% 13%;
414 --destructive: 356 82% 51%;
415 --destructive-foreground: 0 0% 100%;
416 --border: var(--border-hairline);
417 --input: var(--border-line);
418 --ring: var(--accent-light, var(--brand-ink));
419 --radius: 0.5rem;
420 --success: 137 63% 39%;
421 --warning: 38 92% 50%;
422 --info: 219 98% 53%;
423 --primary-text: var(--accent-light-text, var(--brand-ink));
424 --success-text: 137 63% 30%;
425 --warning-text: 38 92% 31%;
426 --info-text: 219 98% 50%;
427 --destructive-text: 356 82% 46%;
428 --surface-elevated: 0 0% 100%;
429 --sidebar: 0 0% 98%;
430 --sidebar-foreground: 0 0% 8%;
431
432 /* unDraw illustration palette (src/lib/illustrations.ts). */
433 --illu-accent: hsl(var(--primary));
434 --illu-accent-2: hsl(349 100% 70%);
435 --illu-ink: hsl(240 12% 22%);
436 --illu-line: hsl(0 0% 82%);
437 --illu-soft: hsl(0 0% 92%);
438 --illu-paper: hsl(0 0% 100%);
439 }
440
441 [data-kb-theme="dark"] {
442 /* --accent-dark / --accent-dark-fg are set inline by preferences-context —
443 a separate, lighter-lightness variant of the same picked hue so it stays
444 legible against this theme's near-black background. */
445 color-scheme: dark;
446 --surface-base: 0 0% 6%;
447 --surface-overlay: 0 0% 6%;
448 --surface-tint: 0 0% 15%;
449 --surface-fill: 0 0% 15%;
450 --text-strong: 0 0% 98%;
451 --text-default: 0 0% 96%;
452 --text-subtle: 0 0% 63%;
453 --text-placeholder: 0 0% 63%;
454 --border-line: 0 0% 20%;
455 --border-hairline: 0 0% 20%;
456 --ui-accent: var(--accent-dark, var(--brand));
457 --background: var(--surface-overlay);
458 --foreground: var(--text-strong);
459 --card: var(--surface-base);
460 --card-foreground: var(--text-strong);
461 --popover: var(--surface-base);
462 --popover-foreground: var(--text-strong);
463 --primary: var(--ui-accent);
464 --primary-foreground: var(--accent-dark-fg, 0 0% 4%);
465 --secondary: var(--surface-fill);
466 --secondary-foreground: 0 0% 98%;
467 --muted: var(--surface-tint);
468 --muted-foreground: var(--text-subtle);
469 --accent: var(--surface-fill);
470 --accent-foreground: 0 0% 98%;
471 --destructive: 357 94% 64%;
472 --destructive-foreground: 0 0% 100%;
473 --border: var(--border-hairline);
474 --input: var(--border-line);
475 --ring: var(--accent-dark, var(--brand));
476 --success: 137 58% 58%;
477 --warning: 38 92% 54%;
478 --info: 219 98% 60%;
479 --primary-text: var(--primary);
480 --success-text: var(--success);
481 --warning-text: var(--warning);
482 --info-text: var(--info);
483 --destructive-text: var(--destructive);
484 --illu-ink: hsl(240 6% 72%);
485 --illu-line: hsl(0 0% 30%);
486 --illu-soft: hsl(0 0% 19%);
487 --illu-paper: hsl(0 0% 11%);
488 --surface-elevated: var(--surface-fill);
489 --sidebar: var(--surface-base);
490 --sidebar-foreground: 0 0% 98%;
491 }
492
493 * {
494 @apply border-border;
495 }
496
497 html {
498 @apply scroll-smooth bg-background;
499 /* The canvas behind the page — what an overscroll bounce or a keyboard
500 teardown reveals below the last element — is painted from `html`, not
501 from `body`. Without this it falls back to the UA's white. */
502 overscroll-behavior-y: none;
503 /* WCAG 2.4.11: a focused or anchored element must not land under the
504 sticky 45px shell header. */
505 scroll-padding-top: calc(45px + env(safe-area-inset-top) + 0.5rem);
506 font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
507 -webkit-font-smoothing: antialiased;
508 -moz-osx-font-smoothing: grayscale;
509 }
510
511 body {
512 @apply min-h-screen bg-background font-sans text-foreground antialiased selection:bg-primary/20 selection:text-primary-text;
513 /* The mobile shells (Tauri on Android/iOS) draw the page edge to edge, so
514 the status bar and the camera cutout sit on top of it. This padding is
515 what starts the page below them; border-box keeps the min-height from
516 counting it, so the page does not grow a scrollbar's worth of overflow.
517 Every inset is 0 in a desktop browser, so the web build is unchanged. */
518 box-sizing: border-box;
519 min-height: 100dvh;
520 padding-top: env(safe-area-inset-top);
521 padding-left: env(safe-area-inset-left);
522 padding-right: env(safe-area-inset-right);
523 }
524
525 /* The padding above scrolls away with the page, which would let content slide
526 up under the status bar and the camera. This band does not move: it paints
527 the theme background over that strip at every scroll position, so the
528 cutout area always matches the page instead of showing what is behind it.
529 It sits above every overlay (modals z-70, toasts/date-picker z-80) because
530 the strip must stay clean even while a drawer or dialog is open. */
531 body::before {
532 content: '';
533 position: fixed;
534 top: 0;
535 left: 0;
536 right: 0;
537 height: env(safe-area-inset-top);
538 background: hsl(var(--background));
539 z-index: 90;
540 pointer-events: none;
541 }
542
543 /* Form controls inherit `color` from Tailwind's preflight, but the caret and
544 the selection highlight do not follow it, and a field that overrides its
545 own background (the Çelebi composer is transparent on a card) could end up
546 with a caret the same color as what is behind it. Naming all three keeps a
547 focused field readable in either theme. */
548 input,
549 textarea,
550 select {
551 color: hsl(var(--foreground));
552 caret-color: hsl(var(--primary));
553 -webkit-text-fill-color: currentColor;
554 }
555
556 /* `-webkit-text-fill-color` inherits as a resolved color, so without this the
557 field's own fill would repaint the placeholder in the text color. */
558 input::placeholder,
559 textarea::placeholder {
560 -webkit-text-fill-color: currentColor;
561 }
562
563 input::selection,
564 textarea::selection {
565 background: hsl(var(--primary) / 0.3);
566 color: hsl(var(--foreground));
567 }
568
569 /* Keep scrolling available while removing native scrollbar chrome globally. */
570 * {
571 -ms-overflow-style: none;
572 scrollbar-width: none;
573 }
574
575 ::-webkit-scrollbar {
576 display: none;
577 }
578}
579
580@layer components {
581 @keyframes pulse-glow {
582 0%, 100% { opacity: 0.9; transform: scale(1); filter: drop-shadow(0 0 10px hsl(var(--primary) / 0.25)); }
583 50% { opacity: 1; transform: scale(1.02); filter: drop-shadow(0 0 20px hsl(var(--primary) / 0.45)); }
584 }
585}
586
587/* Profile cover: brand tint under an 8px pixel grid. */
588.profile-cover {
589 background-color: hsl(var(--primary) / 0.12);
590 background-image:
591 linear-gradient(hsl(var(--primary) / 0.1) 1px, transparent 1px),
592 linear-gradient(90deg, hsl(var(--primary) / 0.1) 1px, transparent 1px),
593 linear-gradient(120deg, hsl(var(--primary) / 0.28), transparent 65%);
594 background-size: 8px 8px, 8px 8px, 100% 100%;
595}
596
597/* Note bodies: the stored HTML from the note editor, read or edited. One
598 stylesheet for both keeps what you type identical to what you read. */
599@layer components {
600 .note-prose {
601 color: hsl(var(--foreground));
602 font-size: 0.95rem;
603 line-height: 1.75;
604 overflow-wrap: anywhere;
605 }
606 .note-prose > * + * { margin-top: 0.75em; }
607 .note-prose h2 { margin-top: 1.4em; font-size: 1.4rem; font-weight: 650; line-height: 1.3; letter-spacing: -0.01em; }
608 .note-prose h3 { margin-top: 1.2em; font-size: 1.12rem; font-weight: 650; line-height: 1.35; }
609 .note-prose > :first-child { margin-top: 0; }
610 .note-prose ul { padding-left: 1.4em; list-style: disc; }
611 .note-prose ol { padding-left: 1.4em; list-style: decimal; }
612 .note-prose li + li { margin-top: 0.25em; }
613 .note-prose li::marker { color: hsl(var(--muted-foreground)); }
614 .note-prose blockquote {
615 border-left: 3px solid hsl(var(--primary) / 0.55);
616 padding-left: 1em;
617 color: hsl(var(--muted-foreground));
618 }
619 .note-prose pre {
620 border: 1px solid hsl(var(--border));
621 border-radius: 0.5rem;
622 background: hsl(var(--muted) / 0.6);
623 padding: 0.75em 1em;
624 font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
625 font-size: 0.85rem;
626 line-height: 1.6;
627 white-space: pre-wrap;
628 }
629 .note-prose code {
630 border-radius: 0.3rem;
631 background: hsl(var(--muted) / 0.8);
632 padding: 0.1em 0.35em;
633 font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
634 font-size: 0.85em;
635 }
636 .note-prose pre code { background: transparent; padding: 0; }
637 .note-prose a { color: hsl(var(--primary)); text-decoration: underline; text-underline-offset: 2px; }
638 /* Placeholder for an empty contentEditable body. */
639 .note-prose[data-empty="true"]::before {
640 content: attr(data-placeholder);
641 color: hsl(var(--muted-foreground) / 0.7);
642 pointer-events: none;
643 position: absolute;
644 }
645}