zero-debt 0.0.0-stage → 2.2.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 +249 -3
- package/lib/claude.js +148 -0
- package/package.json +18 -6
- package/public/css/zero.css +341 -0
- package/public/fonts/OFL-hanken-grotesk.txt +93 -0
- package/public/fonts/OFL-jetbrains-mono.txt +93 -0
- package/public/fonts/hanken-grotesk.woff2 +0 -0
- package/public/fonts/jetbrains-mono.woff2 +0 -0
- package/public/index.html +245 -0
- package/public/js/analysis.js +62 -0
- package/public/js/api.js +88 -0
- package/public/js/categorize.js +69 -0
- package/public/js/charts.js +173 -0
- package/public/js/demo.js +84 -0
- package/public/js/format.js +38 -0
- package/public/js/importers.js +251 -0
- package/public/js/insights.js +137 -0
- package/public/js/keys.js +50 -0
- package/public/js/main.js +946 -0
- package/public/js/palette.js +67 -0
- package/public/js/payoff.js +143 -0
- package/public/js/progress.js +91 -0
- package/public/js/settings.js +112 -0
- package/public/js/state.js +130 -0
- package/public/og.png +0 -0
- package/server.js +314 -0
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
/* zero.css
|
|
2
|
+
Colors, font and size come from settings.json — settings.js writes them onto :root as
|
|
3
|
+
custom properties. Nothing below hard-codes a color.
|
|
4
|
+
Sections: fonts · tokens · base · bars · panes · payoff · debts · plan · notes · flow ·
|
|
5
|
+
transactions · dialogs · palette · settings · small screens */
|
|
6
|
+
|
|
7
|
+
/* ---------- fonts (self-hosted, SIL OFL) ---------- */
|
|
8
|
+
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }
|
|
9
|
+
@font-face { font-family: 'Hanken Grotesk'; src: url('../fonts/hanken-grotesk.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
|
|
10
|
+
|
|
11
|
+
/* ---------- tokens (defaults until settings load) ---------- */
|
|
12
|
+
:root {
|
|
13
|
+
--bg: #eceee9; --surface: #e1e4de; --fg: #1c2433; --muted: #5f656e; --rule: #c9cdc6;
|
|
14
|
+
--accent: #1c2433; --danger: #b8362a; --good: #2f6b4f;
|
|
15
|
+
--font: 'JetBrains Mono', ui-monospace, monospace;
|
|
16
|
+
--size: 14px;
|
|
17
|
+
--cols: 2;
|
|
18
|
+
--pad: 1.25rem; /* inside a pane */
|
|
19
|
+
--gap: 1rem; /* between panes */
|
|
20
|
+
--wide: 84rem;
|
|
21
|
+
}
|
|
22
|
+
:root[data-density=compact] { --pad: .8rem; --gap: .6rem; }
|
|
23
|
+
|
|
24
|
+
/* ---------- base ---------- */
|
|
25
|
+
*, *::before, *::after { box-sizing: border-box; }
|
|
26
|
+
html { font-size: var(--size); -webkit-text-size-adjust: 100%; }
|
|
27
|
+
body {
|
|
28
|
+
margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
|
|
29
|
+
font: 400 1rem/1.55 var(--font);
|
|
30
|
+
color: var(--fg); background: var(--bg);
|
|
31
|
+
font-variant-numeric: tabular-nums;
|
|
32
|
+
}
|
|
33
|
+
:root[data-grid=on] body {
|
|
34
|
+
background-image: radial-gradient(color-mix(in srgb, var(--fg) 11%, transparent) 1px, transparent 1.2px);
|
|
35
|
+
background-size: 20px 20px;
|
|
36
|
+
}
|
|
37
|
+
:root[data-font=sans] .hero { letter-spacing: -0.045em; font-weight: 760; }
|
|
38
|
+
h1, h2, h3 { margin: 0; font-size: 1rem; font-weight: 600; }
|
|
39
|
+
p { margin: 0; }
|
|
40
|
+
button, input, select, textarea { font: inherit; color: inherit; }
|
|
41
|
+
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
42
|
+
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
43
|
+
.skip { position: absolute; left: -999px; }
|
|
44
|
+
.skip:focus { left: 1rem; top: 1rem; background: var(--bg); padding: .5rem; z-index: 10; }
|
|
45
|
+
.num { text-align: right; }
|
|
46
|
+
.hint, small { color: var(--muted); font-size: .86rem; }
|
|
47
|
+
.error { color: var(--danger); }
|
|
48
|
+
|
|
49
|
+
button {
|
|
50
|
+
cursor: pointer; background: transparent; color: var(--fg);
|
|
51
|
+
border: 1px solid var(--fg); border-radius: 4px; padding: .25rem .65rem; line-height: 1.4;
|
|
52
|
+
display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
|
|
53
|
+
}
|
|
54
|
+
button:hover { background: var(--fg); color: var(--bg); }
|
|
55
|
+
button:hover kbd { border-color: currentColor; color: inherit; }
|
|
56
|
+
button:disabled { opacity: .4; cursor: not-allowed; background: transparent; color: var(--fg); }
|
|
57
|
+
button.quiet { border-color: var(--rule); }
|
|
58
|
+
button.quiet:hover { border-color: var(--fg); }
|
|
59
|
+
button.link { border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
|
|
60
|
+
button.link:hover { background: none; color: inherit; }
|
|
61
|
+
button.danger { border-color: var(--danger); color: var(--danger); }
|
|
62
|
+
button.danger:hover { background: var(--danger); color: var(--bg); }
|
|
63
|
+
|
|
64
|
+
kbd {
|
|
65
|
+
font: inherit; font-size: .78rem; color: var(--muted);
|
|
66
|
+
border: 1px solid var(--rule); border-radius: 3px; padding: 0 .3rem; line-height: 1.4;
|
|
67
|
+
}
|
|
68
|
+
kbd:empty { display: none; }
|
|
69
|
+
|
|
70
|
+
input[type=number], input[type=text], input[type=search], input[type=month], input[type=date], input[type=password], select, textarea {
|
|
71
|
+
background: var(--surface); border: 1px solid transparent; border-radius: 3px; padding: .25rem .45rem; min-width: 0;
|
|
72
|
+
}
|
|
73
|
+
input:hover, select:hover, textarea:hover { border-color: var(--rule); }
|
|
74
|
+
input[type=number] { text-align: right; }
|
|
75
|
+
input[type=range] { width: 100%; accent-color: var(--accent); }
|
|
76
|
+
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 1rem; height: 1rem; margin: 0; }
|
|
77
|
+
input[type=color] { width: 2rem; height: 1.6rem; padding: 0; border: 1px solid var(--rule); border-radius: 3px; background: none; }
|
|
78
|
+
|
|
79
|
+
/* ---------- top bar and status bar ---------- */
|
|
80
|
+
.bar { display: flex; align-items: center; gap: 1rem; padding: .55rem clamp(.75rem, 3vw, 1.5rem); }
|
|
81
|
+
.top { border-bottom: 1px solid var(--rule); }
|
|
82
|
+
.brand { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.03em; }
|
|
83
|
+
.slash { position: relative; display: inline-block; }
|
|
84
|
+
.slash::after { content: ''; position: absolute; left: -.08em; right: -.08em; top: 55%; border-top: 2px solid var(--danger); transform: rotate(-38deg); }
|
|
85
|
+
.where { color: var(--muted); font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
|
|
86
|
+
.top-actions { display: flex; gap: .4rem; }
|
|
87
|
+
|
|
88
|
+
.status {
|
|
89
|
+
border-top: 1px solid var(--rule); font-size: .8rem; color: var(--muted);
|
|
90
|
+
flex-wrap: wrap; gap: .25rem 0; position: sticky; bottom: 0; background: var(--bg);
|
|
91
|
+
}
|
|
92
|
+
.status span + span::before { content: '│'; padding: 0 .65rem; color: var(--rule); }
|
|
93
|
+
.status .ok { color: var(--good); }
|
|
94
|
+
.status .bad { color: var(--danger); }
|
|
95
|
+
|
|
96
|
+
.banner {
|
|
97
|
+
margin: var(--gap) auto 0; width: min(var(--wide), calc(100% - 2 * clamp(.75rem, 3vw, 1.5rem)));
|
|
98
|
+
border: 1px dashed var(--rule); border-radius: 4px; padding: .5rem .75rem; font-size: .86rem; color: var(--muted);
|
|
99
|
+
}
|
|
100
|
+
.banner button { margin-left: .5rem; }
|
|
101
|
+
.banner a, .bottom a { color: var(--fg); text-underline-offset: 3px; }
|
|
102
|
+
|
|
103
|
+
/* ---------- panes ---------- */
|
|
104
|
+
.panes {
|
|
105
|
+
flex: 1; width: min(var(--wide), 100%); margin: 0 auto;
|
|
106
|
+
padding: var(--gap) clamp(.75rem, 3vw, 1.5rem) calc(var(--gap) * 2);
|
|
107
|
+
display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap); align-items: start;
|
|
108
|
+
}
|
|
109
|
+
.pane {
|
|
110
|
+
background: color-mix(in srgb, var(--bg) 82%, transparent);
|
|
111
|
+
border: 1px solid var(--rule); border-radius: 6px; padding: var(--pad); min-width: 0;
|
|
112
|
+
display: flex; flex-direction: column; gap: .9rem;
|
|
113
|
+
}
|
|
114
|
+
.pane.wide { grid-column: 1 / -1; }
|
|
115
|
+
.pane[hidden] { display: none; }
|
|
116
|
+
.pane-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
|
|
117
|
+
.pane-head h2 { display: flex; align-items: baseline; gap: .55rem; }
|
|
118
|
+
.idx { color: var(--muted); font-weight: 400; font-size: .8rem; border: 1px solid var(--rule); border-radius: 3px; padding: 0 .3rem; }
|
|
119
|
+
.idx:empty { display: none; }
|
|
120
|
+
.inline { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .86rem; }
|
|
121
|
+
|
|
122
|
+
/* ---------- payoff ---------- */
|
|
123
|
+
.lead { color: var(--muted); }
|
|
124
|
+
.hero {
|
|
125
|
+
font-size: clamp(3rem, 10vw, 6.5rem); font-weight: 700; line-height: .95; letter-spacing: -0.04em;
|
|
126
|
+
margin: -.2rem 0 .2rem; overflow-wrap: anywhere;
|
|
127
|
+
}
|
|
128
|
+
.hero.is-bad { color: var(--danger); }
|
|
129
|
+
.facts { display: flex; flex-wrap: wrap; gap: .5rem 2.25rem; margin: 0; }
|
|
130
|
+
.facts div { display: flex; flex-direction: column-reverse; }
|
|
131
|
+
.facts dt { color: var(--muted); font-size: .8rem; }
|
|
132
|
+
.facts dd { margin: 0; font-size: 1.35rem; font-weight: 600; }
|
|
133
|
+
.facts .cost dd { color: var(--danger); }
|
|
134
|
+
.chart-fig { margin: 0; }
|
|
135
|
+
.readout { min-height: 1.5em; font-size: .8rem; color: var(--muted); }
|
|
136
|
+
.payoff-chart { height: clamp(200px, 30vw, 320px); }
|
|
137
|
+
.payoff-chart svg, .flow-chart svg { display: block; width: 100%; height: 100%; overflow: visible; touch-action: pan-y; }
|
|
138
|
+
.legend { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: .8rem; color: var(--muted); margin-top: .4rem; }
|
|
139
|
+
.key::before { content: ''; display: inline-block; width: 1.4em; vertical-align: middle; margin-right: .4em; border-top: 2.5px solid var(--accent); }
|
|
140
|
+
.key-min::before { border-top: 1.5px dashed var(--muted); }
|
|
141
|
+
.key-promo::before { width: 0; height: .9em; border-top: 0; border-left: 1.5px solid var(--danger); }
|
|
142
|
+
.key-in::before { width: .7em; height: .7em; border: 0; background: var(--accent); }
|
|
143
|
+
.key-out::before { width: .7em; height: .7em; border: 0; background: var(--danger); }
|
|
144
|
+
|
|
145
|
+
.axis text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
|
|
146
|
+
.grid line { stroke: var(--rule); stroke-width: 1; }
|
|
147
|
+
.line-plan { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
|
|
148
|
+
.line-min { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 5; }
|
|
149
|
+
.area-plan { fill: var(--accent); opacity: .07; }
|
|
150
|
+
.promo line { stroke: var(--danger); stroke-width: 1.5; }
|
|
151
|
+
.promo text { fill: var(--danger); font-size: 11px; font-family: var(--font); }
|
|
152
|
+
.zero-dot { fill: var(--bg); stroke: var(--accent); stroke-width: 2.5; }
|
|
153
|
+
.cursor line { stroke: var(--fg); opacity: .35; }
|
|
154
|
+
.cursor circle { fill: var(--accent); }
|
|
155
|
+
.bar-in { fill: var(--accent); }
|
|
156
|
+
.bar-out { fill: var(--danger); }
|
|
157
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
158
|
+
.line-plan.draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.3s cubic-bezier(.6, 0, .2, 1) .1s forwards; }
|
|
159
|
+
@keyframes draw { to { stroke-dashoffset: 0; } }
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/* ---------- progress ---------- */
|
|
163
|
+
.progress-status { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
|
|
164
|
+
.progress-status.ahead, .progress-status.on-track { color: var(--good); }
|
|
165
|
+
.progress-status.behind { color: var(--danger); }
|
|
166
|
+
.progress-sub { color: var(--muted); font-size: .86rem; }
|
|
167
|
+
.nowrap { white-space: nowrap; }
|
|
168
|
+
.progress-chart { height: 180px; }
|
|
169
|
+
.progress-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
|
|
170
|
+
.line-baseline { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 4; }
|
|
171
|
+
.line-actual { fill: none; stroke: var(--fg); stroke-width: 2; }
|
|
172
|
+
.dot-actual { stroke: var(--bg); stroke-width: 2; }
|
|
173
|
+
.dot-actual.ahead { fill: var(--good); }
|
|
174
|
+
.dot-actual.behind { fill: var(--danger); }
|
|
175
|
+
.dot-actual.on-track { fill: var(--fg); }
|
|
176
|
+
.checkins .on-track { color: var(--muted); }
|
|
177
|
+
.key-baseline::before { border-top: 1.5px dashed var(--muted); }
|
|
178
|
+
.key-you::before { width: .7em; height: .7em; border: 0; border-radius: 50%; background: var(--fg); }
|
|
179
|
+
.checkins td { font-size: .86rem; }
|
|
180
|
+
.checkins .ahead { color: var(--good); }
|
|
181
|
+
.checkins .behind { color: var(--danger); }
|
|
182
|
+
.progress-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
|
|
183
|
+
.checkin-rows { display: grid; gap: .4rem; }
|
|
184
|
+
.checkin-rows label { display: grid; grid-template-columns: 1fr 9rem; gap: .75rem; align-items: center; }
|
|
185
|
+
|
|
186
|
+
/* ---------- tables (debts, transactions, import preview) ---------- */
|
|
187
|
+
.table-wrap { width: 100%; overflow-x: auto; }
|
|
188
|
+
table { border-collapse: collapse; width: 100%; }
|
|
189
|
+
th { text-align: left; font-weight: 400; color: var(--muted); font-size: .8rem; padding: .3rem .4rem; border-bottom: 1px solid var(--fg); white-space: nowrap; }
|
|
190
|
+
td { padding: .25rem .4rem; border-bottom: 1px solid var(--rule); vertical-align: middle; }
|
|
191
|
+
.debts input[type=text] { width: 100%; min-width: 9rem; font-weight: 600; }
|
|
192
|
+
.debts input[type=number] { width: 7rem; }
|
|
193
|
+
.debts input.rate { width: 5rem; }
|
|
194
|
+
.debts input[type=date] { width: 10rem; }
|
|
195
|
+
.debts td.center { text-align: center; }
|
|
196
|
+
.gone { white-space: nowrap; }
|
|
197
|
+
.gone.is-bad { color: var(--danger); }
|
|
198
|
+
.row-actions { display: flex; gap: .25rem; white-space: nowrap; }
|
|
199
|
+
.row-actions button { padding: .05rem .45rem; border-color: var(--rule); }
|
|
200
|
+
.empty { color: var(--muted); }
|
|
201
|
+
|
|
202
|
+
/* ---------- plan ---------- */
|
|
203
|
+
.strategy { border: 0; padding: 0; margin: 0; display: grid; gap: .3rem; }
|
|
204
|
+
.strategy legend { padding: 0; margin-bottom: .3rem; color: var(--muted); font-size: .86rem; }
|
|
205
|
+
.strategy label, .switch { display: flex; align-items: center; gap: .55rem; cursor: pointer; }
|
|
206
|
+
.strategy input:checked { outline: 0; }
|
|
207
|
+
.switch { align-items: flex-start; }
|
|
208
|
+
.switch input { margin-top: .25rem; }
|
|
209
|
+
.switch span { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .5rem; font-weight: 600; }
|
|
210
|
+
.switch small { flex-basis: 100%; font-weight: 400; }
|
|
211
|
+
.slider { display: grid; grid-template-columns: 1fr auto; gap: .15rem .5rem; align-items: baseline; }
|
|
212
|
+
.slider input { grid-column: 1 / -1; }
|
|
213
|
+
.slider output { font-weight: 600; }
|
|
214
|
+
.lump { display: grid; grid-template-columns: 1fr 6.5rem 9.5rem; gap: .5rem; align-items: center; }
|
|
215
|
+
.numbers summary { cursor: pointer; color: var(--muted); }
|
|
216
|
+
.numbers-grid { display: grid; gap: .4rem; margin-top: .6rem; }
|
|
217
|
+
.numbers-grid label { display: grid; grid-template-columns: 1fr 7rem; align-items: center; gap: .5rem; font-size: .86rem; }
|
|
218
|
+
.math { font-size: .86rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: .6rem; }
|
|
219
|
+
.math strong { color: var(--fg); }
|
|
220
|
+
|
|
221
|
+
/* ---------- notes ---------- */
|
|
222
|
+
.note-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
|
|
223
|
+
.note-list li { display: grid; grid-template-columns: 1.4rem 1fr; }
|
|
224
|
+
.note-list .warn::before { content: '!'; color: var(--danger); font-weight: 700; }
|
|
225
|
+
.note-list .good::before { content: '+'; color: var(--good); font-weight: 700; }
|
|
226
|
+
.note-list .info::before { content: '-'; color: var(--muted); }
|
|
227
|
+
.claude-notes:empty { display: none; }
|
|
228
|
+
.claude-notes { border-top: 1px solid var(--rule); padding-top: .9rem; display: grid; gap: .75rem; }
|
|
229
|
+
.claude-notes .first { font-weight: 600; font-size: 1.1rem; }
|
|
230
|
+
.claude-notes dl { margin: 0; display: grid; gap: .6rem; }
|
|
231
|
+
.claude-notes dt { font-weight: 600; }
|
|
232
|
+
.claude-notes dt span { color: var(--muted); font-weight: 400; }
|
|
233
|
+
.claude-notes dd { margin: 0; }
|
|
234
|
+
.thinking { color: var(--muted); }
|
|
235
|
+
.thinking::after { content: '▍'; animation: blink 1s steps(1) infinite; }
|
|
236
|
+
@keyframes blink { 50% { opacity: 0; } }
|
|
237
|
+
|
|
238
|
+
/* ---------- flow ---------- */
|
|
239
|
+
.flow-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; }
|
|
240
|
+
.flow-grid figure { margin: 0; min-width: 0; }
|
|
241
|
+
.flow-grid figcaption { color: var(--muted); font-size: .8rem; margin-bottom: .5rem; }
|
|
242
|
+
.flow-chart { height: 210px; }
|
|
243
|
+
.cats { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
|
|
244
|
+
.cats li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .75rem; }
|
|
245
|
+
.cats .cat-bar { grid-column: 1 / -1; height: 3px; background: var(--accent); border-radius: 0 2px 2px 0; }
|
|
246
|
+
.cats .count { color: var(--muted); font-size: .8rem; }
|
|
247
|
+
|
|
248
|
+
/* ---------- transactions ---------- */
|
|
249
|
+
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
|
|
250
|
+
.filters input { flex: 1 1 12rem; }
|
|
251
|
+
.txs td { font-size: .9rem; }
|
|
252
|
+
.txs .c-date { white-space: nowrap; color: var(--muted); }
|
|
253
|
+
.txs .c-desc { max-width: 24rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
254
|
+
.txs select { max-width: 12rem; font-size: .86rem; padding: .1rem .3rem; }
|
|
255
|
+
.txs .in { color: var(--good); }
|
|
256
|
+
.more { align-self: flex-start; }
|
|
257
|
+
|
|
258
|
+
/* ---------- dialogs ---------- */
|
|
259
|
+
dialog {
|
|
260
|
+
border: 1px solid var(--fg); border-radius: 6px; padding: 0; color: var(--fg); background: var(--bg);
|
|
261
|
+
width: min(48rem, calc(100vw - 1.5rem)); max-height: calc(100dvh - 2rem);
|
|
262
|
+
}
|
|
263
|
+
dialog::backdrop { background: color-mix(in srgb, var(--bg) 35%, #000 45%); }
|
|
264
|
+
.dialog-body { padding: 1.1rem 1.25rem; display: grid; gap: 1rem; }
|
|
265
|
+
.dialog-head { display: flex; justify-content: space-between; align-items: center; }
|
|
266
|
+
.dialog-actions { display: flex; justify-content: flex-end; gap: .5rem; }
|
|
267
|
+
.drop { display: grid; gap: .3rem; justify-items: center; text-align: center; border: 1px dashed var(--rule); border-radius: 6px; padding: 1.4rem 1rem; cursor: pointer; }
|
|
268
|
+
.drop:hover, .drop.over { border-color: var(--fg); background: var(--surface); }
|
|
269
|
+
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
|
|
270
|
+
.drop:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
271
|
+
.preview { display: grid; gap: .75rem; }
|
|
272
|
+
.preview-meta, .mapping { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; font-size: .86rem; }
|
|
273
|
+
.preview-meta label, .mapping label { display: flex; gap: .4rem; align-items: center; }
|
|
274
|
+
.preview .table-wrap { max-height: 15rem; overflow: auto; border-block: 1px solid var(--rule); }
|
|
275
|
+
.preview td { font-size: .86rem; }
|
|
276
|
+
.debt-offer { display: flex; gap: .5rem; align-items: flex-start; font-size: .86rem; }
|
|
277
|
+
.shortcuts { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: 0; }
|
|
278
|
+
.shortcuts dd { margin: 0; color: var(--muted); }
|
|
279
|
+
|
|
280
|
+
/* ---------- command palette ---------- */
|
|
281
|
+
.palette { width: min(36rem, calc(100vw - 1.5rem)); margin-top: 12vh; }
|
|
282
|
+
.palette input { width: 100%; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: transparent; padding: .8rem 1rem; font-size: 1.05rem; }
|
|
283
|
+
.palette input:focus-visible { outline: none; }
|
|
284
|
+
.palette ol { list-style: none; margin: 0; padding: .35rem; max-height: 50vh; overflow-y: auto; }
|
|
285
|
+
.palette li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem .65rem; border-radius: 4px; cursor: pointer; }
|
|
286
|
+
.palette li[aria-selected=true] { background: var(--fg); color: var(--bg); }
|
|
287
|
+
.palette li[aria-selected=true] kbd { color: inherit; border-color: currentColor; }
|
|
288
|
+
.palette .none { color: var(--muted); cursor: default; }
|
|
289
|
+
|
|
290
|
+
/* ---------- settings ---------- */
|
|
291
|
+
.settings { width: min(56rem, calc(100vw - 1.5rem)); }
|
|
292
|
+
.settings section { display: grid; gap: .65rem; padding-block: 1rem; border-top: 1px solid var(--rule); }
|
|
293
|
+
.settings section h3 { color: var(--muted); font-weight: 400; }
|
|
294
|
+
.field { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: .5rem 1rem; align-items: center; }
|
|
295
|
+
.field > span:first-child { color: var(--muted); font-size: .9rem; }
|
|
296
|
+
.field .row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
|
|
297
|
+
.field input[type=range] { width: min(16rem, 100%); }
|
|
298
|
+
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .4rem .75rem; }
|
|
299
|
+
.swatches label { display: flex; align-items: center; gap: .5rem; font-size: .86rem; }
|
|
300
|
+
.pane-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
|
|
301
|
+
.pane-list li { display: grid; grid-template-columns: 1fr auto auto auto; gap: .75rem; align-items: center; padding: .2rem 0; border-bottom: 1px solid var(--rule); }
|
|
302
|
+
.pane-list label { display: flex; gap: .4rem; align-items: center; font-size: .86rem; }
|
|
303
|
+
.keylist { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .4rem 1rem; }
|
|
304
|
+
.keylist label { display: grid; grid-template-columns: 1fr 6rem; align-items: center; gap: .5rem; font-size: .86rem; }
|
|
305
|
+
.json-editor { width: 100%; min-height: 16rem; resize: vertical; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .86rem; line-height: 1.5; tab-size: 2; white-space: pre; }
|
|
306
|
+
.key-state { font-size: .9rem; }
|
|
307
|
+
.key-state.ok { color: var(--good); }
|
|
308
|
+
|
|
309
|
+
/* ---------- toast ---------- */
|
|
310
|
+
.toast {
|
|
311
|
+
position: fixed; left: 50%; bottom: 3rem; transform: translate(-50%, 1rem); opacity: 0;
|
|
312
|
+
background: var(--fg); color: var(--bg); padding: .4rem .9rem; border-radius: 4px; font-size: .86rem;
|
|
313
|
+
transition: opacity .2s, transform .2s; pointer-events: none; max-width: calc(100vw - 2rem); z-index: 5;
|
|
314
|
+
}
|
|
315
|
+
.toast.show { opacity: 1; transform: translate(-50%, 0); }
|
|
316
|
+
|
|
317
|
+
/* ---------- small screens ---------- */
|
|
318
|
+
@media (max-width: 52rem) {
|
|
319
|
+
.panes { grid-template-columns: minmax(0, 1fr); }
|
|
320
|
+
.where, .top-actions kbd { display: none; }
|
|
321
|
+
.top-actions button[data-cmd=import] { display: none; }
|
|
322
|
+
.flow-grid { grid-template-columns: minmax(0, 1fr); }
|
|
323
|
+
.lump { grid-template-columns: 1fr 1fr; }
|
|
324
|
+
.lump > span { grid-column: 1 / -1; }
|
|
325
|
+
.field { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
|
|
326
|
+
.status .opt { display: none; }
|
|
327
|
+
|
|
328
|
+
/* tables become stacked cards: each cell shows its column name from data-label */
|
|
329
|
+
.debts thead, .txs thead { display: none; }
|
|
330
|
+
.debts tr { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .75rem; padding: .8rem 0; border-bottom: 1px solid var(--rule); }
|
|
331
|
+
.debts td { border: 0; padding: 0; display: flex; flex-direction: column; gap: .15rem; text-align: left; }
|
|
332
|
+
.debts td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: .8rem; }
|
|
333
|
+
.debts td:first-child, .debts td:last-child { grid-column: 1 / -1; }
|
|
334
|
+
.debts td.center { flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: .5rem; }
|
|
335
|
+
.debts input[type=number], .debts input.rate, .debts input[type=date] { width: 100%; text-align: left; }
|
|
336
|
+
.txs tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'date amt' 'desc desc' 'cat act'; gap: .2rem .5rem; padding: .55rem 0; border-bottom: 1px solid var(--rule); }
|
|
337
|
+
.txs td { border: 0; padding: 0; }
|
|
338
|
+
.txs .c-date { grid-area: date; } .txs .c-amt { grid-area: amt; } .txs .c-desc { grid-area: desc; max-width: none; white-space: normal; }
|
|
339
|
+
.txs .c-acct { display: none; } .txs .c-cat { grid-area: cat; } .txs .c-act { grid-area: act; }
|
|
340
|
+
.txs select { max-width: 100%; }
|
|
341
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2021 The Hanken Grotesk Project Authors (https://github.com/marcologous/hanken-grotesk) HankenGrotesk-Italic[wght].ttf: Copyright 2021 The Hanken Grotesk Project Authors (https://github.com/marcologous/hanken-grotesk)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono) JetBrainsMono-Italic[wght].ttf: Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Binary file
|
|
Binary file
|