md-redline 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +169 -0
- package/bin/md-redline +255 -0
- package/bin/test-windows.ps1 +70 -0
- package/dist/assets/_baseFor-Ck08IaSF.js +1 -0
- package/dist/assets/arc-DI2g9LXK.js +1 -0
- package/dist/assets/architecture-YZFGNWBL-BDgMfc-b.js +1 -0
- package/dist/assets/architectureDiagram-Q4EWVU46-Dg1hcUEa.js +36 -0
- package/dist/assets/array-DOVTz2Mq.js +1 -0
- package/dist/assets/blockDiagram-DXYQGD6D-BAXkTCAk.js +132 -0
- package/dist/assets/c4Diagram-AHTNJAMY-BIkgwQSx.js +10 -0
- package/dist/assets/channel-DPCihw7y.js +1 -0
- package/dist/assets/chunk-2KRD3SAO-Dc_tBGsw.js +1 -0
- package/dist/assets/chunk-336JU56O-Dhi-ID9Y.js +2 -0
- package/dist/assets/chunk-426QAEUC-DnFdrNMW.js +1 -0
- package/dist/assets/chunk-4BX2VUAB-Z63FkGov.js +1 -0
- package/dist/assets/chunk-4TB4RGXK-BAiBlfyy.js +206 -0
- package/dist/assets/chunk-55IACEB6-BXDWXbxy.js +1 -0
- package/dist/assets/chunk-5FUZZQ4R-C72e1c_O.js +62 -0
- package/dist/assets/chunk-5PVQY5BW-BBHW_uCu.js +2 -0
- package/dist/assets/chunk-67CJDMHE-3Cf_D9m6.js +1 -0
- package/dist/assets/chunk-7N4EOEYR-DAXUXJ2c.js +1 -0
- package/dist/assets/chunk-AA7GKIK3-Dr7fOryc.js +1 -0
- package/dist/assets/chunk-BSJP7CBP-BmsSs1Nt.js +1 -0
- package/dist/assets/chunk-CIAEETIT-QDzV-X_Y.js +1 -0
- package/dist/assets/chunk-EDXVE4YY-C25WFHxY.js +1 -0
- package/dist/assets/chunk-ENJZ2VHE-_OzxcZOU.js +10 -0
- package/dist/assets/chunk-FMBD7UC4-CjsTKY4u.js +15 -0
- package/dist/assets/chunk-FOC6F5B3-g-xaH5nc.js +1 -0
- package/dist/assets/chunk-ICPOFSXX-iKiUSjDK.js +121 -0
- package/dist/assets/chunk-K5T4RW27-CKR-lPBN.js +94 -0
- package/dist/assets/chunk-KGLVRYIC-DRccT-B_.js +1 -0
- package/dist/assets/chunk-LIHQZDEY-DTbMwMXj.js +1 -0
- package/dist/assets/chunk-ORNJ4GCN-DlerdcWX.js +1 -0
- package/dist/assets/chunk-OYMX7WX6-Dekv1on2.js +231 -0
- package/dist/assets/chunk-QZHKN3VN-BHu0RdKl.js +1 -0
- package/dist/assets/chunk-U2HBQHQK-BvtlVHAg.js +70 -0
- package/dist/assets/chunk-X2U36JSP-BI_g8mub.js +1 -0
- package/dist/assets/chunk-XPW4576I-B39JkmSE.js +32 -0
- package/dist/assets/chunk-YZCP3GAM-BfPcXRm2.js +1 -0
- package/dist/assets/chunk-ZZ45TVLE-Bg4q68wZ.js +1 -0
- package/dist/assets/classDiagram-6PBFFD2Q-p73p727_.js +1 -0
- package/dist/assets/classDiagram-v2-HSJHXN6E-C4Ftpivp.js +1 -0
- package/dist/assets/clone-CI9aUwHe.js +1 -0
- package/dist/assets/cose-bilkent-S5V4N54A-7BpAeDh5.js +1 -0
- package/dist/assets/cytoscape.esm-DoTFyJaN.js +321 -0
- package/dist/assets/dagre-CilMRazv.js +1 -0
- package/dist/assets/dagre-KV5264BT-DDMqpjkB.js +4 -0
- package/dist/assets/defaultLocale-Ck2Xxk-C.js +1 -0
- package/dist/assets/diagram-5BDNPKRD-BFeyfnCx.js +10 -0
- package/dist/assets/diagram-G4DWMVQ6-DoqT-PtF.js +24 -0
- package/dist/assets/diagram-MMDJMWI5-BPV6KADk.js +43 -0
- package/dist/assets/diagram-TYMM5635-okvcTBtl.js +24 -0
- package/dist/assets/dist-C_eddq6m.js +1 -0
- package/dist/assets/erDiagram-SMLLAGMA-Dl-Ixy8n.js +85 -0
- package/dist/assets/flatten-B8XIuT0x.js +1 -0
- package/dist/assets/flowDiagram-DWJPFMVM-CsqWAx5r.js +162 -0
- package/dist/assets/ganttDiagram-T4ZO3ILL-mIt6zVeF.js +292 -0
- package/dist/assets/gitGraph-7Q5UKJZL-COXHGMvj.js +1 -0
- package/dist/assets/gitGraphDiagram-UUTBAWPF-syVqZJX_.js +106 -0
- package/dist/assets/graphlib-Bpd0q3yO.js +1 -0
- package/dist/assets/index-BoggyWS0.css +2 -0
- package/dist/assets/index-aLvjHQW4.js +104 -0
- package/dist/assets/info-OMHHGYJF-B-0wfxwL.js +1 -0
- package/dist/assets/infoDiagram-42DDH7IO-C0_uqsVa.js +2 -0
- package/dist/assets/init-Bft5Ffpj.js +1 -0
- package/dist/assets/isEmpty-BrFi5AqV.js +1 -0
- package/dist/assets/ishikawaDiagram-UXIWVN3A-CTjFbDBV.js +70 -0
- package/dist/assets/journeyDiagram-VCZTEJTY-BDBcej1q.js +139 -0
- package/dist/assets/kanban-definition-6JOO6SKY-Ylgzakw7.js +89 -0
- package/dist/assets/katex-Uj9wLT16.js +265 -0
- package/dist/assets/line-CRxEwpOv.js +1 -0
- package/dist/assets/linear-PDPfFByd.js +1 -0
- package/dist/assets/mermaid-parser.core-CY-XNOOy.js +4 -0
- package/dist/assets/mermaid.core-BPlTADIX.js +11 -0
- package/dist/assets/mindmap-definition-QFDTVHPH-TefzJnBM.js +96 -0
- package/dist/assets/ordinal-DIg8h6NI.js +1 -0
- package/dist/assets/packet-4T2RLAQJ-BW1T_A-C.js +1 -0
- package/dist/assets/path-DfRbCp9y.js +1 -0
- package/dist/assets/pie-ZZUOXDRM-DkKU-SFu.js +1 -0
- package/dist/assets/pieDiagram-DEJITSTG-BCXuaeEy.js +30 -0
- package/dist/assets/quadrantDiagram-34T5L4WZ-VSBAicWL.js +7 -0
- package/dist/assets/radar-PYXPWWZC-CYvTacKJ.js +1 -0
- package/dist/assets/reduce-CV2X8n1a.js +1 -0
- package/dist/assets/requirementDiagram-MS252O5E-4NeL9Z6J.js +84 -0
- package/dist/assets/rough.esm-Bbn_-PMU.js +1 -0
- package/dist/assets/sankeyDiagram-XADWPNL6-DMBSDnrH.js +10 -0
- package/dist/assets/sequenceDiagram-FGHM5R23-DVpzcZUi.js +157 -0
- package/dist/assets/src-PKe5NtkK.js +1 -0
- package/dist/assets/stateDiagram-FHFEXIEX-BkHTlCjL.js +1 -0
- package/dist/assets/stateDiagram-v2-QKLJ7IA2-nMeWu9fP.js +1 -0
- package/dist/assets/timeline-definition-GMOUNBTQ-CyLt92nf.js +120 -0
- package/dist/assets/treeView-SZITEDCU-BUgcJ4eR.js +1 -0
- package/dist/assets/treemap-W4RFUUIX-BIWGQ4Pw.js +1 -0
- package/dist/assets/vennDiagram-DHZGUBPP-BCK0xB_m.js +34 -0
- package/dist/assets/wardley-RL74JXVD-DMZZRlby.js +1 -0
- package/dist/assets/wardleyDiagram-NUSXRM2D-BisBgfsF.js +20 -0
- package/dist/assets/xychartDiagram-5P7HB3ND-D_REDciv.js +7 -0
- package/dist/favicon.svg +15 -0
- package/dist/index.html +14 -0
- package/dist/screenshot.png +0 -0
- package/index.html +13 -0
- package/package.json +105 -0
- package/public/favicon.svg +15 -0
- package/public/screenshot.png +0 -0
- package/server/index.test.ts +814 -0
- package/server/index.ts +736 -0
- package/server/preferences.test.ts +126 -0
- package/server/preferences.ts +76 -0
- package/src/App.tsx +1620 -0
- package/src/components/ActionButton.tsx +41 -0
- package/src/components/CommandPalette.tsx +191 -0
- package/src/components/CommentCard.tsx +556 -0
- package/src/components/CommentForm.tsx +285 -0
- package/src/components/CommentSidebar.tsx +428 -0
- package/src/components/ConfirmDialog.tsx +64 -0
- package/src/components/ContextMenu.tsx +220 -0
- package/src/components/DragHandles.tsx +48 -0
- package/src/components/FileExplorer.tsx +251 -0
- package/src/components/FileOpener.tsx +304 -0
- package/src/components/IconButton.tsx +32 -0
- package/src/components/KeyboardShortcutsPanel.tsx +136 -0
- package/src/components/MarkdownViewer.tsx +682 -0
- package/src/components/RawView.tsx +798 -0
- package/src/components/SearchBar.tsx +129 -0
- package/src/components/Separator.tsx +7 -0
- package/src/components/SettingsPanel.tsx +813 -0
- package/src/components/SplitIconButton.tsx +133 -0
- package/src/components/TabBar.tsx +594 -0
- package/src/components/TableOfContents.tsx +70 -0
- package/src/components/ThemeSelector.tsx +159 -0
- package/src/components/Toast.tsx +99 -0
- package/src/components/Toolbar.tsx +161 -0
- package/src/components/iconButtonVariants.ts +19 -0
- package/src/components/rawView.test.ts +291 -0
- package/src/contexts/SettingsContext.tsx +120 -0
- package/src/hooks/useAuthor.test.ts +58 -0
- package/src/hooks/useAuthor.ts +69 -0
- package/src/hooks/useAutoResize.ts +20 -0
- package/src/hooks/useCommentCardTriggers.ts +20 -0
- package/src/hooks/useComments.test.ts +773 -0
- package/src/hooks/useComments.ts +332 -0
- package/src/hooks/useContextMenu.ts +48 -0
- package/src/hooks/useContextMenuItems.ts +392 -0
- package/src/hooks/useDiffSnapshot.test.ts +130 -0
- package/src/hooks/useDiffSnapshot.ts +67 -0
- package/src/hooks/useDragHandles.ts +417 -0
- package/src/hooks/useFileWatcher.ts +45 -0
- package/src/hooks/useHeadingTracking.ts +84 -0
- package/src/hooks/useMermaidRenderer.ts +75 -0
- package/src/hooks/useModalState.ts +22 -0
- package/src/hooks/usePageVisible.test.ts +69 -0
- package/src/hooks/usePageVisible.ts +19 -0
- package/src/hooks/usePaneLayout.test.ts +108 -0
- package/src/hooks/usePaneLayout.ts +102 -0
- package/src/hooks/useRecentFiles.test.ts +103 -0
- package/src/hooks/useRecentFiles.ts +99 -0
- package/src/hooks/useResizablePanel.test.ts +84 -0
- package/src/hooks/useResizablePanel.ts +118 -0
- package/src/hooks/useSearch.test.ts +72 -0
- package/src/hooks/useSearch.ts +53 -0
- package/src/hooks/useSelection.ts +48 -0
- package/src/hooks/useSessionPersistence.test.ts +59 -0
- package/src/hooks/useSessionPersistence.ts +43 -0
- package/src/hooks/useTabs.test.ts +127 -0
- package/src/hooks/useTabs.ts +561 -0
- package/src/hooks/useThemePersistence.ts +41 -0
- package/src/hooks/useToast.ts +27 -0
- package/src/index.css +1047 -0
- package/src/lib/agent-prompts.test.ts +34 -0
- package/src/lib/agent-prompts.ts +68 -0
- package/src/lib/comment-editor-state.ts +6 -0
- package/src/lib/comment-parser.test.ts +1959 -0
- package/src/lib/comment-parser.ts +1021 -0
- package/src/lib/diff.test.ts +164 -0
- package/src/lib/diff.ts +139 -0
- package/src/lib/heading-slugs.test.ts +85 -0
- package/src/lib/heading-slugs.ts +44 -0
- package/src/lib/http.test.ts +43 -0
- package/src/lib/http.ts +29 -0
- package/src/lib/mermaid-highlights.test.ts +517 -0
- package/src/lib/mermaid-highlights.ts +936 -0
- package/src/lib/mermaid-renderer.test.ts +114 -0
- package/src/lib/mermaid-renderer.ts +89 -0
- package/src/lib/path-utils.test.ts +17 -0
- package/src/lib/path-utils.ts +7 -0
- package/src/lib/platform.test.ts +58 -0
- package/src/lib/platform.ts +14 -0
- package/src/lib/preferences-client.test.ts +177 -0
- package/src/lib/preferences-client.ts +94 -0
- package/src/lib/selection-resolver.test.ts +118 -0
- package/src/lib/selection-resolver.ts +37 -0
- package/src/lib/settings.test.ts +152 -0
- package/src/lib/settings.ts +78 -0
- package/src/lib/shortcut-label.tsx +18 -0
- package/src/lib/themes.ts +21 -0
- package/src/lib/visible-text.test.ts +86 -0
- package/src/lib/visible-text.ts +77 -0
- package/src/main.tsx +22 -0
- package/src/markdown/pipeline.test.ts +82 -0
- package/src/markdown/pipeline.ts +33 -0
- package/src/types.test.ts +43 -0
- package/src/types.ts +46 -0
- package/tsconfig.app.json +28 -0
- package/tsconfig.json +7 -0
- package/tsconfig.node.json +26 -0
- package/vite.config.ts +50 -0
package/src/index.css
ADDED
|
@@ -0,0 +1,1047 @@
|
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
@plugin "@tailwindcss/typography";
|
|
3
|
+
|
|
4
|
+
/* ========== Semantic Color Tokens ========== */
|
|
5
|
+
@theme {
|
|
6
|
+
/* Surfaces */
|
|
7
|
+
--color-surface: var(--theme-bg);
|
|
8
|
+
--color-surface-secondary: var(--theme-bg-secondary);
|
|
9
|
+
--color-surface-raised: var(--theme-bg-raised);
|
|
10
|
+
--color-surface-inset: var(--theme-bg-inset);
|
|
11
|
+
|
|
12
|
+
/* Borders */
|
|
13
|
+
--color-border: var(--theme-border);
|
|
14
|
+
--color-border-subtle: var(--theme-border-subtle);
|
|
15
|
+
|
|
16
|
+
/* Text content */
|
|
17
|
+
--color-content: var(--theme-text);
|
|
18
|
+
--color-content-secondary: var(--theme-text-secondary);
|
|
19
|
+
--color-content-muted: var(--theme-text-muted);
|
|
20
|
+
--color-content-faint: var(--theme-text-faint);
|
|
21
|
+
|
|
22
|
+
/* Primary accent */
|
|
23
|
+
--color-primary: var(--theme-accent);
|
|
24
|
+
--color-primary-hover: var(--theme-accent-hover);
|
|
25
|
+
--color-primary-bg: var(--theme-accent-bg);
|
|
26
|
+
--color-primary-bg-strong: var(--theme-accent-bg-strong);
|
|
27
|
+
--color-primary-text: var(--theme-accent-text);
|
|
28
|
+
--color-primary-border: var(--theme-accent-border);
|
|
29
|
+
--color-primary-ring: var(--theme-accent-ring);
|
|
30
|
+
--color-on-primary: var(--theme-on-accent);
|
|
31
|
+
|
|
32
|
+
/* Danger */
|
|
33
|
+
--color-danger: var(--theme-danger);
|
|
34
|
+
--color-danger-bg: var(--theme-danger-bg);
|
|
35
|
+
--color-danger-text: var(--theme-danger-text);
|
|
36
|
+
|
|
37
|
+
/* Success */
|
|
38
|
+
--color-success: var(--theme-success);
|
|
39
|
+
--color-success-bg: var(--theme-success-bg);
|
|
40
|
+
--color-success-text: var(--theme-success-text);
|
|
41
|
+
|
|
42
|
+
/* Warning */
|
|
43
|
+
--color-warning: var(--theme-warning);
|
|
44
|
+
--color-warning-bg: var(--theme-warning-bg);
|
|
45
|
+
--color-warning-text: var(--theme-warning-text);
|
|
46
|
+
|
|
47
|
+
/* Comment anchors */
|
|
48
|
+
--color-comment-anchor-bg: var(--theme-comment-anchor-bg);
|
|
49
|
+
--color-comment-anchor-text: var(--theme-comment-anchor-text);
|
|
50
|
+
--color-comment-anchor-border: var(--theme-comment-anchor-border);
|
|
51
|
+
|
|
52
|
+
/* Status badges */
|
|
53
|
+
--color-status-open-bg: var(--theme-status-open-bg);
|
|
54
|
+
--color-status-open-text: var(--theme-status-open-text);
|
|
55
|
+
--color-status-resolved-bg: var(--theme-status-resolved-bg);
|
|
56
|
+
--color-status-resolved-text: var(--theme-status-resolved-text);
|
|
57
|
+
|
|
58
|
+
/* Diff */
|
|
59
|
+
--color-diff-added-bg: var(--theme-diff-added-bg);
|
|
60
|
+
--color-diff-added-text: var(--theme-diff-added-text);
|
|
61
|
+
--color-diff-removed-bg: var(--theme-diff-removed-bg);
|
|
62
|
+
--color-diff-removed-text: var(--theme-diff-removed-text);
|
|
63
|
+
|
|
64
|
+
/* Interactive hover tints — stronger than base -bg for clear hover feedback */
|
|
65
|
+
--color-tint: var(--theme-tint);
|
|
66
|
+
--color-tint-primary: var(--theme-tint-primary);
|
|
67
|
+
--color-tint-success: var(--theme-tint-success);
|
|
68
|
+
--color-tint-danger: var(--theme-tint-danger);
|
|
69
|
+
|
|
70
|
+
/* Gradient */
|
|
71
|
+
--color-gradient-from: var(--theme-gradient-from);
|
|
72
|
+
--color-gradient-to: var(--theme-gradient-to);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* ========== Light Theme (default) ========== */
|
|
76
|
+
:root, [data-theme="light"] {
|
|
77
|
+
color-scheme: light;
|
|
78
|
+
--theme-bg: #ffffff;
|
|
79
|
+
--theme-bg-secondary: #f8fafc;
|
|
80
|
+
--theme-bg-raised: #ffffff;
|
|
81
|
+
--theme-bg-inset: #f1f5f9;
|
|
82
|
+
--theme-border: #e2e8f0;
|
|
83
|
+
--theme-border-subtle: #f1f5f9;
|
|
84
|
+
--theme-text: #1e293b;
|
|
85
|
+
--theme-text-secondary: #475569;
|
|
86
|
+
--theme-text-muted: #94a3b8;
|
|
87
|
+
--theme-text-faint: #cbd5e1;
|
|
88
|
+
--theme-accent: #4f46e5;
|
|
89
|
+
--theme-accent-hover: #4338ca;
|
|
90
|
+
--theme-accent-bg: #eef2ff;
|
|
91
|
+
--theme-accent-bg-strong: #e0e7ff;
|
|
92
|
+
--theme-accent-text: #4f46e5;
|
|
93
|
+
--theme-accent-border: #a5b4fc;
|
|
94
|
+
--theme-accent-ring: #c7d2fe;
|
|
95
|
+
--theme-on-accent: #ffffff;
|
|
96
|
+
--theme-danger: #ef4444;
|
|
97
|
+
--theme-danger-bg: #fef2f2;
|
|
98
|
+
--theme-danger-text: #dc2626;
|
|
99
|
+
--theme-success: #10b981;
|
|
100
|
+
--theme-success-bg: #ecfdf5;
|
|
101
|
+
--theme-success-text: #059669;
|
|
102
|
+
--theme-warning: #f59e0b;
|
|
103
|
+
--theme-warning-bg: #fffbeb;
|
|
104
|
+
--theme-warning-text: #d97706;
|
|
105
|
+
--theme-comment-anchor-bg: #fffbeb;
|
|
106
|
+
--theme-comment-anchor-text: #b45309;
|
|
107
|
+
--theme-comment-anchor-border: #fde68a;
|
|
108
|
+
--theme-status-open-bg: #dbeafe;
|
|
109
|
+
--theme-status-open-text: #2563eb;
|
|
110
|
+
--theme-status-resolved-bg: #dcfce7;
|
|
111
|
+
--theme-status-resolved-text: #16a34a;
|
|
112
|
+
--theme-tint: rgba(0, 0, 0, 0.1);
|
|
113
|
+
--theme-tint-primary: rgba(79, 70, 229, 0.18);
|
|
114
|
+
--theme-tint-success: rgba(16, 185, 129, 0.18);
|
|
115
|
+
--theme-tint-danger: rgba(239, 68, 68, 0.15);
|
|
116
|
+
--theme-comment-bg: #fef3c7;
|
|
117
|
+
/* Pre-composited comment-bg over page-bg. Used for mermaid SVG highlights
|
|
118
|
+
where semi-transparent backgrounds don't work. For new themes, compute:
|
|
119
|
+
R = bg_R + (fg_R - bg_R) * alpha, same for G and B. */
|
|
120
|
+
--theme-comment-bg-opaque: #fef3c7;
|
|
121
|
+
--theme-comment-bg-hover: #fde68a;
|
|
122
|
+
--theme-comment-underline: #f59e0b;
|
|
123
|
+
--theme-comment-underline-active: #d97706;
|
|
124
|
+
--theme-comment-ring: rgba(217, 119, 6, 0.3);
|
|
125
|
+
--theme-selection-bg: #dbeafe;
|
|
126
|
+
--theme-native-selection: #c7d2fe;
|
|
127
|
+
--theme-drag-handle: #d97706;
|
|
128
|
+
--theme-drag-handle-hover: #b45309;
|
|
129
|
+
--theme-diff-added-bg: #ecfdf5;
|
|
130
|
+
--theme-diff-added-text: #065f46;
|
|
131
|
+
--theme-diff-removed-bg: #fef2f2;
|
|
132
|
+
--theme-diff-removed-text: #991b1b;
|
|
133
|
+
--theme-gradient-from: #f8fafc;
|
|
134
|
+
--theme-gradient-to: rgba(238, 242, 255, 0.3);
|
|
135
|
+
--theme-search-bg: rgba(74, 222, 128, 0.3);
|
|
136
|
+
--theme-search-active-bg: #f97316;
|
|
137
|
+
--theme-search-active-text: #ffffff;
|
|
138
|
+
--theme-scrollbar-thumb: #c1c9d4;
|
|
139
|
+
--theme-scrollbar-thumb-hover: #a0aab6;
|
|
140
|
+
--theme-scrollbar-track: #f1f5f9;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* ========== Dark Theme ========== */
|
|
144
|
+
[data-theme="dark"] {
|
|
145
|
+
color-scheme: dark;
|
|
146
|
+
--theme-bg: #0f172a;
|
|
147
|
+
--theme-bg-secondary: #1e293b;
|
|
148
|
+
--theme-bg-raised: #1e293b;
|
|
149
|
+
--theme-bg-inset: #0a1120;
|
|
150
|
+
--theme-border: #334155;
|
|
151
|
+
--theme-border-subtle: #1e293b;
|
|
152
|
+
--theme-text: #f1f5f9;
|
|
153
|
+
--theme-text-secondary: #cbd5e1;
|
|
154
|
+
--theme-text-muted: #64748b;
|
|
155
|
+
--theme-text-faint: #475569;
|
|
156
|
+
--theme-accent: #818cf8;
|
|
157
|
+
--theme-accent-hover: #a5b4fc;
|
|
158
|
+
--theme-accent-bg: rgba(99, 102, 241, 0.15);
|
|
159
|
+
--theme-accent-bg-strong: rgba(99, 102, 241, 0.25);
|
|
160
|
+
--theme-accent-text: #a5b4fc;
|
|
161
|
+
--theme-accent-border: rgba(99, 102, 241, 0.4);
|
|
162
|
+
--theme-accent-ring: rgba(99, 102, 241, 0.3);
|
|
163
|
+
--theme-on-accent: #ffffff;
|
|
164
|
+
--theme-danger: #f87171;
|
|
165
|
+
--theme-danger-bg: rgba(239, 68, 68, 0.15);
|
|
166
|
+
--theme-danger-text: #f87171;
|
|
167
|
+
--theme-success: #34d399;
|
|
168
|
+
--theme-success-bg: rgba(16, 185, 129, 0.15);
|
|
169
|
+
--theme-success-text: #34d399;
|
|
170
|
+
--theme-warning: #fbbf24;
|
|
171
|
+
--theme-warning-bg: rgba(245, 158, 11, 0.15);
|
|
172
|
+
--theme-warning-text: #fbbf24;
|
|
173
|
+
--theme-comment-anchor-bg: rgba(245, 158, 11, 0.15);
|
|
174
|
+
--theme-comment-anchor-text: #fcd34d;
|
|
175
|
+
--theme-comment-anchor-border: rgba(245, 158, 11, 0.3);
|
|
176
|
+
--theme-status-open-bg: rgba(59, 130, 246, 0.2);
|
|
177
|
+
--theme-status-open-text: #93c5fd;
|
|
178
|
+
--theme-status-resolved-bg: rgba(34, 197, 94, 0.2);
|
|
179
|
+
--theme-status-resolved-text: #86efac;
|
|
180
|
+
--theme-tint: rgba(255, 255, 255, 0.12);
|
|
181
|
+
--theme-tint-primary: rgba(129, 140, 248, 0.25);
|
|
182
|
+
--theme-tint-success: rgba(52, 211, 153, 0.25);
|
|
183
|
+
--theme-tint-danger: rgba(248, 113, 113, 0.2);
|
|
184
|
+
--theme-comment-bg: rgba(245, 158, 11, 0.2);
|
|
185
|
+
--theme-comment-bg-opaque: #3d3224;
|
|
186
|
+
--theme-comment-bg-hover: rgba(245, 158, 11, 0.3);
|
|
187
|
+
--theme-comment-underline: #f59e0b;
|
|
188
|
+
--theme-comment-underline-active: #fbbf24;
|
|
189
|
+
--theme-comment-ring: rgba(251, 191, 36, 0.3);
|
|
190
|
+
--theme-selection-bg: rgba(59, 130, 246, 0.25);
|
|
191
|
+
--theme-native-selection: rgba(129, 140, 248, 0.4);
|
|
192
|
+
--theme-drag-handle: #f59e0b;
|
|
193
|
+
--theme-drag-handle-hover: #fbbf24;
|
|
194
|
+
--theme-diff-added-bg: rgba(16, 185, 129, 0.15);
|
|
195
|
+
--theme-diff-added-text: #6ee7b7;
|
|
196
|
+
--theme-diff-removed-bg: rgba(239, 68, 68, 0.15);
|
|
197
|
+
--theme-diff-removed-text: #fca5a5;
|
|
198
|
+
--theme-gradient-from: #0f172a;
|
|
199
|
+
--theme-gradient-to: rgba(99, 102, 241, 0.08);
|
|
200
|
+
--theme-search-bg: rgba(74, 222, 128, 0.2);
|
|
201
|
+
--theme-search-active-bg: rgba(249, 115, 22, 0.7);
|
|
202
|
+
--theme-search-active-text: #ffffff;
|
|
203
|
+
--theme-scrollbar-thumb: #475569;
|
|
204
|
+
--theme-scrollbar-thumb-hover: #64748b;
|
|
205
|
+
--theme-scrollbar-track: #1e293b;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/* ========== Sepia Theme ========== */
|
|
209
|
+
[data-theme="sepia"] {
|
|
210
|
+
color-scheme: light;
|
|
211
|
+
--theme-bg: #faf6f1;
|
|
212
|
+
--theme-bg-secondary: #f5efe6;
|
|
213
|
+
--theme-bg-raised: #faf6f1;
|
|
214
|
+
--theme-bg-inset: #f0e8db;
|
|
215
|
+
--theme-border: #e0d5c5;
|
|
216
|
+
--theme-border-subtle: #f0e8db;
|
|
217
|
+
--theme-text: #3d3229;
|
|
218
|
+
--theme-text-secondary: #5c4f42;
|
|
219
|
+
--theme-text-muted: #8b7e6f;
|
|
220
|
+
--theme-text-faint: #b8ad9e;
|
|
221
|
+
--theme-accent: #8b5e3c;
|
|
222
|
+
--theme-accent-hover: #714b2f;
|
|
223
|
+
--theme-accent-bg: rgba(139, 94, 60, 0.1);
|
|
224
|
+
--theme-accent-bg-strong: rgba(139, 94, 60, 0.18);
|
|
225
|
+
--theme-accent-text: #8b5e3c;
|
|
226
|
+
--theme-accent-border: rgba(139, 94, 60, 0.35);
|
|
227
|
+
--theme-accent-ring: rgba(139, 94, 60, 0.25);
|
|
228
|
+
--theme-on-accent: #faf6f1;
|
|
229
|
+
--theme-danger: #c0392b;
|
|
230
|
+
--theme-danger-bg: rgba(192, 57, 43, 0.1);
|
|
231
|
+
--theme-danger-text: #c0392b;
|
|
232
|
+
--theme-success: #27ae60;
|
|
233
|
+
--theme-success-bg: rgba(39, 174, 96, 0.1);
|
|
234
|
+
--theme-success-text: #27ae60;
|
|
235
|
+
--theme-warning: #d4a04a;
|
|
236
|
+
--theme-warning-bg: rgba(212, 160, 74, 0.12);
|
|
237
|
+
--theme-warning-text: #b8862e;
|
|
238
|
+
--theme-comment-anchor-bg: rgba(212, 160, 74, 0.15);
|
|
239
|
+
--theme-comment-anchor-text: #8b5e3c;
|
|
240
|
+
--theme-comment-anchor-border: rgba(212, 160, 74, 0.3);
|
|
241
|
+
--theme-status-open-bg: rgba(41, 128, 185, 0.15);
|
|
242
|
+
--theme-status-open-text: #2980b9;
|
|
243
|
+
--theme-status-resolved-bg: rgba(39, 174, 96, 0.15);
|
|
244
|
+
--theme-status-resolved-text: #27ae60;
|
|
245
|
+
--theme-tint: rgba(61, 50, 41, 0.1);
|
|
246
|
+
--theme-tint-primary: rgba(139, 94, 60, 0.18);
|
|
247
|
+
--theme-tint-success: rgba(39, 174, 96, 0.18);
|
|
248
|
+
--theme-tint-danger: rgba(192, 57, 43, 0.15);
|
|
249
|
+
--theme-comment-bg: rgba(212, 160, 74, 0.2);
|
|
250
|
+
--theme-comment-bg-opaque: #f2e5d0;
|
|
251
|
+
--theme-comment-bg-hover: rgba(212, 160, 74, 0.3);
|
|
252
|
+
--theme-comment-underline: #d4a04a;
|
|
253
|
+
--theme-comment-underline-active: #b8862e;
|
|
254
|
+
--theme-comment-ring: rgba(184, 134, 46, 0.3);
|
|
255
|
+
--theme-selection-bg: rgba(41, 128, 185, 0.15);
|
|
256
|
+
--theme-native-selection: rgba(139, 94, 60, 0.25);
|
|
257
|
+
--theme-drag-handle: #b8862e;
|
|
258
|
+
--theme-drag-handle-hover: #8b5e3c;
|
|
259
|
+
--theme-diff-added-bg: rgba(39, 174, 96, 0.12);
|
|
260
|
+
--theme-diff-added-text: #1e7a45;
|
|
261
|
+
--theme-diff-removed-bg: rgba(192, 57, 43, 0.12);
|
|
262
|
+
--theme-diff-removed-text: #922b21;
|
|
263
|
+
--theme-gradient-from: #f5efe6;
|
|
264
|
+
--theme-gradient-to: rgba(139, 94, 60, 0.06);
|
|
265
|
+
--theme-search-bg: rgba(74, 222, 128, 0.2);
|
|
266
|
+
--theme-search-active-bg: rgba(194, 120, 3, 0.6);
|
|
267
|
+
--theme-search-active-text: #faf6f1;
|
|
268
|
+
--theme-scrollbar-thumb: #c4b8a6;
|
|
269
|
+
--theme-scrollbar-thumb-hover: #a89880;
|
|
270
|
+
--theme-scrollbar-track: #f0e8db;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/* ========== Nord Theme ========== */
|
|
274
|
+
[data-theme="nord"] {
|
|
275
|
+
color-scheme: dark;
|
|
276
|
+
--theme-bg: #2e3440;
|
|
277
|
+
--theme-bg-secondary: #3b4252;
|
|
278
|
+
--theme-bg-raised: #3b4252;
|
|
279
|
+
--theme-bg-inset: #272d38;
|
|
280
|
+
--theme-border: #4c566a;
|
|
281
|
+
--theme-border-subtle: #3b4252;
|
|
282
|
+
--theme-text: #eceff4;
|
|
283
|
+
--theme-text-secondary: #d8dee9;
|
|
284
|
+
--theme-text-muted: #7b88a1;
|
|
285
|
+
--theme-text-faint: #4c566a;
|
|
286
|
+
--theme-accent: #88c0d0;
|
|
287
|
+
--theme-accent-hover: #8fbcbb;
|
|
288
|
+
--theme-accent-bg: rgba(136, 192, 208, 0.15);
|
|
289
|
+
--theme-accent-bg-strong: rgba(136, 192, 208, 0.25);
|
|
290
|
+
--theme-accent-text: #88c0d0;
|
|
291
|
+
--theme-accent-border: rgba(136, 192, 208, 0.4);
|
|
292
|
+
--theme-accent-ring: rgba(136, 192, 208, 0.3);
|
|
293
|
+
--theme-on-accent: #2e3440;
|
|
294
|
+
--theme-danger: #bf616a;
|
|
295
|
+
--theme-danger-bg: rgba(191, 97, 106, 0.15);
|
|
296
|
+
--theme-danger-text: #bf616a;
|
|
297
|
+
--theme-success: #a3be8c;
|
|
298
|
+
--theme-success-bg: rgba(163, 190, 140, 0.15);
|
|
299
|
+
--theme-success-text: #a3be8c;
|
|
300
|
+
--theme-warning: #ebcb8b;
|
|
301
|
+
--theme-warning-bg: rgba(235, 203, 139, 0.15);
|
|
302
|
+
--theme-warning-text: #ebcb8b;
|
|
303
|
+
--theme-comment-anchor-bg: rgba(235, 203, 139, 0.15);
|
|
304
|
+
--theme-comment-anchor-text: #ebcb8b;
|
|
305
|
+
--theme-comment-anchor-border: rgba(235, 203, 139, 0.3);
|
|
306
|
+
--theme-status-open-bg: rgba(136, 192, 208, 0.2);
|
|
307
|
+
--theme-status-open-text: #88c0d0;
|
|
308
|
+
--theme-status-resolved-bg: rgba(163, 190, 140, 0.2);
|
|
309
|
+
--theme-status-resolved-text: #a3be8c;
|
|
310
|
+
--theme-tint: rgba(236, 239, 244, 0.12);
|
|
311
|
+
--theme-tint-primary: rgba(136, 192, 208, 0.25);
|
|
312
|
+
--theme-tint-success: rgba(163, 190, 140, 0.25);
|
|
313
|
+
--theme-tint-danger: rgba(191, 97, 106, 0.2);
|
|
314
|
+
--theme-comment-bg: rgba(235, 203, 139, 0.2);
|
|
315
|
+
--theme-comment-bg-opaque: #54524f;
|
|
316
|
+
--theme-comment-bg-hover: rgba(235, 203, 139, 0.3);
|
|
317
|
+
--theme-comment-underline: #ebcb8b;
|
|
318
|
+
--theme-comment-underline-active: #d08770;
|
|
319
|
+
--theme-comment-ring: rgba(208, 135, 112, 0.3);
|
|
320
|
+
--theme-selection-bg: rgba(94, 129, 172, 0.25);
|
|
321
|
+
--theme-native-selection: rgba(136, 192, 208, 0.3);
|
|
322
|
+
--theme-drag-handle: #d08770;
|
|
323
|
+
--theme-drag-handle-hover: #ebcb8b;
|
|
324
|
+
--theme-diff-added-bg: rgba(163, 190, 140, 0.15);
|
|
325
|
+
--theme-diff-added-text: #a3be8c;
|
|
326
|
+
--theme-diff-removed-bg: rgba(191, 97, 106, 0.15);
|
|
327
|
+
--theme-diff-removed-text: #bf616a;
|
|
328
|
+
--theme-gradient-from: #2e3440;
|
|
329
|
+
--theme-gradient-to: rgba(136, 192, 208, 0.08);
|
|
330
|
+
--theme-search-bg: rgba(163, 190, 140, 0.3);
|
|
331
|
+
--theme-search-active-bg: rgba(208, 135, 112, 0.7);
|
|
332
|
+
--theme-search-active-text: #eceff4;
|
|
333
|
+
--theme-scrollbar-thumb: #4c566a;
|
|
334
|
+
--theme-scrollbar-thumb-hover: #5e6a82;
|
|
335
|
+
--theme-scrollbar-track: #3b4252;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/* ========== Rosé Pine Theme ========== */
|
|
339
|
+
[data-theme="rose-pine"] {
|
|
340
|
+
color-scheme: dark;
|
|
341
|
+
--theme-bg: #191724;
|
|
342
|
+
--theme-bg-secondary: #1f1d2e;
|
|
343
|
+
--theme-bg-raised: #26233a;
|
|
344
|
+
--theme-bg-inset: #13111e;
|
|
345
|
+
--theme-border: #403d52;
|
|
346
|
+
--theme-border-subtle: #26233a;
|
|
347
|
+
--theme-text: #e0def4;
|
|
348
|
+
--theme-text-secondary: #908caa;
|
|
349
|
+
--theme-text-muted: #6e6a86;
|
|
350
|
+
--theme-text-faint: #524f67;
|
|
351
|
+
--theme-accent: #c4a7e7;
|
|
352
|
+
--theme-accent-hover: #d4bdf7;
|
|
353
|
+
--theme-accent-bg: rgba(196, 167, 231, 0.15);
|
|
354
|
+
--theme-accent-bg-strong: rgba(196, 167, 231, 0.25);
|
|
355
|
+
--theme-accent-text: #c4a7e7;
|
|
356
|
+
--theme-accent-border: rgba(196, 167, 231, 0.4);
|
|
357
|
+
--theme-accent-ring: rgba(196, 167, 231, 0.3);
|
|
358
|
+
--theme-on-accent: #191724;
|
|
359
|
+
--theme-danger: #eb6f92;
|
|
360
|
+
--theme-danger-bg: rgba(235, 111, 146, 0.15);
|
|
361
|
+
--theme-danger-text: #eb6f92;
|
|
362
|
+
--theme-success: #9ccfd8;
|
|
363
|
+
--theme-success-bg: rgba(156, 207, 216, 0.15);
|
|
364
|
+
--theme-success-text: #9ccfd8;
|
|
365
|
+
--theme-warning: #f6c177;
|
|
366
|
+
--theme-warning-bg: rgba(246, 193, 119, 0.15);
|
|
367
|
+
--theme-warning-text: #f6c177;
|
|
368
|
+
--theme-comment-anchor-bg: rgba(246, 193, 119, 0.15);
|
|
369
|
+
--theme-comment-anchor-text: #f6c177;
|
|
370
|
+
--theme-comment-anchor-border: rgba(246, 193, 119, 0.3);
|
|
371
|
+
--theme-status-open-bg: rgba(196, 167, 231, 0.2);
|
|
372
|
+
--theme-status-open-text: #c4a7e7;
|
|
373
|
+
--theme-status-resolved-bg: rgba(156, 207, 216, 0.2);
|
|
374
|
+
--theme-status-resolved-text: #9ccfd8;
|
|
375
|
+
--theme-tint: rgba(224, 222, 244, 0.12);
|
|
376
|
+
--theme-tint-primary: rgba(196, 167, 231, 0.25);
|
|
377
|
+
--theme-tint-success: rgba(156, 207, 216, 0.25);
|
|
378
|
+
--theme-tint-danger: rgba(235, 111, 146, 0.2);
|
|
379
|
+
--theme-comment-bg: rgba(246, 193, 119, 0.2);
|
|
380
|
+
--theme-comment-bg-opaque: #453935;
|
|
381
|
+
--theme-comment-bg-hover: rgba(246, 193, 119, 0.3);
|
|
382
|
+
--theme-comment-underline: #f6c177;
|
|
383
|
+
--theme-comment-underline-active: #ea9d34;
|
|
384
|
+
--theme-comment-ring: rgba(234, 157, 52, 0.3);
|
|
385
|
+
--theme-selection-bg: rgba(196, 167, 231, 0.2);
|
|
386
|
+
--theme-native-selection: rgba(196, 167, 231, 0.3);
|
|
387
|
+
--theme-drag-handle: #ea9d34;
|
|
388
|
+
--theme-drag-handle-hover: #f6c177;
|
|
389
|
+
--theme-diff-added-bg: rgba(156, 207, 216, 0.15);
|
|
390
|
+
--theme-diff-added-text: #9ccfd8;
|
|
391
|
+
--theme-diff-removed-bg: rgba(235, 111, 146, 0.15);
|
|
392
|
+
--theme-diff-removed-text: #eb6f92;
|
|
393
|
+
--theme-gradient-from: #191724;
|
|
394
|
+
--theme-gradient-to: rgba(196, 167, 231, 0.08);
|
|
395
|
+
--theme-search-bg: rgba(156, 207, 216, 0.3);
|
|
396
|
+
--theme-search-active-bg: rgba(234, 157, 52, 0.7);
|
|
397
|
+
--theme-search-active-text: #e0def4;
|
|
398
|
+
--theme-scrollbar-thumb: #403d52;
|
|
399
|
+
--theme-scrollbar-thumb-hover: #524f67;
|
|
400
|
+
--theme-scrollbar-track: #1f1d2e;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
/* ========== Solarized Light Theme ========== */
|
|
404
|
+
[data-theme="solarized"] {
|
|
405
|
+
color-scheme: light;
|
|
406
|
+
--theme-bg: #fdf6e3;
|
|
407
|
+
--theme-bg-secondary: #eee8d5;
|
|
408
|
+
--theme-bg-raised: #fdf6e3;
|
|
409
|
+
--theme-bg-inset: #eee8d5;
|
|
410
|
+
--theme-border: #d3cbb7;
|
|
411
|
+
--theme-border-subtle: #eee8d5;
|
|
412
|
+
--theme-text: #073642;
|
|
413
|
+
--theme-text-secondary: #586e75;
|
|
414
|
+
--theme-text-muted: #93a1a1;
|
|
415
|
+
--theme-text-faint: #c0c4bb;
|
|
416
|
+
--theme-accent: #268bd2;
|
|
417
|
+
--theme-accent-hover: #1a6fb0;
|
|
418
|
+
--theme-accent-bg: rgba(38, 139, 210, 0.1);
|
|
419
|
+
--theme-accent-bg-strong: rgba(38, 139, 210, 0.18);
|
|
420
|
+
--theme-accent-text: #268bd2;
|
|
421
|
+
--theme-accent-border: rgba(38, 139, 210, 0.35);
|
|
422
|
+
--theme-accent-ring: rgba(38, 139, 210, 0.25);
|
|
423
|
+
--theme-on-accent: #fdf6e3;
|
|
424
|
+
--theme-danger: #dc322f;
|
|
425
|
+
--theme-danger-bg: rgba(220, 50, 47, 0.1);
|
|
426
|
+
--theme-danger-text: #dc322f;
|
|
427
|
+
--theme-success: #859900;
|
|
428
|
+
--theme-success-bg: rgba(133, 153, 0, 0.1);
|
|
429
|
+
--theme-success-text: #859900;
|
|
430
|
+
--theme-warning: #b58900;
|
|
431
|
+
--theme-warning-bg: rgba(181, 137, 0, 0.12);
|
|
432
|
+
--theme-warning-text: #b58900;
|
|
433
|
+
--theme-comment-anchor-bg: rgba(181, 137, 0, 0.12);
|
|
434
|
+
--theme-comment-anchor-text: #b58900;
|
|
435
|
+
--theme-comment-anchor-border: rgba(181, 137, 0, 0.3);
|
|
436
|
+
--theme-status-open-bg: rgba(38, 139, 210, 0.15);
|
|
437
|
+
--theme-status-open-text: #268bd2;
|
|
438
|
+
--theme-status-resolved-bg: rgba(133, 153, 0, 0.15);
|
|
439
|
+
--theme-status-resolved-text: #859900;
|
|
440
|
+
--theme-tint: rgba(7, 54, 66, 0.1);
|
|
441
|
+
--theme-tint-primary: rgba(38, 139, 210, 0.18);
|
|
442
|
+
--theme-tint-success: rgba(133, 153, 0, 0.18);
|
|
443
|
+
--theme-tint-danger: rgba(220, 50, 47, 0.15);
|
|
444
|
+
--theme-comment-bg: rgba(181, 137, 0, 0.18);
|
|
445
|
+
--theme-comment-bg-opaque: #f0e2ba;
|
|
446
|
+
--theme-comment-bg-hover: rgba(181, 137, 0, 0.28);
|
|
447
|
+
--theme-comment-underline: #b58900;
|
|
448
|
+
--theme-comment-underline-active: #926e00;
|
|
449
|
+
--theme-comment-ring: rgba(146, 110, 0, 0.3);
|
|
450
|
+
--theme-selection-bg: rgba(38, 139, 210, 0.15);
|
|
451
|
+
--theme-native-selection: rgba(38, 139, 210, 0.25);
|
|
452
|
+
--theme-drag-handle: #926e00;
|
|
453
|
+
--theme-drag-handle-hover: #b58900;
|
|
454
|
+
--theme-diff-added-bg: rgba(133, 153, 0, 0.12);
|
|
455
|
+
--theme-diff-added-text: #586e75;
|
|
456
|
+
--theme-diff-removed-bg: rgba(220, 50, 47, 0.12);
|
|
457
|
+
--theme-diff-removed-text: #dc322f;
|
|
458
|
+
--theme-gradient-from: #eee8d5;
|
|
459
|
+
--theme-gradient-to: rgba(38, 139, 210, 0.06);
|
|
460
|
+
--theme-search-bg: rgba(133, 153, 0, 0.25);
|
|
461
|
+
--theme-search-active-bg: rgba(203, 75, 22, 0.6);
|
|
462
|
+
--theme-search-active-text: #fdf6e3;
|
|
463
|
+
--theme-scrollbar-thumb: #c0c4bb;
|
|
464
|
+
--theme-scrollbar-thumb-hover: #a5a99e;
|
|
465
|
+
--theme-scrollbar-track: #eee8d5;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
/* ========== GitHub Theme ========== */
|
|
469
|
+
[data-theme="github"] {
|
|
470
|
+
color-scheme: light;
|
|
471
|
+
--theme-bg: #ffffff;
|
|
472
|
+
--theme-bg-secondary: #f6f8fa;
|
|
473
|
+
--theme-bg-raised: #ffffff;
|
|
474
|
+
--theme-bg-inset: #f6f8fa;
|
|
475
|
+
--theme-border: #d0d7de;
|
|
476
|
+
--theme-border-subtle: #e8ecf0;
|
|
477
|
+
--theme-text: #1f2328;
|
|
478
|
+
--theme-text-secondary: #656d76;
|
|
479
|
+
--theme-text-muted: #8b949e;
|
|
480
|
+
--theme-text-faint: #c0c8d0;
|
|
481
|
+
--theme-accent: #0969da;
|
|
482
|
+
--theme-accent-hover: #0550ae;
|
|
483
|
+
--theme-accent-bg: rgba(9, 105, 218, 0.08);
|
|
484
|
+
--theme-accent-bg-strong: rgba(9, 105, 218, 0.15);
|
|
485
|
+
--theme-accent-text: #0969da;
|
|
486
|
+
--theme-accent-border: rgba(9, 105, 218, 0.35);
|
|
487
|
+
--theme-accent-ring: rgba(9, 105, 218, 0.25);
|
|
488
|
+
--theme-on-accent: #ffffff;
|
|
489
|
+
--theme-danger: #cf222e;
|
|
490
|
+
--theme-danger-bg: rgba(207, 34, 46, 0.08);
|
|
491
|
+
--theme-danger-text: #cf222e;
|
|
492
|
+
--theme-success: #1a7f37;
|
|
493
|
+
--theme-success-bg: rgba(26, 127, 55, 0.08);
|
|
494
|
+
--theme-success-text: #1a7f37;
|
|
495
|
+
--theme-warning: #bf8700;
|
|
496
|
+
--theme-warning-bg: rgba(191, 135, 0, 0.1);
|
|
497
|
+
--theme-warning-text: #9a6700;
|
|
498
|
+
--theme-comment-anchor-bg: rgba(191, 135, 0, 0.1);
|
|
499
|
+
--theme-comment-anchor-text: #9a6700;
|
|
500
|
+
--theme-comment-anchor-border: rgba(191, 135, 0, 0.3);
|
|
501
|
+
--theme-status-open-bg: rgba(9, 105, 218, 0.1);
|
|
502
|
+
--theme-status-open-text: #0969da;
|
|
503
|
+
--theme-status-resolved-bg: rgba(26, 127, 55, 0.1);
|
|
504
|
+
--theme-status-resolved-text: #1a7f37;
|
|
505
|
+
--theme-tint: rgba(31, 35, 40, 0.08);
|
|
506
|
+
--theme-tint-primary: rgba(9, 105, 218, 0.15);
|
|
507
|
+
--theme-tint-success: rgba(26, 127, 55, 0.15);
|
|
508
|
+
--theme-tint-danger: rgba(207, 34, 46, 0.12);
|
|
509
|
+
--theme-comment-bg: rgba(191, 135, 0, 0.15);
|
|
510
|
+
--theme-comment-bg-opaque: #f5edd9;
|
|
511
|
+
--theme-comment-bg-hover: rgba(191, 135, 0, 0.25);
|
|
512
|
+
--theme-comment-underline: #bf8700;
|
|
513
|
+
--theme-comment-underline-active: #9a6700;
|
|
514
|
+
--theme-comment-ring: rgba(154, 103, 0, 0.3);
|
|
515
|
+
--theme-selection-bg: rgba(9, 105, 218, 0.12);
|
|
516
|
+
--theme-native-selection: rgba(9, 105, 218, 0.2);
|
|
517
|
+
--theme-drag-handle: #9a6700;
|
|
518
|
+
--theme-drag-handle-hover: #bf8700;
|
|
519
|
+
--theme-diff-added-bg: #dafbe1;
|
|
520
|
+
--theme-diff-added-text: #116329;
|
|
521
|
+
--theme-diff-removed-bg: #ffebe9;
|
|
522
|
+
--theme-diff-removed-text: #82071e;
|
|
523
|
+
--theme-gradient-from: #f6f8fa;
|
|
524
|
+
--theme-gradient-to: rgba(9, 105, 218, 0.04);
|
|
525
|
+
--theme-search-bg: rgba(74, 222, 128, 0.25);
|
|
526
|
+
--theme-search-active-bg: #f59e0b;
|
|
527
|
+
--theme-search-active-text: #ffffff;
|
|
528
|
+
--theme-scrollbar-thumb: #c8cdd2;
|
|
529
|
+
--theme-scrollbar-thumb-hover: #a8b0b8;
|
|
530
|
+
--theme-scrollbar-track: #f6f8fa;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
/* ========== Catppuccin Mocha Theme ========== */
|
|
534
|
+
[data-theme="catppuccin"] {
|
|
535
|
+
color-scheme: dark;
|
|
536
|
+
--theme-bg: #1e1e2e;
|
|
537
|
+
--theme-bg-secondary: #313244;
|
|
538
|
+
--theme-bg-raised: #313244;
|
|
539
|
+
--theme-bg-inset: #181825;
|
|
540
|
+
--theme-border: #45475a;
|
|
541
|
+
--theme-border-subtle: #313244;
|
|
542
|
+
--theme-text: #cdd6f4;
|
|
543
|
+
--theme-text-secondary: #bac2de;
|
|
544
|
+
--theme-text-muted: #6c7086;
|
|
545
|
+
--theme-text-faint: #45475a;
|
|
546
|
+
--theme-accent: #cba6f7;
|
|
547
|
+
--theme-accent-hover: #d8bcf9;
|
|
548
|
+
--theme-accent-bg: rgba(203, 166, 247, 0.15);
|
|
549
|
+
--theme-accent-bg-strong: rgba(203, 166, 247, 0.25);
|
|
550
|
+
--theme-accent-text: #cba6f7;
|
|
551
|
+
--theme-accent-border: rgba(203, 166, 247, 0.4);
|
|
552
|
+
--theme-accent-ring: rgba(203, 166, 247, 0.3);
|
|
553
|
+
--theme-on-accent: #1e1e2e;
|
|
554
|
+
--theme-danger: #f38ba8;
|
|
555
|
+
--theme-danger-bg: rgba(243, 139, 168, 0.15);
|
|
556
|
+
--theme-danger-text: #f38ba8;
|
|
557
|
+
--theme-success: #a6e3a1;
|
|
558
|
+
--theme-success-bg: rgba(166, 227, 161, 0.15);
|
|
559
|
+
--theme-success-text: #a6e3a1;
|
|
560
|
+
--theme-warning: #f9e2af;
|
|
561
|
+
--theme-warning-bg: rgba(249, 226, 175, 0.15);
|
|
562
|
+
--theme-warning-text: #f9e2af;
|
|
563
|
+
--theme-comment-anchor-bg: rgba(249, 226, 175, 0.15);
|
|
564
|
+
--theme-comment-anchor-text: #f9e2af;
|
|
565
|
+
--theme-comment-anchor-border: rgba(249, 226, 175, 0.3);
|
|
566
|
+
--theme-status-open-bg: rgba(203, 166, 247, 0.2);
|
|
567
|
+
--theme-status-open-text: #cba6f7;
|
|
568
|
+
--theme-status-resolved-bg: rgba(166, 227, 161, 0.2);
|
|
569
|
+
--theme-status-resolved-text: #a6e3a1;
|
|
570
|
+
--theme-tint: rgba(205, 214, 244, 0.12);
|
|
571
|
+
--theme-tint-primary: rgba(203, 166, 247, 0.25);
|
|
572
|
+
--theme-tint-success: rgba(166, 227, 161, 0.25);
|
|
573
|
+
--theme-tint-danger: rgba(243, 139, 168, 0.2);
|
|
574
|
+
--theme-comment-bg: rgba(249, 226, 175, 0.2);
|
|
575
|
+
--theme-comment-bg-opaque: #4a4548;
|
|
576
|
+
--theme-comment-bg-hover: rgba(249, 226, 175, 0.3);
|
|
577
|
+
--theme-comment-underline: #f9e2af;
|
|
578
|
+
--theme-comment-underline-active: #f2c97d;
|
|
579
|
+
--theme-comment-ring: rgba(242, 201, 125, 0.3);
|
|
580
|
+
--theme-selection-bg: rgba(137, 180, 250, 0.2);
|
|
581
|
+
--theme-native-selection: rgba(203, 166, 247, 0.3);
|
|
582
|
+
--theme-drag-handle: #f2c97d;
|
|
583
|
+
--theme-drag-handle-hover: #f9e2af;
|
|
584
|
+
--theme-diff-added-bg: rgba(166, 227, 161, 0.15);
|
|
585
|
+
--theme-diff-added-text: #a6e3a1;
|
|
586
|
+
--theme-diff-removed-bg: rgba(243, 139, 168, 0.15);
|
|
587
|
+
--theme-diff-removed-text: #f38ba8;
|
|
588
|
+
--theme-gradient-from: #1e1e2e;
|
|
589
|
+
--theme-gradient-to: rgba(203, 166, 247, 0.08);
|
|
590
|
+
--theme-search-bg: rgba(166, 227, 161, 0.3);
|
|
591
|
+
--theme-search-active-bg: rgba(250, 179, 135, 0.7);
|
|
592
|
+
--theme-search-active-text: #1e1e2e;
|
|
593
|
+
--theme-scrollbar-thumb: #45475a;
|
|
594
|
+
--theme-scrollbar-thumb-hover: #585b70;
|
|
595
|
+
--theme-scrollbar-track: #313244;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
/* ========== Scrollbar Styles ========== */
|
|
599
|
+
* {
|
|
600
|
+
scrollbar-color: var(--theme-scrollbar-thumb) var(--theme-scrollbar-track);
|
|
601
|
+
scrollbar-width: thin;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
::-webkit-scrollbar {
|
|
605
|
+
width: 8px;
|
|
606
|
+
height: 8px;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
::-webkit-scrollbar-track {
|
|
610
|
+
background: var(--theme-scrollbar-track);
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
::-webkit-scrollbar-thumb {
|
|
614
|
+
background: var(--theme-scrollbar-thumb);
|
|
615
|
+
border-radius: 4px;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
::-webkit-scrollbar-thumb:hover {
|
|
619
|
+
background: var(--theme-scrollbar-thumb-hover);
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
.no-scrollbar {
|
|
623
|
+
scrollbar-width: none;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
.no-scrollbar::-webkit-scrollbar {
|
|
627
|
+
width: 0;
|
|
628
|
+
height: 0;
|
|
629
|
+
display: none;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
/* ========== Prose Theme Overrides ========== */
|
|
633
|
+
.prose {
|
|
634
|
+
--tw-prose-body: var(--theme-text-secondary);
|
|
635
|
+
--tw-prose-headings: var(--theme-text);
|
|
636
|
+
--tw-prose-links: var(--theme-accent-text);
|
|
637
|
+
--tw-prose-bold: var(--theme-text);
|
|
638
|
+
--tw-prose-code: var(--theme-accent-text);
|
|
639
|
+
--tw-prose-quotes: var(--theme-text-secondary);
|
|
640
|
+
--tw-prose-quote-borders: var(--theme-border);
|
|
641
|
+
--tw-prose-counters: var(--theme-text-muted);
|
|
642
|
+
--tw-prose-bullets: var(--theme-text-muted);
|
|
643
|
+
--tw-prose-hr: var(--theme-border);
|
|
644
|
+
--tw-prose-th-borders: var(--theme-border);
|
|
645
|
+
--tw-prose-td-borders: var(--theme-border);
|
|
646
|
+
--tw-prose-captions: var(--theme-text-muted);
|
|
647
|
+
--tw-prose-pre-bg: var(--theme-bg-inset);
|
|
648
|
+
--tw-prose-pre-code: var(--theme-text-secondary);
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
.prose :where(code):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
652
|
+
color: var(--theme-accent-text);
|
|
653
|
+
background-color: var(--theme-accent-bg);
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
.prose :where(th):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
657
|
+
background-color: var(--theme-bg-secondary);
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
.prose :where(td):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
661
|
+
border-color: var(--theme-border);
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
.prose :where(h1):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
665
|
+
border-color: var(--theme-border);
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
.prose :where(hr):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
669
|
+
border-color: var(--theme-border);
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
.prose :where(pre):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
673
|
+
background-color: var(--theme-bg-inset);
|
|
674
|
+
color: var(--theme-text-secondary);
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
.prose :where(pre code):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
678
|
+
padding: 0;
|
|
679
|
+
background-color: transparent;
|
|
680
|
+
color: inherit;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
/* Reset prose mark styling so our highlights aren't overridden by the
|
|
684
|
+
Typography plugin or browser dark-mode defaults */
|
|
685
|
+
.prose mark,
|
|
686
|
+
mark {
|
|
687
|
+
background-color: transparent;
|
|
688
|
+
color: inherit;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
/* ========== Comment Highlight Styles ========== */
|
|
692
|
+
.prose mark.comment-highlight,
|
|
693
|
+
mark.comment-highlight {
|
|
694
|
+
background-color: var(--theme-comment-bg);
|
|
695
|
+
color: var(--theme-text);
|
|
696
|
+
text-decoration: underline 2px var(--theme-comment-underline);
|
|
697
|
+
text-underline-offset: 2px;
|
|
698
|
+
cursor: pointer;
|
|
699
|
+
border-radius: 2px;
|
|
700
|
+
transition: background-color 0.15s ease;
|
|
701
|
+
line-height: inherit;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
/* Mermaid highlights use inline styles — Chrome ignores class-based
|
|
705
|
+
background-color on inline elements inside SVG foreignObject. */
|
|
706
|
+
.mermaid-comment-highlight {
|
|
707
|
+
cursor: pointer;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
.prose mark.comment-highlight:hover,
|
|
711
|
+
mark.comment-highlight:hover {
|
|
712
|
+
background-color: var(--theme-comment-bg-hover);
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
.prose mark.comment-highlight-active,
|
|
716
|
+
mark.comment-highlight-active {
|
|
717
|
+
background-color: var(--theme-comment-bg-hover);
|
|
718
|
+
text-decoration-color: var(--theme-comment-underline-active);
|
|
719
|
+
outline: 1px solid var(--theme-comment-ring);
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
/* Smooth scrolling for the viewer */
|
|
723
|
+
.overflow-y-auto {
|
|
724
|
+
scroll-behavior: smooth;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
/* Pending selection highlight */
|
|
728
|
+
.prose mark.selection-highlight,
|
|
729
|
+
mark.selection-highlight {
|
|
730
|
+
background-color: var(--theme-selection-bg);
|
|
731
|
+
color: var(--theme-text);
|
|
732
|
+
border-radius: 2px;
|
|
733
|
+
line-height: inherit;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
/* Search highlights */
|
|
737
|
+
.prose mark.search-highlight,
|
|
738
|
+
mark.search-highlight {
|
|
739
|
+
background-color: var(--theme-search-bg);
|
|
740
|
+
color: inherit;
|
|
741
|
+
border-radius: 2px;
|
|
742
|
+
line-height: inherit;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
.prose mark.search-highlight-active,
|
|
746
|
+
mark.search-highlight-active {
|
|
747
|
+
background-color: var(--theme-search-active-bg);
|
|
748
|
+
color: var(--theme-search-active-text);
|
|
749
|
+
border-radius: 2px;
|
|
750
|
+
line-height: inherit;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
/* Browser native selection color */
|
|
754
|
+
::selection {
|
|
755
|
+
background-color: var(--theme-native-selection);
|
|
756
|
+
color: inherit;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
/* Drag handles for resizing comment highlights */
|
|
760
|
+
.drag-handle {
|
|
761
|
+
width: 4px;
|
|
762
|
+
background-color: var(--theme-drag-handle);
|
|
763
|
+
border-radius: 2px;
|
|
764
|
+
cursor: ew-resize;
|
|
765
|
+
z-index: 10;
|
|
766
|
+
position: absolute;
|
|
767
|
+
transition: background-color 0.15s ease, transform 0.1s ease;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
.drag-handle::before {
|
|
771
|
+
content: '';
|
|
772
|
+
position: absolute;
|
|
773
|
+
top: -2px;
|
|
774
|
+
bottom: -2px;
|
|
775
|
+
left: -8px;
|
|
776
|
+
right: -8px;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
.drag-handle:hover {
|
|
780
|
+
background-color: var(--theme-drag-handle-hover);
|
|
781
|
+
transform: scaleX(1.5);
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
/* During drag, lock cursor across entire page */
|
|
785
|
+
body.anchor-dragging,
|
|
786
|
+
body.anchor-dragging * {
|
|
787
|
+
cursor: ew-resize !important;
|
|
788
|
+
user-select: none !important;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
/* Textarea focus reset */
|
|
792
|
+
textarea:focus {
|
|
793
|
+
outline: none;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
/* Reset body margin */
|
|
797
|
+
body {
|
|
798
|
+
margin: 0;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
/* Context menu animation */
|
|
802
|
+
@keyframes context-menu-in {
|
|
803
|
+
from {
|
|
804
|
+
opacity: 0;
|
|
805
|
+
transform: scale(0.95);
|
|
806
|
+
}
|
|
807
|
+
to {
|
|
808
|
+
opacity: 1;
|
|
809
|
+
transform: scale(1);
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
.context-menu-enter {
|
|
814
|
+
animation: context-menu-in 0.1s ease-out;
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
/* ========== Mermaid Block Styles ========== */
|
|
818
|
+
.mermaid-block {
|
|
819
|
+
position: relative;
|
|
820
|
+
margin: 1rem 0;
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
.mermaid-block .mermaid-svg {
|
|
824
|
+
display: block;
|
|
825
|
+
padding: 1.5rem 1rem;
|
|
826
|
+
background-color: var(--theme-bg-inset);
|
|
827
|
+
border-radius: 8px;
|
|
828
|
+
overflow: auto;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
.mermaid-block .mermaid-svg svg {
|
|
832
|
+
display: block;
|
|
833
|
+
margin: 0 auto;
|
|
834
|
+
height: auto;
|
|
835
|
+
overflow: visible;
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
/* Mermaid sets foreignObject to a tight calculated height that can clip text
|
|
839
|
+
when browser font metrics differ slightly from the measurement pass. */
|
|
840
|
+
.mermaid-block .mermaid-svg foreignObject {
|
|
841
|
+
overflow: visible;
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
.mermaid-error {
|
|
845
|
+
padding: 1rem;
|
|
846
|
+
color: var(--theme-danger-text);
|
|
847
|
+
background-color: var(--theme-danger-bg);
|
|
848
|
+
border-radius: 8px;
|
|
849
|
+
font-size: 0.8rem;
|
|
850
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
851
|
+
white-space: pre-wrap;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
/* ========== Panel Edge Shadows ========== */
|
|
855
|
+
/* Inset shadows on the center content area create depth against side panels */
|
|
856
|
+
.panel-center {
|
|
857
|
+
box-shadow:
|
|
858
|
+
inset 6px 0 8px -6px rgba(0, 0, 0, 0.08),
|
|
859
|
+
inset -6px 0 8px -6px rgba(0, 0, 0, 0.08);
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
[data-theme="dark"] .panel-center,
|
|
863
|
+
[data-theme="nord"] .panel-center,
|
|
864
|
+
[data-theme="rose-pine"] .panel-center,
|
|
865
|
+
[data-theme="catppuccin"] .panel-center {
|
|
866
|
+
box-shadow:
|
|
867
|
+
inset 6px 0 8px -6px rgba(0, 0, 0, 0.3),
|
|
868
|
+
inset -6px 0 8px -6px rgba(0, 0, 0, 0.3);
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
/* ========== Raw View Styles ========== */
|
|
872
|
+
.raw-view {
|
|
873
|
+
position: relative;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
.raw-view-table {
|
|
877
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
878
|
+
font-size: 0.8125rem;
|
|
879
|
+
line-height: 1.625;
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
.raw-line {
|
|
883
|
+
display: flex;
|
|
884
|
+
align-items: baseline;
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
.raw-line-number {
|
|
888
|
+
flex-shrink: 0;
|
|
889
|
+
width: 3rem;
|
|
890
|
+
padding-right: 1rem;
|
|
891
|
+
text-align: right;
|
|
892
|
+
color: var(--theme-text-faint);
|
|
893
|
+
user-select: none;
|
|
894
|
+
border-right: 1px solid var(--theme-border-subtle);
|
|
895
|
+
box-sizing: border-box;
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
.raw-line-content {
|
|
899
|
+
flex: 1;
|
|
900
|
+
min-width: 0;
|
|
901
|
+
padding-left: 1rem;
|
|
902
|
+
white-space: pre-wrap;
|
|
903
|
+
word-break: break-word;
|
|
904
|
+
color: var(--theme-text-secondary);
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
/* Ensure empty lines still have height */
|
|
908
|
+
.raw-line-content:empty::after {
|
|
909
|
+
content: '\a0';
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
/* Diff overlay in raw view */
|
|
913
|
+
.raw-line-diff-added {
|
|
914
|
+
background-color: var(--color-diff-added-bg);
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
.raw-line-diff-added .raw-line-content {
|
|
918
|
+
color: var(--color-diff-added-text);
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
.raw-line-diff-removed {
|
|
922
|
+
background-color: var(--color-diff-removed-bg);
|
|
923
|
+
opacity: 0.7;
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
.raw-line-diff-removed .raw-line-content {
|
|
927
|
+
color: var(--color-diff-removed-text);
|
|
928
|
+
text-decoration: line-through;
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
/* Raw view toolbar — matches panel headers (h-10 = 2.5rem) */
|
|
932
|
+
.raw-toolbar {
|
|
933
|
+
display: flex;
|
|
934
|
+
align-items: center;
|
|
935
|
+
justify-content: space-between;
|
|
936
|
+
height: 2.5rem;
|
|
937
|
+
padding-left: 0.5rem;
|
|
938
|
+
padding-right: 0.5rem;
|
|
939
|
+
border-bottom: 1px solid var(--theme-border-subtle);
|
|
940
|
+
background-color: var(--theme-bg);
|
|
941
|
+
flex-shrink: 0;
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
.raw-toolbar-left,
|
|
945
|
+
.raw-toolbar-right {
|
|
946
|
+
display: flex;
|
|
947
|
+
align-items: center;
|
|
948
|
+
gap: 0.375rem;
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
/* Comment markers hidden when toggle is off */
|
|
952
|
+
.raw-view-comments-hidden .raw-comment-marker {
|
|
953
|
+
display: none;
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
/* --- Syntax highlighting --- */
|
|
957
|
+
.raw-heading {
|
|
958
|
+
color: var(--theme-text);
|
|
959
|
+
font-weight: 600;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
.raw-bold {
|
|
963
|
+
color: var(--theme-text);
|
|
964
|
+
font-weight: 600;
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
.raw-italic {
|
|
968
|
+
color: var(--theme-text);
|
|
969
|
+
font-style: italic;
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
.raw-inline-code {
|
|
973
|
+
color: var(--theme-accent-text);
|
|
974
|
+
background-color: var(--theme-accent-bg);
|
|
975
|
+
border-radius: 3px;
|
|
976
|
+
padding: 0.1em 0.3em;
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
.raw-code-block {
|
|
980
|
+
color: var(--theme-text-secondary);
|
|
981
|
+
background-color: var(--theme-bg-inset);
|
|
982
|
+
border-radius: 4px;
|
|
983
|
+
display: inline;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
.raw-link {
|
|
987
|
+
color: var(--theme-accent-text);
|
|
988
|
+
text-decoration: underline;
|
|
989
|
+
text-decoration-color: var(--theme-accent-border);
|
|
990
|
+
text-underline-offset: 2px;
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
.raw-blockquote {
|
|
994
|
+
color: var(--theme-text-muted);
|
|
995
|
+
border-left: 2px solid var(--theme-border);
|
|
996
|
+
padding-left: 0.5em;
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
.raw-list-marker {
|
|
1000
|
+
color: var(--theme-text-muted);
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
.raw-hr {
|
|
1004
|
+
color: var(--theme-text-faint);
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
.raw-table {
|
|
1008
|
+
color: var(--theme-text-secondary);
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
.raw-frontmatter {
|
|
1012
|
+
color: var(--theme-text-muted);
|
|
1013
|
+
background-color: var(--theme-bg-inset);
|
|
1014
|
+
border-radius: 4px;
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
.raw-html-comment {
|
|
1018
|
+
color: var(--theme-text-faint);
|
|
1019
|
+
font-style: italic;
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
/* --- Comment marker highlighting --- */
|
|
1023
|
+
.raw-comment-marker {
|
|
1024
|
+
background-color: var(--theme-comment-bg);
|
|
1025
|
+
color: var(--theme-comment-anchor-text);
|
|
1026
|
+
border-radius: 3px;
|
|
1027
|
+
padding: 0.1em 0.2em;
|
|
1028
|
+
border-bottom: 2px solid var(--theme-comment-underline);
|
|
1029
|
+
cursor: default;
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
.raw-comment-marker-active {
|
|
1033
|
+
background-color: var(--theme-comment-bg-hover);
|
|
1034
|
+
border-bottom-color: var(--theme-comment-underline-active);
|
|
1035
|
+
outline: 1px solid var(--theme-comment-ring);
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
/* Flash animation when scrolling to a comment marker */
|
|
1039
|
+
@keyframes raw-marker-flash {
|
|
1040
|
+
0% { background-color: var(--theme-comment-bg-hover); }
|
|
1041
|
+
30% { background-color: var(--theme-warning-bg); outline: 2px solid var(--theme-warning); }
|
|
1042
|
+
100% { background-color: var(--theme-comment-bg); outline: none; }
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
.raw-comment-marker-flash {
|
|
1046
|
+
animation: raw-marker-flash 1.5s ease-out;
|
|
1047
|
+
}
|