selflore 0.0.2 → 0.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/README.md +80 -17
- package/dist/cli.js +87 -17
- package/dist/hooks/capture-worker.js +27 -0
- package/dist/hooks/io.js +6 -1
- package/dist/hooks/session-start.js +2 -8
- package/dist/hooks/stop.js +3 -21
- package/dist/hooks/user-prompt-submit.js +10 -0
- package/dist/init.js +84 -18
- package/dist/lib/background.js +173 -0
- package/dist/lib/capture-prompt.js +39 -0
- package/dist/lib/commands.js +321 -67
- package/dist/lib/config.js +84 -5
- package/dist/lib/entries.js +82 -3
- package/dist/lib/heat.js +141 -0
- package/dist/lib/hook-logic.js +107 -0
- package/dist/lib/index-cache.js +46 -0
- package/dist/lib/install.js +2 -3
- package/dist/lib/links.js +58 -0
- package/dist/lib/logo.js +6 -0
- package/dist/lib/notes-graph.js +585 -0
- package/dist/lib/notes-html.js +148 -330
- package/dist/lib/notes-page-css.js +279 -0
- package/dist/lib/notes-page-js.js +959 -0
- package/dist/lib/notes.js +19 -6
- package/dist/lib/nudge.js +8 -1
- package/dist/lib/paths.js +6 -0
- package/dist/lib/question.js +19 -0
- package/dist/lib/queue.js +6 -4
- package/dist/lib/recall.js +149 -0
- package/dist/lib/results.js +11 -1
- package/dist/lib/retag.js +150 -0
- package/dist/lib/server-launch.js +73 -0
- package/dist/lib/server.js +120 -0
- package/dist/lib/session.js +27 -1
- package/dist/lib/settings.js +5 -1
- package/dist/lib/signals.js +51 -0
- package/dist/lib/stats.js +72 -40
- package/dist/lib/struggle.js +120 -0
- package/dist/lib/surface.js +75 -0
- package/dist/lib/transcript.js +205 -37
- package/dist/lib/ui.js +127 -0
- package/dist/notes-server.js +39 -0
- package/dist/sl.js +33 -14
- package/dist/vendor/graph3d.js +5402 -0
- package/package.json +6 -3
- package/skill/SKILL.md +29 -14
- package/skill/references/capture.md +16 -12
- package/skill/references/log.md +2 -2
- package/skill/references/recall.md +44 -0
- package/skill/references/stats.md +5 -1
- package/skill/references/test.md +49 -31
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
// The notes page's stylesheet. One scale for everything:
|
|
2
|
+
// type 12 / 13 / 15 / 18 / 24, radius 6 / 10 / 14, spacing 4 / 8 / 12 / 16 / 24 / 32.
|
|
3
|
+
// Colour carries two meanings only: the indigo accent marks what is selected or primary, and the
|
|
4
|
+
// heat scale (slate → amber → red, set per element by the page script) marks where the user gets
|
|
5
|
+
// stuck. Kind, level, status and grades are plain text.
|
|
6
|
+
/** The dark token set. Also applied to the 3D stage, which stays dark in the light theme. */
|
|
7
|
+
export const DARK_TOKENS = `
|
|
8
|
+
--bg: #0f0f10; --surface: #17171a; --surface-2: #1f1f23; --stage: #0b0b0d;
|
|
9
|
+
--text: #f2f1ee; --muted: #a8a59f; --faint: #8a8781; --border: #2a2a2f; --border-strong: #3a3a41;
|
|
10
|
+
--accent: #a5b4fc; --accent-soft: #1e1f3a; --on-accent: #14152b; --code-bg: #121214; --danger: #ff8a6b;
|
|
11
|
+
--shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
|
|
12
|
+
color-scheme: dark;
|
|
13
|
+
`;
|
|
14
|
+
export const PAGE_CSS = String.raw `
|
|
15
|
+
:root {
|
|
16
|
+
--bg: #f7f6f3; --surface: #ffffff; --surface-2: #f1efea; --stage: #fbfaf8;
|
|
17
|
+
--text: #1c1a17; --muted: #5f5a53; --faint: #6e6961; --border: #e3e0d9; --border-strong: #cfcbc2;
|
|
18
|
+
--accent: #4f46e5; --accent-soft: #eef0ff; --on-accent: #ffffff; --code-bg: #f6f5f1; --danger: #b93a1f;
|
|
19
|
+
--shadow: 0 8px 24px rgba(28, 26, 23, 0.1);
|
|
20
|
+
color-scheme: light;
|
|
21
|
+
}
|
|
22
|
+
@media (prefers-color-scheme: dark) {
|
|
23
|
+
:root:not([data-theme="light"]) {${DARK_TOKENS}}
|
|
24
|
+
}
|
|
25
|
+
* { box-sizing: border-box; }
|
|
26
|
+
[hidden] { display: none !important; }
|
|
27
|
+
html, body { margin: 0; }
|
|
28
|
+
html { scrollbar-color: var(--border-strong) transparent; }
|
|
29
|
+
body {
|
|
30
|
+
background: var(--bg); color: var(--text); caret-color: var(--accent);
|
|
31
|
+
font: 15px/1.55 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
|
|
32
|
+
-webkit-font-smoothing: antialiased;
|
|
33
|
+
}
|
|
34
|
+
::selection { background: var(--accent-soft); color: var(--text); }
|
|
35
|
+
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
36
|
+
button, input, textarea { font: inherit; color: inherit; }
|
|
37
|
+
button { cursor: pointer; }
|
|
38
|
+
code, pre, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
|
|
39
|
+
.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
|
|
40
|
+
|
|
41
|
+
.wrap { max-width: 1240px; margin: 0 auto; padding: 16px 24px 32px; }
|
|
42
|
+
.col { max-width: 820px; margin: 0 auto; }
|
|
43
|
+
|
|
44
|
+
/* ---- header: brand, the three views, the test ---- */
|
|
45
|
+
.top { display: flex; align-items: center; gap: 16px; min-height: 40px; }
|
|
46
|
+
.brand { display: flex; align-items: center; gap: 8px; margin-right: 8px; }
|
|
47
|
+
/* The logo is an alpha mask painted in the text colour, so one image serves both themes. */
|
|
48
|
+
.mark { display: block; flex-shrink: 0; height: 28px; aspect-ratio: var(--logo-ratio); background: var(--text); -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
|
|
49
|
+
.brand h1 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
|
|
50
|
+
.top .spacer { flex: 1; }
|
|
51
|
+
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 2px; gap: 2px; }
|
|
52
|
+
.seg button { font-size: 13px; border: 0; background: transparent; color: var(--muted); min-height: 32px; padding: 0 12px; border-radius: 6px; }
|
|
53
|
+
.seg button:hover { color: var(--text); }
|
|
54
|
+
.seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
|
|
55
|
+
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 600; min-height: 36px; padding: 0 16px; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 10px; }
|
|
56
|
+
.btn:hover:not(:disabled) { border-color: var(--border-strong); }
|
|
57
|
+
.btn:disabled { opacity: 0.5; cursor: default; }
|
|
58
|
+
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
|
|
59
|
+
.btn.primary:hover:not(:disabled) { filter: brightness(1.06); border-color: var(--accent); }
|
|
60
|
+
.btn.quiet { border-color: transparent; background: transparent; color: var(--muted); font-weight: 500; padding: 0 8px; }
|
|
61
|
+
.btn.quiet:hover:not(:disabled) { color: var(--text); border-color: transparent; }
|
|
62
|
+
.btn.icon { width: 32px; min-height: 32px; padding: 0; }
|
|
63
|
+
.btn[aria-expanded="true"] { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent); }
|
|
64
|
+
.btn kbd { margin-left: 4px; }
|
|
65
|
+
|
|
66
|
+
/* ---- one line of facts, the active filters, and the time range ---- */
|
|
67
|
+
.statline { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; min-height: 36px; margin: 12px 0 16px; color: var(--muted); font-size: 13px; }
|
|
68
|
+
.statline b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
|
|
69
|
+
.active { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
|
|
70
|
+
.range { margin-left: auto; display: flex; gap: 4px; align-items: center; }
|
|
71
|
+
.range .wk { min-width: 108px; text-align: center; color: var(--text); font-weight: 500; }
|
|
72
|
+
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; min-height: 32px; padding: 0 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 6px; }
|
|
73
|
+
.chip:hover { border-color: var(--border-strong); }
|
|
74
|
+
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent); font-weight: 600; }
|
|
75
|
+
.chip .n { color: var(--faint); font-variant-numeric: tabular-nums; }
|
|
76
|
+
.chip[aria-pressed="true"] .n { color: inherit; }
|
|
77
|
+
|
|
78
|
+
/* ---- heat marks: a dot, coloured by the page script from the heat scale ---- */
|
|
79
|
+
.hdot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; background: var(--hl, var(--faint)); }
|
|
80
|
+
.hdot.none { background: transparent; border: 1.5px solid var(--faint); }
|
|
81
|
+
.heatbar { display: inline-block; width: 96px; height: 6px; border-radius: 6px; background: var(--gl); }
|
|
82
|
+
@media (prefers-color-scheme: dark) {
|
|
83
|
+
:root:not([data-theme="light"]) .hdot:not(.none) { background: var(--hd, var(--faint)); }
|
|
84
|
+
:root:not([data-theme="light"]) .heatbar { background: var(--gd); }
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/* ---- Map: the graph and, beside it, where the user gets stuck ---- */
|
|
88
|
+
.map { display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: 24px; align-items: start; }
|
|
89
|
+
.rail { max-height: clamp(420px, calc(100vh - 148px), 760px); overflow: auto; }
|
|
90
|
+
.rail h2, .sec > h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; margin: 0 0 4px; }
|
|
91
|
+
.rail .sub, .sec > .sub { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
|
|
92
|
+
.area { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 4px 12px; align-items: baseline; width: 100%; text-align: left; background: transparent; border: 0; border-top: 1px solid var(--border); padding: 12px 4px; border-radius: 0; }
|
|
93
|
+
.area:hover .aname { text-decoration: underline; text-underline-offset: 3px; }
|
|
94
|
+
.area .hdot { align-self: center; }
|
|
95
|
+
.area .aname { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
|
|
96
|
+
.area .aname span { color: var(--muted); font-weight: 400; }
|
|
97
|
+
.area .awhy { grid-column: 2; color: var(--muted); font-size: 13px; line-height: 1.45; }
|
|
98
|
+
.more { display: inline-flex; align-items: center; min-height: 32px; margin-top: 4px; font-size: 13px; color: var(--accent); background: transparent; border: 0; padding: 0 4px; }
|
|
99
|
+
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
|
|
100
|
+
.quietnote { color: var(--muted); font-size: 13px; margin: 8px 0 0; max-width: 65ch; }
|
|
101
|
+
|
|
102
|
+
/* ---- Notes: search, filters, compact rows ---- */
|
|
103
|
+
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
|
|
104
|
+
.search { flex: 1; min-width: 200px; min-height: 36px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0 12px; outline: none; }
|
|
105
|
+
.search::placeholder, textarea.reply::placeholder { color: var(--faint); }
|
|
106
|
+
.search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
|
|
107
|
+
.fpanel { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px 12px; align-items: start; margin-top: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
|
|
108
|
+
.fpanel .k { color: var(--muted); font-size: 13px; line-height: 32px; }
|
|
109
|
+
.fpanel .vals { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
|
|
110
|
+
.fpanel .search { flex: 0 1 200px; min-height: 32px; }
|
|
111
|
+
.selrow { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 12px; color: var(--muted); font-size: 13px; }
|
|
112
|
+
/* Notes are grouped (by week, or by how stuck). A group folds; only the first ones start open. */
|
|
113
|
+
#list { margin-top: 16px; }
|
|
114
|
+
.group + .group { border-top: 1px solid var(--border); }
|
|
115
|
+
.group[open] { padding-bottom: 16px; }
|
|
116
|
+
.group > summary { display: flex; align-items: center; gap: 10px; min-height: 40px; color: var(--muted); cursor: pointer; list-style: none; user-select: none; position: sticky; top: 0; z-index: 1; background: var(--bg); }
|
|
117
|
+
.group > summary::-webkit-details-marker { display: none; }
|
|
118
|
+
.group > summary:hover { color: var(--text); }
|
|
119
|
+
.group > summary .chev { display: inline-flex; color: var(--faint); transform: rotate(-90deg); transition: transform 0.15s ease-out; }
|
|
120
|
+
.group[open] > summary .chev { transform: none; }
|
|
121
|
+
.group > summary h2 { font-size: 13px; font-weight: 600; color: inherit; margin: 0; }
|
|
122
|
+
.group > summary .c { color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; }
|
|
123
|
+
.group > .rest { border-top: 1px solid var(--border); padding: 4px 0 0 22px; }
|
|
124
|
+
.group > .rest .more { margin-top: 0; }
|
|
125
|
+
/* A closed note is one line: the question, cut short, with its project and date. Open, it shows everything. */
|
|
126
|
+
.note { border-top: 1px solid var(--border); }
|
|
127
|
+
.note.suppressed > summary { opacity: 0.6; }
|
|
128
|
+
.note > summary { display: grid; grid-template-columns: 10px minmax(0, 1fr) 176px 16px; gap: 4px 12px; align-items: center; min-height: 44px; padding: 8px 4px; cursor: pointer; list-style: none; }
|
|
129
|
+
.note > summary::-webkit-details-marker { display: none; }
|
|
130
|
+
.note > summary .chev { color: var(--faint); display: inline-flex; transition: transform 0.15s ease-out; }
|
|
131
|
+
.note[open] > summary .chev { transform: rotate(180deg); }
|
|
132
|
+
.note .q { font-size: 15px; font-weight: 500; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
133
|
+
.note > summary:hover .q { text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
|
|
134
|
+
.note .side { display: flex; justify-content: flex-end; min-width: 0; color: var(--muted); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
|
|
135
|
+
.note .side .p { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
|
|
136
|
+
.note .side .d::before { content: "·"; margin: 0 6px; }
|
|
137
|
+
.note .meta { display: none; grid-column: 2 / -1; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
|
|
138
|
+
.note[open] > summary { padding: 12px 4px; }
|
|
139
|
+
.note[open] > summary .hdot { align-self: start; margin-top: 6px; }
|
|
140
|
+
.note[open] > summary .q { grid-column: 2 / 4; font-weight: 600; overflow: visible; white-space: normal; text-wrap: pretty; }
|
|
141
|
+
.note[open] > summary .side { display: none; }
|
|
142
|
+
.note[open] > summary .meta { display: block; }
|
|
143
|
+
.q code, .body p code, .qcard p code, .area code, .asked code, .related code, .summary li code { font-size: 13px; background: var(--surface-2); padding: 1px 4px; border-radius: 6px; }
|
|
144
|
+
.related code, .summary li code { font-size: 12px; }
|
|
145
|
+
.qcard .q code { font-size: 15px; }
|
|
146
|
+
.note .body { padding: 0 4px 16px 26px; }
|
|
147
|
+
.note .body p { margin: 0 0 12px; max-width: 70ch; }
|
|
148
|
+
.files { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; color: var(--muted); font-size: 13px; margin-top: 12px; }
|
|
149
|
+
.files code { font-size: 12px; background: var(--surface-2); padding: 1px 4px; border-radius: 6px; color: var(--text); }
|
|
150
|
+
.why { margin: 12px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
|
|
151
|
+
.why li { display: flex; gap: 8px; align-items: baseline; padding: 2px 0; }
|
|
152
|
+
.why li .hdot { width: 6px; height: 6px; align-self: center; }
|
|
153
|
+
.code { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--code-bg); max-width: 100%; }
|
|
154
|
+
.codebar { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 4px 12px; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--muted); }
|
|
155
|
+
.copy { font-size: 12px; min-height: 32px; padding: 0 12px; border: 1px solid transparent; background: transparent; color: var(--muted); border-radius: 6px; }
|
|
156
|
+
.copy:hover { color: var(--text); border-color: var(--border); }
|
|
157
|
+
pre { margin: 0; padding: 12px 0; overflow-x: auto; font-size: 12px; line-height: 1.6; counter-reset: ln; }
|
|
158
|
+
pre .ln { display: block; padding: 0 16px 0 0; white-space: pre; }
|
|
159
|
+
pre .ln::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 3em; padding-right: 1em; text-align: right; color: var(--faint); user-select: none; }
|
|
160
|
+
.empty { text-align: center; color: var(--muted); padding: 32px 16px; margin-top: 24px; }
|
|
161
|
+
.empty strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
|
|
162
|
+
.empty .chip { margin-top: 12px; }
|
|
163
|
+
|
|
164
|
+
/* ---- Stats: two columns of short sections. Marks are neutral; only heat has colour. ---- */
|
|
165
|
+
.stats { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px 48px; align-items: start; margin-top: 8px; }
|
|
166
|
+
.stats .wide { grid-column: 1 / -1; }
|
|
167
|
+
.sec { min-width: 0; }
|
|
168
|
+
.sec > .btn { margin-top: 12px; }
|
|
169
|
+
.sec h3.label { margin: 16px 0 4px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
|
|
170
|
+
.figs { color: var(--muted); font-size: 15px; margin: 0 0 4px; max-width: 70ch; }
|
|
171
|
+
.figs b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
|
|
172
|
+
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin-top: 8px; }
|
|
173
|
+
/* A column per week, growing from one baseline. The value sits on the cap, the week under the line. */
|
|
174
|
+
.cols { display: flex; align-items: flex-end; gap: 2px; min-height: 128px; border-bottom: 1px solid var(--border-strong); margin-bottom: 28px; }
|
|
175
|
+
.cols .c { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; position: relative; align-self: stretch; background: transparent; border: 0; border-radius: 6px 6px 0 0; padding: 0; color: var(--muted); font-size: 12px; cursor: default; }
|
|
176
|
+
.cols button.c { cursor: pointer; }
|
|
177
|
+
.cols .v { line-height: 16px; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
|
|
178
|
+
.cols .b { display: block; width: min(24px, 100%); border-radius: 4px 4px 0 0; background: var(--faint); }
|
|
179
|
+
.cols .c:hover .b:not(.stack), .cols .c:focus-visible .b:not(.stack) { background: var(--text); }
|
|
180
|
+
.cols .c:hover .v, .cols .c[aria-current="true"] .v { color: var(--text); }
|
|
181
|
+
.cols .c[aria-current="true"] .b { background: var(--accent); }
|
|
182
|
+
.cols .x { position: absolute; top: 100%; margin-top: 6px; white-space: nowrap; line-height: 16px; }
|
|
183
|
+
.cols .b.stack { display: flex; flex-direction: column; gap: 2px; background: transparent; }
|
|
184
|
+
.cols .b.stack i { display: block; flex: 1 1 0; min-height: 2px; background: var(--faint); }
|
|
185
|
+
.cols .b.stack i:first-child { border-radius: 4px 4px 0 0; }
|
|
186
|
+
.cols .b.stack i.rest, .key .sw.rest { background: transparent; box-shadow: inset 0 0 0 1.5px var(--faint); }
|
|
187
|
+
.key { display: inline-flex; align-items: center; gap: 4px; font-weight: 400; }
|
|
188
|
+
.key .sw { width: 10px; height: 10px; border-radius: 2px; background: var(--faint); margin-left: 8px; }
|
|
189
|
+
/* A count per row: the bar starts at the name column and the number sits at its tip. */
|
|
190
|
+
.rank { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 12px; align-items: center; width: 100%; min-height: 32px; background: transparent; border: 0; padding: 0; text-align: left; font-size: 13px; }
|
|
191
|
+
.rank .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
192
|
+
.rank .m { display: flex; align-items: center; gap: 8px; min-width: 0; }
|
|
193
|
+
.rank .m i { flex: 0 0 auto; min-width: 2px; height: 8px; border-radius: 0 4px 4px 0; background: var(--faint); }
|
|
194
|
+
.rank .m b { font-weight: 600; font-variant-numeric: tabular-nums; }
|
|
195
|
+
.rank:hover .name { text-decoration: underline; text-underline-offset: 3px; }
|
|
196
|
+
.rank:hover .m i { background: var(--text); }
|
|
197
|
+
/* One whole, split by heat: the figures are in the list under it. */
|
|
198
|
+
.split { display: flex; gap: 2px; height: 8px; margin: 12px 0; }
|
|
199
|
+
.split i { display: block; flex: 1 1 0; min-width: 6px; background: var(--hl, var(--faint)); }
|
|
200
|
+
.split i.none { background: transparent; box-shadow: inset 0 0 0 1.5px var(--faint); }
|
|
201
|
+
.split i:first-child { border-top-left-radius: 4px; border-bottom-left-radius: 4px; }
|
|
202
|
+
.split i:last-child { border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
|
|
203
|
+
@media (prefers-color-scheme: dark) {
|
|
204
|
+
:root:not([data-theme="light"]) .split i:not(.none) { background: var(--hd, var(--faint)); }
|
|
205
|
+
}
|
|
206
|
+
.bands { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 4ch; gap: 4px 12px; align-items: center; font-size: 13px; margin: 0 0 4px; }
|
|
207
|
+
.bands b { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
|
|
208
|
+
.bands .p { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
|
|
209
|
+
.bands .zero { color: var(--faint); font-weight: 400; }
|
|
210
|
+
.sec .area { padding: 8px 4px; }
|
|
211
|
+
.sec .area .aname { font-size: 13px; }
|
|
212
|
+
.asked { display: flex; gap: 12px; width: 100%; min-height: 36px; align-items: center; text-align: left; font-size: 13px; background: transparent; border: 0; border-top: 1px solid var(--border); padding: 0 4px; }
|
|
213
|
+
.asked .n { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 2.2em; }
|
|
214
|
+
.asked .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
215
|
+
.asked:hover .t { text-decoration: underline; text-underline-offset: 3px; }
|
|
216
|
+
.bar { display: grid; grid-template-columns: minmax(0, 34%) 1fr auto; gap: 12px; align-items: center; font-size: 13px; min-height: 28px; }
|
|
217
|
+
.bar .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
218
|
+
.bar .track { height: 6px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
|
|
219
|
+
.bar .fill { display: block; height: 100%; background: var(--faint); border-radius: 6px; }
|
|
220
|
+
.bar .val { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
221
|
+
.bar .val b { color: var(--text); font-weight: 600; }
|
|
222
|
+
.tip { position: absolute; z-index: 20; pointer-events: none; transform: translate(-50%, -100%); background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong); border-radius: 6px; padding: 4px 8px; font-size: 12px; white-space: nowrap; box-shadow: var(--shadow); }
|
|
223
|
+
|
|
224
|
+
/* ---- the test: one question at a time ---- */
|
|
225
|
+
.testhead { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin: 16px 0 12px; color: var(--muted); font-size: 13px; }
|
|
226
|
+
.testhead .spacer { flex: 1; }
|
|
227
|
+
.progress { height: 6px; background: var(--surface-2); border-radius: 6px; overflow: hidden; margin-bottom: 16px; }
|
|
228
|
+
.progress span { display: block; height: 100%; background: var(--accent); border-radius: 6px; transition: width 0.2s ease-out; }
|
|
229
|
+
.qcard { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
|
|
230
|
+
.qcard .q { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.4; margin: 4px 0 8px; text-wrap: balance; }
|
|
231
|
+
.qcard .meta { color: var(--muted); font-size: 13px; }
|
|
232
|
+
.qcard p { margin: 0 0 12px; max-width: 70ch; }
|
|
233
|
+
.reveal { margin-top: 16px; }
|
|
234
|
+
.reveal > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 6px; cursor: pointer; list-style: none; user-select: none; }
|
|
235
|
+
.reveal > summary::-webkit-details-marker { display: none; }
|
|
236
|
+
.reveal > .code { margin-top: 12px; }
|
|
237
|
+
.reveal[open] > summary .show, .reveal:not([open]) > summary .hide { display: none; }
|
|
238
|
+
textarea.reply { display: block; width: 100%; min-height: 128px; resize: vertical; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-top: 16px; outline: none; }
|
|
239
|
+
textarea.reply:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
|
|
240
|
+
.answer { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
|
|
241
|
+
.yours { white-space: pre-wrap; background: var(--surface-2); border-radius: 10px; padding: 12px; margin: 0 0 16px; }
|
|
242
|
+
.label { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 4px; }
|
|
243
|
+
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
|
|
244
|
+
.err { color: var(--danger); font-size: 13px; margin-top: 8px; }
|
|
245
|
+
.err:empty { display: none; }
|
|
246
|
+
.summary ul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
|
|
247
|
+
kbd { font-size: 12px; border: 1px solid var(--border); border-radius: 6px; padding: 0 4px; color: var(--muted); background: var(--surface); }
|
|
248
|
+
|
|
249
|
+
footer { margin-top: 32px; color: var(--faint); font-size: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
|
|
250
|
+
|
|
251
|
+
/* Fingers need more room than a pointer. */
|
|
252
|
+
@media (pointer: coarse) {
|
|
253
|
+
.seg button, .chip, .btn, .copy, .more { min-height: 44px; }
|
|
254
|
+
.btn.icon { width: 44px; }
|
|
255
|
+
}
|
|
256
|
+
@media (max-width: 960px) {
|
|
257
|
+
.map { grid-template-columns: 1fr; gap: 16px; }
|
|
258
|
+
.rail { max-height: none; }
|
|
259
|
+
.stats { grid-template-columns: 1fr; }
|
|
260
|
+
}
|
|
261
|
+
@media (max-width: 640px) {
|
|
262
|
+
.wrap { padding: 12px 16px 32px; }
|
|
263
|
+
.top { flex-wrap: wrap; gap: 8px 12px; }
|
|
264
|
+
.top .seg { order: 3; width: 100%; }
|
|
265
|
+
.top .seg button { flex: 1; }
|
|
266
|
+
.range { margin-left: 0; }
|
|
267
|
+
.pair { grid-template-columns: 1fr; gap: 16px; }
|
|
268
|
+
.fpanel { grid-template-columns: 1fr; gap: 4px; }
|
|
269
|
+
.fpanel .k { line-height: 1.55; margin-top: 8px; }
|
|
270
|
+
.qcard { padding: 16px; }
|
|
271
|
+
.note .body { padding-left: 4px; }
|
|
272
|
+
/* Too narrow for one line to say anything: two lines, and the date alone beside them. */
|
|
273
|
+
.note:not([open]) > summary { align-items: start; }
|
|
274
|
+
.note:not([open]) > summary .q { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; }
|
|
275
|
+
.note:not([open]) > summary .hdot { margin-top: 6px; }
|
|
276
|
+
.note > summary { grid-template-columns: 10px minmax(0, 1fr) auto 16px; }
|
|
277
|
+
.note .side .p, .note .side .d::before { display: none; }
|
|
278
|
+
}
|
|
279
|
+
`;
|