Something went wrong. Try again.
Fork of backnotprop/plannotator with reduced surface area
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203@import "tailwindcss";
/* Tell Tailwind where to scan for classes */@source "../ui/components/**/*.tsx";@source "../ui/hooks/**/*.ts";@source "./*.tsx";@source "./components/**/*.tsx";
@import "../ui/theme.css";
/* Code blocks */pre code.hljs { display: block; padding: 1rem; border-radius: var(--radius); background: var(--code-bg) !important; font-size: 0.8125rem; line-height: 1.6;}
/* Fix: hljs markdown grammar applies github-dark token colors that are unreadable in light mode. Emphasis/strong/code tokens use #c9d1d9 or #8b949e which wash out against light backgrounds. Force them to inherit the base code color. */pre code.hljs .hljs-emphasis { color: inherit !important; font-style: normal !important;}pre code.hljs .hljs-strong { color: inherit !important;}pre code.hljs .hljs-code { color: inherit !important;}
/* Light mode code - override hljs dark theme */.light pre code.hljs { color: oklch(0.25 0.02 260) !important;}
.light .hljs-keyword,.light .hljs-selector-tag,.light .hljs-built_in,.light .hljs-name,.light .hljs-tag { color: oklch(0.45 0.25 280) !important;}
.light .hljs-string,.light .hljs-title,.light .hljs-section,.light .hljs-attribute,.light .hljs-literal,.light .hljs-template-tag,.light .hljs-template-variable,.light .hljs-type { color: oklch(0.45 0.18 150) !important;}
.light .hljs-comment,.light .hljs-quote { color: oklch(0.55 0.02 260) !important; font-style: italic;}
.light .hljs-number,.light .hljs-symbol,.light .hljs-bullet { color: oklch(0.50 0.20 50) !important;}
.light .hljs-attr,.light .hljs-variable,.light .hljs-template-variable,.light .hljs-class .hljs-title,.light .hljs-function { color: oklch(0.45 0.20 280) !important;}
/* Annotation highlights */.annotation-highlight { border-radius: 2px; padding: 0 2px; margin: 0 -2px;}
.annotation-highlight.deletion { background: oklch(from var(--destructive) l c h / 0.35); text-decoration: line-through; text-decoration-color: var(--destructive); text-decoration-thickness: 2px;}
.annotation-highlight.comment { background: oklch(0.70 0.18 60 / 0.3); border-bottom: 2px solid var(--accent);}
/* Light mode: softer highlights */.light .annotation-highlight.deletion { background: oklch(0.65 0.22 25 / 0.2);}
.light .annotation-highlight.comment { background: oklch(0.70 0.20 60 / 0.15);}
.annotation-highlight.focused { background: oklch(from var(--focus-highlight) l c h / 0.45) !important; box-shadow: 0 0 8px oklch(from var(--focus-highlight) l c h / 0.4); border-bottom: 2px solid var(--focus-highlight); filter: none;}
.light .annotation-highlight.focused { background: oklch(0.70 0.22 200 / 0.3) !important; box-shadow: 0 0 6px oklch(0.60 0.20 200 / 0.3);}
.annotation-highlight:hover { filter: brightness(1.2); cursor: pointer;}
/* ======================================== Plan Diff Styles ======================================== */
/* Clean diff view - added content */.plan-diff-added { border-left: 3px solid var(--success); background: oklch(from var(--success) l c h / 0.06); padding-left: 0.75rem; border-radius: 0 0.25rem 0.25rem 0; margin: 0.25rem 0;}.light .plan-diff-added { background: oklch(from var(--success) l c h / 0.06);}
/* Clean diff view - removed content */.plan-diff-removed { border-left: 3px solid var(--destructive); background: oklch(from var(--destructive) l c h / 0.06); padding-left: 0.75rem; border-radius: 0 0.25rem 0.25rem 0; margin: 0.25rem 0;}.light .plan-diff-removed { background: oklch(from var(--destructive) l c h / 0.06);}
/* Clean diff view - modified content (mix of additions and deletions in one block, rendered inline via word-level diff). Deliberate asymmetry with added/removed: add/remove are BLOCK-scope events — the whole block matters, so a loud fill is the right signal. Modify is a WORD-scope event — the words matter, and the inline red-struck / green-highlighted word markers already grab attention. A block-level fill would compete with that inline work; an amber gutter on a normal background says "look inside, the change is in the text" while staying consistent with the green/red/yellow diff convention. */.plan-diff-modified { border-left: 3px solid oklch(from var(--warning) l c h / 0.75); background: transparent; padding-left: 0.75rem; border-radius: 0 0.25rem 0.25rem 0; margin: 0.25rem 0;}
/* Clean diff view - unchanged (dimmed) */.plan-diff-unchanged { /* handled via opacity in component */}
/* Raw diff view - line styles */.plan-diff-line-added { background: oklch(from var(--success) l c h / 0.15); color: var(--success);}.plan-diff-line-removed { background: oklch(from var(--destructive) l c h / 0.15); color: var(--destructive); opacity: 0.75; text-decoration: line-through; text-decoration-color: oklch(from var(--destructive) l c h / 0.4);}.light .plan-diff-line-added { background: oklch(from var(--success) l c h / 0.12);}.light .plan-diff-line-removed { background: oklch(from var(--destructive) l c h / 0.12);}
/* ======================================== Sidebar ======================================== */
.sidebar-tab-flag { transition: transform 200ms ease, opacity 200ms ease;}.sidebar-tab-flag:hover { transform: translateX(2px);}