dsh-feiyu-memgate 0.3.2 → 0.4.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/CHANGELOG.md +73 -12
- package/README.md +68 -11
- package/README.zh.md +93 -36
- package/client/README.md +267 -0
- package/client/art/mascot-asleep.webp +0 -0
- package/client/art/mascot-busy.webp +0 -0
- package/client/art/mascot-nag.webp +0 -0
- package/client/art/mascot-ready.webp +0 -0
- package/client/art/mascot-trouble.webp +0 -0
- package/client/client.js +4226 -1269
- package/client/src/clipboard.cjs +52 -0
- package/client/src/constants.cjs +43 -0
- package/client/src/fields.cjs +960 -0
- package/client/src/hooks.cjs +220 -0
- package/client/src/i18n.cjs +444 -0
- package/client/src/index.cjs +69 -0
- package/client/src/kit/controls.cjs +189 -0
- package/client/src/kit/icons.cjs +40 -0
- package/client/src/kit/layout.cjs +124 -0
- package/client/src/layout.cjs +143 -0
- package/client/src/model/changelog.cjs +29 -0
- package/client/src/model/feedback.cjs +168 -0
- package/client/src/model/form.cjs +83 -0
- package/client/src/model/models.cjs +87 -0
- package/client/src/model/overview.cjs +111 -0
- package/client/src/model/page.cjs +104 -0
- package/client/src/model/status.cjs +57 -0
- package/client/src/model/trial.cjs +111 -0
- package/client/src/net.cjs +101 -0
- package/client/src/react.cjs +11 -0
- package/client/src/theme/page.css +1284 -0
- package/client/src/theme/styles.cjs +43 -0
- package/client/src/view/feedback.cjs +180 -0
- package/client/src/view/field-row.cjs +98 -0
- package/client/src/view/hero.cjs +54 -0
- package/client/src/view/markdown.cjs +96 -0
- package/client/src/view/models.cjs +154 -0
- package/client/src/view/page.cjs +199 -0
- package/client/src/view/settings-tab.cjs +78 -0
- package/client/src/view/tabs.cjs +71 -0
- package/client/src/view/trial.cjs +84 -0
- package/docs/DETAIL.en.md +55 -6
- package/docs/DETAIL.md +63 -14
- package/locale/zh.json +1 -1
- package/package.json +2 -1
- package/python/GATEWAY_VERSION.json +37 -31
- package/python/feiyu_memgate/backends/_sqlfile.py +293 -0
- package/python/feiyu_memgate/backends/base.py +121 -6
- package/python/feiyu_memgate/backends/embedding.py +265 -178
- package/python/feiyu_memgate/backends/hybrid.py +330 -83
- package/python/feiyu_memgate/backends/inmemory.py +115 -24
- package/python/feiyu_memgate/backends/openviking.py +7 -10
- package/python/feiyu_memgate/backends/sqlite.py +129 -145
- package/python/feiyu_memgate/builtins.py +1 -0
- package/python/feiyu_memgate/cli.py +124 -20
- package/python/feiyu_memgate/client/block.py +4 -2
- package/python/feiyu_memgate/client/http.py +106 -19
- package/python/feiyu_memgate/client/local.py +4 -3
- package/python/feiyu_memgate/config.py +118 -24
- package/python/feiyu_memgate/core/limits.py +2 -1
- package/python/feiyu_memgate/core/pool.py +29 -2
- package/python/feiyu_memgate/core/recall.py +179 -10
- package/python/feiyu_memgate/core/redact.py +4 -2
- package/python/feiyu_memgate/core/stages.py +52 -9
- package/python/feiyu_memgate/core/tidy.py +2 -1
- package/python/feiyu_memgate/core/watch.py +3 -2
- package/python/feiyu_memgate/core/write.py +9 -3
- package/python/feiyu_memgate/forgetting/archive.py +38 -10
- package/python/feiyu_memgate/forgetting/engine.py +46 -10
- package/python/feiyu_memgate/forgetting/stage.py +4 -2
- package/python/feiyu_memgate/gateway/app.py +168 -272
- package/python/feiyu_memgate/gateway/fields.py +121 -0
- package/python/feiyu_memgate/gateway/policies.py +162 -0
- package/python/feiyu_memgate/gateway/server.py +12 -4
- package/python/feiyu_memgate/gateway/tokens.py +137 -0
- package/python/feiyu_memgate/gateway/validate.py +120 -0
- package/python/feiyu_memgate/identity.py +152 -0
- package/python/feiyu_memgate/model.py +170 -2
- package/python/feiyu_memgate/registry.py +6 -3
- package/python/feiyu_memgate/tools/crypto.py +5 -4
- package/python/feiyu_memgate/tools/evaluate.py +2 -1
- package/python/feiyu_memgate/tools/tenants.py +2 -0
- package/src/block.js +9 -3
- package/src/capture.js +98 -0
- package/src/catalogue.js +4 -4
- package/src/changelog.js +72 -0
- package/src/client.js +145 -10
- package/src/commands.js +112 -62
- package/src/config.js +139 -62
- package/src/followup.js +139 -0
- package/src/gateway.js +79 -4
- package/src/migrate.py +54 -9
- package/src/mirror.py +44 -7
- package/src/plugin.js +416 -412
- package/src/pool.js +298 -0
- package/src/recent.js +68 -0
- package/src/relevance.js +80 -0
- package/src/routes.js +320 -0
- package/src/setup.js +36 -36
- package/src/shared.js +77 -0
- package/src/tiers.js +4 -4
- package/src/time.js +27 -0
- package/src/tools.js +164 -0
|
@@ -0,0 +1,1284 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* The stylesheet of the settings page. Assembled into client/client.js as a string module and applied
|
|
3
|
+
* once by theme/styles.cjs.
|
|
4
|
+
*
|
|
5
|
+
* How it is organised:
|
|
6
|
+
* 1. Tokens. `.fmg-root` maps the host's style variables to the page's own (`--fmg-*`) and defines
|
|
7
|
+
* the few colours the page brings itself. Every rule below uses `--fmg-*` only, so this block is
|
|
8
|
+
* the single place that knows the host's names, and each mapping has a fallback for a host that
|
|
9
|
+
* does not define it.
|
|
10
|
+
* 2. Parts, in the order they appear on the page: hero, tabs, sections and rows, controls, panels,
|
|
11
|
+
* save bar, changelog, footer.
|
|
12
|
+
*
|
|
13
|
+
* Conventions:
|
|
14
|
+
* - Every class starts with `fmg-`; modifiers are `--name`; state is carried by ARIA or data
|
|
15
|
+
* attributes the components set anyway (`aria-selected`, `aria-checked`, `data-open`), not by
|
|
16
|
+
* extra classes.
|
|
17
|
+
* - No rule reaches outside `.fmg-root`, so nothing leaks into the host's page.
|
|
18
|
+
* - Dark and light: there is no theme branch. The host's variables switch by themselves and the
|
|
19
|
+
* page's own colours are mixed from them (`color-mix`), so a third-party theme carries through.
|
|
20
|
+
* - Lines are hairlines (`--fmg-hair`, the host's device-pixel-aware width), like the host's own.
|
|
21
|
+
* - The host draws every corner as a superellipse; shapes that must be true circles or pills say
|
|
22
|
+
* `corner-shape: round`.
|
|
23
|
+
* - Hover rules sit under `@media (hover: hover)`, so a touch screen shows no stuck hover.
|
|
24
|
+
* - Spacing steps are 4, 8, 12, 16, 24, 32; text sizes are 12, 13, 14 and 18, on the host's line
|
|
25
|
+
* heights (18, 20, 20, 26).
|
|
26
|
+
* - Width: the root is a size container; the narrow rules are container queries, because the page
|
|
27
|
+
* sits in a column of the host whose width has little to do with the window's.
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
/* ------------------------------------------------------------------ 1. tokens */
|
|
31
|
+
|
|
32
|
+
.fmg-root {
|
|
33
|
+
/* host → page. The host switches these between light and dark by itself (and a third-party theme
|
|
34
|
+
may override them), so nothing below has a theme branch. */
|
|
35
|
+
--fmg-ink: var(--dsw-alias-label-primary, #0f1115);
|
|
36
|
+
--fmg-ink-2: var(--dsw-alias-label-secondary, #61666b);
|
|
37
|
+
--fmg-ink-3: var(--dsw-alias-label-tertiary, #81858c);
|
|
38
|
+
--fmg-base: var(--dsw-alias-bg-base, #ffffff);
|
|
39
|
+
--fmg-surface: var(--dsw-alias-settings-card-fill, #ffffff);
|
|
40
|
+
--fmg-raised: var(--dsw-alias-bg-layer-3, #ffffff);
|
|
41
|
+
--fmg-sunk: var(--dsw-alias-bg-module-platform, #f5f6f7);
|
|
42
|
+
--fmg-hover: var(--dsw-alias-interactive-bg-hover, rgba(38, 49, 72, 0.06));
|
|
43
|
+
--fmg-line: var(--dsw-alias-border-l2, rgba(0, 0, 0, 0.1));
|
|
44
|
+
--fmg-line-strong: var(--dsw-alias-border-l4, rgba(0, 0, 0, 0.16));
|
|
45
|
+
--fmg-hair: var(--dsh-hairline-width, 1px);
|
|
46
|
+
--fmg-danger: var(--dsw-alias-state-error-primary, #ec1313);
|
|
47
|
+
--fmg-thumb: var(--dsw-alias-switch-thumb, #ffffff);
|
|
48
|
+
--fmg-radius-s: var(--dsw-radius-sm, 8px); /* small buttons */
|
|
49
|
+
--fmg-radius-m: var(--dsw-radius-md, 12px); /* inputs, choices, notices */
|
|
50
|
+
--fmg-radius-l: var(--dsw-radius-lg, 16px); /* groups of rows */
|
|
51
|
+
--fmg-radius-xl: var(--dsw-radius-xl, 20px); /* the hero */
|
|
52
|
+
--fmg-mono: var(--dsh-font-family-code-default, 'SF Mono', 'JetBrains Mono', Consolas, Menlo, monospace);
|
|
53
|
+
--fmg-ease: var(--ds-ease-in-out, cubic-bezier(0.4, 0, 0.2, 1));
|
|
54
|
+
|
|
55
|
+
/* The page's own colour is the sea the mascot lives in. It is the host's blue accent, so it already
|
|
56
|
+
has a light and a dark value; everything else is mixed from it and from the host's neutrals. */
|
|
57
|
+
--fmg-sea: var(--dsw-alias-state-business-primary, #4176e6); /* switches that are on, the primary button, the selected tab */
|
|
58
|
+
--fmg-sea-ink: var(--dsw-alias-link, #4176e6); /* the same blue as text */
|
|
59
|
+
--fmg-on-sea: var(--dsw-alias-label-primary-foreground, #ffffff);
|
|
60
|
+
--fmg-sea-wash: color-mix(in srgb, var(--fmg-sea) 10%, transparent);
|
|
61
|
+
--fmg-sea-edge: color-mix(in srgb, var(--fmg-sea) 38%, transparent);
|
|
62
|
+
/* Her cheeks: the one warm colour, kept for "experimental". Mixed with the text colour so that it
|
|
63
|
+
is dark on a light page and light on a dark one. */
|
|
64
|
+
--fmg-blush: color-mix(in srgb, #e0528d 72%, var(--fmg-ink));
|
|
65
|
+
--fmg-blush-wash: color-mix(in srgb, #e0528d 12%, transparent);
|
|
66
|
+
/* Status colours as text: the host's are picked for dots and fills, too light to read on white. */
|
|
67
|
+
--fmg-ok-fill: var(--dsw-alias-state-success-primary, #22c55e);
|
|
68
|
+
--fmg-ok: color-mix(in srgb, var(--fmg-ok-fill) 68%, var(--fmg-ink));
|
|
69
|
+
--fmg-wait-fill: var(--dsw-alias-state-warn-primary, #f59e0b);
|
|
70
|
+
--fmg-wait: color-mix(in srgb, var(--dsw-alias-state-warn-label, #dd8629) 78%, var(--fmg-ink));
|
|
71
|
+
--fmg-warn-wash: color-mix(in srgb, var(--fmg-wait-fill) 14%, transparent);
|
|
72
|
+
--fmg-hero-a: color-mix(in srgb, var(--fmg-sea) 20%, var(--fmg-base));
|
|
73
|
+
--fmg-hero-b: color-mix(in srgb, var(--fmg-sea) 5%, var(--fmg-base));
|
|
74
|
+
--fmg-hero-edge: color-mix(in srgb, var(--fmg-sea) 24%, transparent);
|
|
75
|
+
--fmg-hero-chip: color-mix(in srgb, var(--fmg-base) 62%, transparent);
|
|
76
|
+
--fmg-bubble: color-mix(in srgb, var(--fmg-sea) 26%, transparent);
|
|
77
|
+
--fmg-shadow: var(--dsw-shadow-lv2, 0 6px 24px rgba(15, 17, 21, 0.14), 0 1px 3px rgba(15, 17, 21, 0.1));
|
|
78
|
+
|
|
79
|
+
container-type: inline-size;
|
|
80
|
+
display: flex;
|
|
81
|
+
flex-direction: column;
|
|
82
|
+
gap: 20px;
|
|
83
|
+
min-width: 0;
|
|
84
|
+
color: var(--fmg-ink);
|
|
85
|
+
font-size: 13px;
|
|
86
|
+
line-height: 20px;
|
|
87
|
+
text-align: left;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* The resets are written with :where(), which adds no weight: any rule of a part further down wins
|
|
91
|
+
over them without having to out-rank them. */
|
|
92
|
+
:where(.fmg-root) *,
|
|
93
|
+
:where(.fmg-root) *::before,
|
|
94
|
+
:where(.fmg-root) *::after {
|
|
95
|
+
box-sizing: border-box;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
:where(.fmg-root) :is(p, h4, h5, dl, dd, ul) {
|
|
99
|
+
margin: 0;
|
|
100
|
+
padding: 0;
|
|
101
|
+
font: inherit;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
:where(.fmg-root) ul {
|
|
105
|
+
list-style: none;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/* One focus ring for everything that takes the keyboard. */
|
|
109
|
+
.fmg-root :focus-visible {
|
|
110
|
+
outline: 2px solid var(--fmg-sea);
|
|
111
|
+
outline-offset: 2px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.fmg-note {
|
|
115
|
+
color: var(--fmg-ink-2);
|
|
116
|
+
font-size: 12px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.fmg-quiet {
|
|
120
|
+
color: var(--fmg-ink-3);
|
|
121
|
+
font-size: 12px;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.fmg-link {
|
|
125
|
+
color: var(--fmg-sea-ink);
|
|
126
|
+
text-decoration: none;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
@media (hover: hover) {
|
|
130
|
+
.fmg-link:hover {
|
|
131
|
+
text-decoration: underline;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.fmg-code {
|
|
136
|
+
padding: 0 4px;
|
|
137
|
+
border-radius: 4px;
|
|
138
|
+
background: var(--fmg-sunk);
|
|
139
|
+
font-family: var(--fmg-mono);
|
|
140
|
+
font-size: 0.92em;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* ------------------------------------------------------------------ 2. hero */
|
|
144
|
+
|
|
145
|
+
/* The margin on top is the room the mascot's head needs: she stands on the card's lower edge and is
|
|
146
|
+
taller than the card. */
|
|
147
|
+
.fmg-hero {
|
|
148
|
+
position: relative;
|
|
149
|
+
display: grid;
|
|
150
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
151
|
+
align-items: end;
|
|
152
|
+
gap: 16px;
|
|
153
|
+
margin-top: 28px;
|
|
154
|
+
padding: 20px 8px 20px 24px;
|
|
155
|
+
min-height: 132px;
|
|
156
|
+
border: var(--fmg-hair) solid var(--fmg-hero-edge);
|
|
157
|
+
border-radius: var(--fmg-radius-xl);
|
|
158
|
+
background: linear-gradient(120deg, var(--fmg-hero-a) 0%, var(--fmg-hero-b) 62%);
|
|
159
|
+
color: var(--fmg-ink);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.fmg-hero__text {
|
|
163
|
+
display: flex;
|
|
164
|
+
flex-direction: column;
|
|
165
|
+
gap: 8px;
|
|
166
|
+
align-self: center;
|
|
167
|
+
min-width: 0;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.fmg-hero__head {
|
|
171
|
+
display: flex;
|
|
172
|
+
align-items: center;
|
|
173
|
+
gap: 10px;
|
|
174
|
+
font-size: 18px;
|
|
175
|
+
font-weight: 600;
|
|
176
|
+
line-height: 26px;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.fmg-hero__line {
|
|
180
|
+
max-width: 520px;
|
|
181
|
+
color: var(--fmg-ink-2);
|
|
182
|
+
font-size: 13px;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.fmg-hero__facts {
|
|
186
|
+
display: flex;
|
|
187
|
+
flex-wrap: wrap;
|
|
188
|
+
gap: 6px;
|
|
189
|
+
margin-top: 4px;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.fmg-fact {
|
|
193
|
+
padding: 2px 10px;
|
|
194
|
+
border: var(--fmg-hair) solid var(--fmg-hero-edge);
|
|
195
|
+
border-radius: 999px;
|
|
196
|
+
corner-shape: round;
|
|
197
|
+
background: var(--fmg-hero-chip);
|
|
198
|
+
color: var(--fmg-ink);
|
|
199
|
+
font-size: 12px;
|
|
200
|
+
font-variant-numeric: tabular-nums;
|
|
201
|
+
white-space: nowrap;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.fmg-fact--warn {
|
|
205
|
+
border-color: transparent;
|
|
206
|
+
background: var(--fmg-warn-wash);
|
|
207
|
+
color: var(--fmg-wait);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/* The state at a glance, for those who do not read the drawing: a dot in front of the headline. */
|
|
211
|
+
.fmg-dot {
|
|
212
|
+
flex: none;
|
|
213
|
+
width: 8px;
|
|
214
|
+
height: 8px;
|
|
215
|
+
border-radius: 50%;
|
|
216
|
+
corner-shape: round;
|
|
217
|
+
background: var(--fmg-ink-3);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.fmg-dot[data-mood='ready'] {
|
|
221
|
+
background: var(--fmg-ok);
|
|
222
|
+
box-shadow: 0 0 0 4px color-mix(in srgb, var(--fmg-ok) 18%, transparent);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.fmg-dot[data-mood='busy'] {
|
|
226
|
+
background: var(--fmg-wait);
|
|
227
|
+
animation: fmg-pulse 1.6s ease-in-out infinite;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.fmg-dot[data-mood='trouble'] {
|
|
231
|
+
background: var(--fmg-danger);
|
|
232
|
+
box-shadow: 0 0 0 4px color-mix(in srgb, var(--fmg-danger) 18%, transparent);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.fmg-hero__art {
|
|
236
|
+
position: relative;
|
|
237
|
+
align-self: end;
|
|
238
|
+
width: 123px;
|
|
239
|
+
height: 172px;
|
|
240
|
+
margin: -48px 0 -20px;
|
|
241
|
+
pointer-events: none;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.fmg-hero__art img {
|
|
245
|
+
position: absolute;
|
|
246
|
+
inset: 0;
|
|
247
|
+
width: 100%;
|
|
248
|
+
height: 100%;
|
|
249
|
+
object-fit: contain;
|
|
250
|
+
object-position: bottom;
|
|
251
|
+
opacity: 0;
|
|
252
|
+
transition: opacity 0.35s ease;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.fmg-hero__art img[data-shown='true'] {
|
|
256
|
+
opacity: 1;
|
|
257
|
+
animation: fmg-bob 5s ease-in-out infinite;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/* Three bubbles drift up behind the text; decoration only. */
|
|
261
|
+
.fmg-hero__sea {
|
|
262
|
+
position: absolute;
|
|
263
|
+
inset: 0;
|
|
264
|
+
overflow: hidden;
|
|
265
|
+
border-radius: inherit;
|
|
266
|
+
pointer-events: none;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.fmg-hero__sea i {
|
|
270
|
+
position: absolute;
|
|
271
|
+
bottom: -24px;
|
|
272
|
+
border: var(--fmg-hair) solid var(--fmg-bubble);
|
|
273
|
+
border-radius: 50%;
|
|
274
|
+
corner-shape: round;
|
|
275
|
+
background: radial-gradient(circle at 32% 30%, transparent 55%, var(--fmg-bubble) 100%);
|
|
276
|
+
animation: fmg-rise 14s linear infinite;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.fmg-hero__sea i:nth-child(1) { left: 58%; width: 14px; height: 14px; animation-delay: -2s; }
|
|
280
|
+
.fmg-hero__sea i:nth-child(2) { left: 67%; width: 22px; height: 22px; animation-duration: 19s; animation-delay: -9s; }
|
|
281
|
+
.fmg-hero__sea i:nth-child(3) { left: 44%; width: 9px; height: 9px; animation-duration: 11s; animation-delay: -5s; }
|
|
282
|
+
|
|
283
|
+
@keyframes fmg-rise {
|
|
284
|
+
from { transform: translateY(0); opacity: 0; }
|
|
285
|
+
12% { opacity: 1; }
|
|
286
|
+
85% { opacity: 1; }
|
|
287
|
+
to { transform: translateY(-190px); opacity: 0; }
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
@keyframes fmg-bob {
|
|
291
|
+
0%, 100% { transform: translateY(0); }
|
|
292
|
+
50% { transform: translateY(-3px); }
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
@keyframes fmg-pulse {
|
|
296
|
+
0%, 100% { opacity: 1; }
|
|
297
|
+
50% { opacity: 0.35; }
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/* ------------------------------------------------------------------ 3. tabs */
|
|
301
|
+
|
|
302
|
+
.fmg-tabs {
|
|
303
|
+
display: flex;
|
|
304
|
+
gap: 4px;
|
|
305
|
+
overflow-x: auto;
|
|
306
|
+
border-bottom: var(--fmg-hair) solid var(--fmg-line);
|
|
307
|
+
scrollbar-width: none;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.fmg-tabs::-webkit-scrollbar {
|
|
311
|
+
display: none;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.fmg-tab {
|
|
315
|
+
position: relative;
|
|
316
|
+
flex: none;
|
|
317
|
+
display: inline-flex;
|
|
318
|
+
align-items: center;
|
|
319
|
+
gap: 6px;
|
|
320
|
+
padding: 8px 12px 10px;
|
|
321
|
+
border: 0;
|
|
322
|
+
background: none;
|
|
323
|
+
color: var(--fmg-ink-2);
|
|
324
|
+
font: inherit;
|
|
325
|
+
font-size: 13px;
|
|
326
|
+
cursor: pointer;
|
|
327
|
+
transition: color 0.15s ease;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
@media (hover: hover) {
|
|
331
|
+
.fmg-tab:hover {
|
|
332
|
+
color: var(--fmg-ink);
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.fmg-tab::after {
|
|
337
|
+
content: '';
|
|
338
|
+
position: absolute;
|
|
339
|
+
left: 12px;
|
|
340
|
+
right: 12px;
|
|
341
|
+
bottom: -1px;
|
|
342
|
+
height: 2px;
|
|
343
|
+
border-radius: 2px;
|
|
344
|
+
background: var(--fmg-sea);
|
|
345
|
+
transform: scaleX(0);
|
|
346
|
+
transition: transform 0.2s ease;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.fmg-tab[aria-selected='true'] {
|
|
350
|
+
color: var(--fmg-ink);
|
|
351
|
+
font-weight: 600;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.fmg-tab[aria-selected='true']::after {
|
|
355
|
+
transform: scaleX(1);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
/* A tab that holds unsaved edits. */
|
|
359
|
+
.fmg-mark {
|
|
360
|
+
width: 6px;
|
|
361
|
+
height: 6px;
|
|
362
|
+
border-radius: 50%;
|
|
363
|
+
corner-shape: round;
|
|
364
|
+
background: var(--fmg-sea);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.fmg-mark--invalid {
|
|
368
|
+
background: var(--fmg-danger);
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.fmg-panel {
|
|
372
|
+
display: flex;
|
|
373
|
+
flex-direction: column;
|
|
374
|
+
gap: 24px;
|
|
375
|
+
padding-top: 4px;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
/* ------------------------------------------------------------------ 4. sections and rows */
|
|
379
|
+
|
|
380
|
+
.fmg-section {
|
|
381
|
+
display: flex;
|
|
382
|
+
flex-direction: column;
|
|
383
|
+
gap: 8px;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.fmg-section__head {
|
|
387
|
+
display: flex;
|
|
388
|
+
flex-direction: column;
|
|
389
|
+
gap: 2px;
|
|
390
|
+
padding: 0 4px;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.fmg-section__title {
|
|
394
|
+
font-size: 14px;
|
|
395
|
+
font-weight: 600;
|
|
396
|
+
line-height: 1.5;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
/* A group is the bordered list the rows of a section sit in. `fmg-rows` draws the lines between
|
|
400
|
+
rows, for a group and for the body of a folding group alike. */
|
|
401
|
+
.fmg-group {
|
|
402
|
+
border: var(--fmg-hair) solid var(--fmg-line);
|
|
403
|
+
border-radius: var(--fmg-radius-l);
|
|
404
|
+
background: var(--fmg-surface);
|
|
405
|
+
overflow: hidden;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.fmg-rows > * + * {
|
|
409
|
+
border-top: var(--fmg-hair) solid var(--fmg-line);
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
/* A closed part takes no room, so it draws no line either. */
|
|
413
|
+
.fmg-rows > .fmg-reveal:not([data-open='true']) {
|
|
414
|
+
border-top-width: 0;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.fmg-row {
|
|
418
|
+
display: grid;
|
|
419
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
420
|
+
align-items: start;
|
|
421
|
+
column-gap: 24px;
|
|
422
|
+
row-gap: 10px;
|
|
423
|
+
padding: 14px 16px;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
/* A row whose control needs the full width (text, choices) puts it under the text. */
|
|
427
|
+
.fmg-row--stack {
|
|
428
|
+
grid-template-columns: minmax(0, 1fr);
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.fmg-row__text {
|
|
432
|
+
display: flex;
|
|
433
|
+
flex-direction: column;
|
|
434
|
+
gap: 2px;
|
|
435
|
+
min-width: 0;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
.fmg-row__label {
|
|
439
|
+
display: flex;
|
|
440
|
+
flex-wrap: wrap;
|
|
441
|
+
align-items: center;
|
|
442
|
+
gap: 4px 8px;
|
|
443
|
+
font-size: 13px;
|
|
444
|
+
font-weight: 500;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.fmg-row__help {
|
|
448
|
+
max-width: 640px;
|
|
449
|
+
color: var(--fmg-ink-2);
|
|
450
|
+
font-size: 12px;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.fmg-row__error {
|
|
454
|
+
color: var(--fmg-danger);
|
|
455
|
+
font-size: 12px;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.fmg-row__control {
|
|
459
|
+
display: flex;
|
|
460
|
+
align-items: center;
|
|
461
|
+
gap: 8px;
|
|
462
|
+
min-height: 22px;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
/* A control with a line under it (the text area and its count). */
|
|
466
|
+
.fmg-row__control--stack {
|
|
467
|
+
flex-direction: column;
|
|
468
|
+
align-items: stretch;
|
|
469
|
+
gap: 4px;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
.fmg-row__control--stack > .fmg-quiet {
|
|
473
|
+
align-self: flex-end;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
/* A setting that depends on the one above it: set in, with a rail down the left. */
|
|
477
|
+
.fmg-row--sub {
|
|
478
|
+
padding-left: 32px;
|
|
479
|
+
background:
|
|
480
|
+
linear-gradient(var(--fmg-sea-edge), var(--fmg-sea-edge)) 16px 0 / 2px 100% no-repeat,
|
|
481
|
+
var(--fmg-sunk);
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
/* A part that opens and closes: the height animates through the grid row. While closed the content
|
|
485
|
+
is not visible, which also keeps the keyboard and a screen reader out of it; the switch to hidden
|
|
486
|
+
waits until the closing animation is over. */
|
|
487
|
+
.fmg-reveal {
|
|
488
|
+
display: grid;
|
|
489
|
+
grid-template-rows: 0fr;
|
|
490
|
+
transition: grid-template-rows 0.22s var(--fmg-ease);
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.fmg-reveal[data-open='true'] {
|
|
494
|
+
grid-template-rows: 1fr;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
.fmg-reveal > div {
|
|
498
|
+
min-height: 0;
|
|
499
|
+
overflow: hidden;
|
|
500
|
+
visibility: hidden;
|
|
501
|
+
transition: visibility 0s linear 0.22s;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
.fmg-reveal[data-open='true'] > div {
|
|
505
|
+
visibility: visible;
|
|
506
|
+
transition-delay: 0s;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
/* ------------------------------------------------------------------ 5. controls */
|
|
510
|
+
|
|
511
|
+
.fmg-tag {
|
|
512
|
+
display: inline-flex;
|
|
513
|
+
align-items: center;
|
|
514
|
+
padding: 0 7px;
|
|
515
|
+
border-radius: 999px;
|
|
516
|
+
corner-shape: round;
|
|
517
|
+
background: var(--fmg-sunk);
|
|
518
|
+
color: var(--fmg-ink-2);
|
|
519
|
+
font-size: 11px;
|
|
520
|
+
font-weight: 500;
|
|
521
|
+
line-height: 18px;
|
|
522
|
+
white-space: nowrap;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
.fmg-tag--sea { background: var(--fmg-sea-wash); color: var(--fmg-sea-ink); }
|
|
526
|
+
.fmg-tag--blush { background: var(--fmg-blush-wash); color: var(--fmg-blush); }
|
|
527
|
+
.fmg-tag--warn { background: var(--fmg-warn-wash); color: var(--fmg-wait); }
|
|
528
|
+
.fmg-tag--ok { background: color-mix(in srgb, var(--fmg-ok) 14%, transparent); color: var(--fmg-ok); }
|
|
529
|
+
|
|
530
|
+
.fmg-button {
|
|
531
|
+
display: inline-flex;
|
|
532
|
+
align-items: center;
|
|
533
|
+
justify-content: center;
|
|
534
|
+
gap: 6px;
|
|
535
|
+
height: 30px;
|
|
536
|
+
padding: 0 12px;
|
|
537
|
+
border: var(--fmg-hair) solid var(--fmg-line-strong);
|
|
538
|
+
border-radius: var(--fmg-radius-s);
|
|
539
|
+
background: var(--fmg-raised);
|
|
540
|
+
color: var(--fmg-ink);
|
|
541
|
+
font: inherit;
|
|
542
|
+
font-size: 13px;
|
|
543
|
+
/* A link may be drawn as a button (the way out to GitHub on the feedback tab). */
|
|
544
|
+
text-decoration: none;
|
|
545
|
+
white-space: nowrap;
|
|
546
|
+
cursor: pointer;
|
|
547
|
+
transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
@media (hover: hover) {
|
|
551
|
+
.fmg-button:hover:not(:disabled) {
|
|
552
|
+
background: color-mix(in srgb, var(--fmg-raised), var(--fmg-ink) 6%);
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
.fmg-button:disabled {
|
|
557
|
+
opacity: 0.5;
|
|
558
|
+
cursor: default;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
.fmg-button--primary {
|
|
562
|
+
border-color: transparent;
|
|
563
|
+
background: var(--fmg-sea);
|
|
564
|
+
color: var(--fmg-on-sea);
|
|
565
|
+
font-weight: 500;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
@media (hover: hover) {
|
|
569
|
+
.fmg-button--primary:hover:not(:disabled) {
|
|
570
|
+
background: color-mix(in srgb, var(--fmg-sea) 88%, #000);
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
/* A button that reads as text: "Reset", "Clear", "Refresh". */
|
|
575
|
+
.fmg-button--text {
|
|
576
|
+
height: auto;
|
|
577
|
+
padding: 0;
|
|
578
|
+
border: 0;
|
|
579
|
+
background: none;
|
|
580
|
+
color: var(--fmg-sea-ink);
|
|
581
|
+
font-size: 12px;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
@media (hover: hover) {
|
|
585
|
+
.fmg-button--text:hover:not(:disabled) {
|
|
586
|
+
background: none;
|
|
587
|
+
text-decoration: underline;
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
.fmg-switch {
|
|
592
|
+
position: relative;
|
|
593
|
+
flex: none;
|
|
594
|
+
width: 36px;
|
|
595
|
+
height: 20px;
|
|
596
|
+
padding: 0;
|
|
597
|
+
border: 0;
|
|
598
|
+
border-radius: 999px;
|
|
599
|
+
corner-shape: round;
|
|
600
|
+
background: var(--fmg-line-strong);
|
|
601
|
+
cursor: pointer;
|
|
602
|
+
transition: background-color 0.18s ease;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
.fmg-switch::after {
|
|
606
|
+
content: '';
|
|
607
|
+
position: absolute;
|
|
608
|
+
top: 2px;
|
|
609
|
+
left: 2px;
|
|
610
|
+
width: 16px;
|
|
611
|
+
height: 16px;
|
|
612
|
+
border-radius: 50%;
|
|
613
|
+
corner-shape: round;
|
|
614
|
+
background: var(--fmg-thumb);
|
|
615
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
|
|
616
|
+
transition: transform 0.18s ease;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
.fmg-switch[aria-checked='true'] {
|
|
620
|
+
background: var(--fmg-sea);
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
.fmg-switch[aria-checked='true']::after {
|
|
624
|
+
background: var(--fmg-on-sea);
|
|
625
|
+
transform: translateX(16px);
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
.fmg-switch:disabled {
|
|
629
|
+
opacity: 0.5;
|
|
630
|
+
cursor: default;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
.fmg-input {
|
|
634
|
+
width: 100%;
|
|
635
|
+
height: 34px;
|
|
636
|
+
padding: 0 12px;
|
|
637
|
+
border: var(--fmg-hair) solid var(--fmg-line-strong);
|
|
638
|
+
border-radius: var(--fmg-radius-m);
|
|
639
|
+
background: var(--fmg-raised);
|
|
640
|
+
color: var(--fmg-ink);
|
|
641
|
+
font: inherit;
|
|
642
|
+
font-size: 13px;
|
|
643
|
+
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
.fmg-input::placeholder {
|
|
647
|
+
color: var(--fmg-ink-3);
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
@media (hover: hover) {
|
|
651
|
+
.fmg-input:hover:not(:disabled) {
|
|
652
|
+
border-color: var(--fmg-sea-edge);
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
.fmg-input:focus-visible {
|
|
657
|
+
outline: none;
|
|
658
|
+
border-color: var(--fmg-sea);
|
|
659
|
+
box-shadow: 0 0 0 3px var(--fmg-sea-wash);
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
.fmg-input[aria-invalid='true'] {
|
|
663
|
+
border-color: var(--fmg-danger);
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
.fmg-input:disabled {
|
|
667
|
+
opacity: 0.6;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
/* Several lines of text: the same box, as tall as its rows, and the person can drag it taller. */
|
|
671
|
+
.fmg-input--area {
|
|
672
|
+
display: block;
|
|
673
|
+
height: auto;
|
|
674
|
+
min-height: 96px;
|
|
675
|
+
padding: 8px 12px;
|
|
676
|
+
line-height: 1.6;
|
|
677
|
+
resize: vertical;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
.fmg-input-line {
|
|
681
|
+
display: flex;
|
|
682
|
+
align-items: center;
|
|
683
|
+
gap: 8px;
|
|
684
|
+
width: 100%;
|
|
685
|
+
max-width: 460px;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
/* A number with a minus and a plus: one bordered box, the unit after it. */
|
|
689
|
+
.fmg-stepper {
|
|
690
|
+
display: inline-flex;
|
|
691
|
+
align-items: stretch;
|
|
692
|
+
height: 30px;
|
|
693
|
+
border: var(--fmg-hair) solid var(--fmg-line-strong);
|
|
694
|
+
border-radius: var(--fmg-radius-m);
|
|
695
|
+
background: var(--fmg-raised);
|
|
696
|
+
overflow: hidden;
|
|
697
|
+
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
.fmg-stepper:focus-within {
|
|
701
|
+
border-color: var(--fmg-sea);
|
|
702
|
+
box-shadow: 0 0 0 3px var(--fmg-sea-wash);
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
.fmg-stepper[data-invalid='true'] {
|
|
706
|
+
border-color: var(--fmg-danger);
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
.fmg-stepper input {
|
|
710
|
+
width: 56px;
|
|
711
|
+
padding: 0 4px;
|
|
712
|
+
border: 0;
|
|
713
|
+
background: none;
|
|
714
|
+
color: var(--fmg-ink);
|
|
715
|
+
font: inherit;
|
|
716
|
+
font-size: 13px;
|
|
717
|
+
font-variant-numeric: tabular-nums;
|
|
718
|
+
text-align: center;
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
.fmg-stepper input:focus-visible {
|
|
722
|
+
outline: none;
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
.fmg-stepper button {
|
|
726
|
+
display: inline-flex;
|
|
727
|
+
align-items: center;
|
|
728
|
+
justify-content: center;
|
|
729
|
+
width: 28px;
|
|
730
|
+
padding: 0;
|
|
731
|
+
border: 0;
|
|
732
|
+
background: none;
|
|
733
|
+
color: var(--fmg-ink-2);
|
|
734
|
+
cursor: pointer;
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
@media (hover: hover) {
|
|
738
|
+
.fmg-stepper button:hover:not(:disabled) {
|
|
739
|
+
background: var(--fmg-sunk);
|
|
740
|
+
color: var(--fmg-ink);
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
.fmg-stepper button:disabled {
|
|
745
|
+
opacity: 0.35;
|
|
746
|
+
cursor: default;
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
.fmg-stepper button:focus-visible {
|
|
750
|
+
outline-offset: -2px;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
/* The options of a choice, each with what it means: a list of radio rows. */
|
|
754
|
+
.fmg-choices {
|
|
755
|
+
width: 100%;
|
|
756
|
+
display: grid;
|
|
757
|
+
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
|
758
|
+
gap: 8px;
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
/* Four options would wrap three and one: two by two reads better. */
|
|
762
|
+
.fmg-choices[data-count='4'] {
|
|
763
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
.fmg-choice {
|
|
767
|
+
display: grid;
|
|
768
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
769
|
+
align-items: start;
|
|
770
|
+
column-gap: 10px;
|
|
771
|
+
padding: 10px 12px;
|
|
772
|
+
border: var(--fmg-hair) solid var(--fmg-line);
|
|
773
|
+
border-radius: var(--fmg-radius-m);
|
|
774
|
+
background: var(--fmg-raised);
|
|
775
|
+
color: inherit;
|
|
776
|
+
font: inherit;
|
|
777
|
+
text-align: left;
|
|
778
|
+
cursor: pointer;
|
|
779
|
+
transition: border-color 0.15s ease, background-color 0.15s ease;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
@media (hover: hover) {
|
|
783
|
+
.fmg-choice:hover:not(:disabled) {
|
|
784
|
+
border-color: var(--fmg-sea-edge);
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
.fmg-choice[aria-checked='true'] {
|
|
789
|
+
border-color: var(--fmg-sea);
|
|
790
|
+
background: var(--fmg-sea-wash);
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
.fmg-choice:disabled {
|
|
794
|
+
opacity: 0.6;
|
|
795
|
+
cursor: default;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
.fmg-choice__dot {
|
|
799
|
+
width: 14px;
|
|
800
|
+
height: 14px;
|
|
801
|
+
margin-top: 3px;
|
|
802
|
+
border: 1.5px solid var(--fmg-line-strong);
|
|
803
|
+
border-radius: 50%;
|
|
804
|
+
corner-shape: round;
|
|
805
|
+
background: var(--fmg-raised);
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
.fmg-choice[aria-checked='true'] .fmg-choice__dot {
|
|
809
|
+
border: 4px solid var(--fmg-sea);
|
|
810
|
+
background: var(--fmg-on-sea);
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
.fmg-choice__name {
|
|
814
|
+
font-size: 13px;
|
|
815
|
+
font-weight: 500;
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
.fmg-choice__note {
|
|
819
|
+
display: block;
|
|
820
|
+
color: var(--fmg-ink-2);
|
|
821
|
+
font-size: 12px;
|
|
822
|
+
font-weight: 400;
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
/* ------------------------------------------------------------------ 6. disclosures, panels, notices */
|
|
826
|
+
|
|
827
|
+
.fmg-fold {
|
|
828
|
+
border: var(--fmg-hair) solid var(--fmg-line);
|
|
829
|
+
border-radius: var(--fmg-radius-l);
|
|
830
|
+
background: var(--fmg-surface);
|
|
831
|
+
overflow: hidden;
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
.fmg-fold__head {
|
|
835
|
+
display: grid;
|
|
836
|
+
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
837
|
+
align-items: center;
|
|
838
|
+
gap: 12px;
|
|
839
|
+
width: 100%;
|
|
840
|
+
padding: 14px 16px;
|
|
841
|
+
border: 0;
|
|
842
|
+
background: none;
|
|
843
|
+
color: inherit;
|
|
844
|
+
font: inherit;
|
|
845
|
+
text-align: left;
|
|
846
|
+
cursor: pointer;
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
@media (hover: hover) {
|
|
850
|
+
.fmg-fold__head:hover {
|
|
851
|
+
background: var(--fmg-hover);
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
.fmg-fold__head:focus-visible {
|
|
856
|
+
outline-offset: -2px;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
.fmg-fold__chevron {
|
|
860
|
+
color: var(--fmg-ink-3);
|
|
861
|
+
transition: transform 0.2s ease;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
.fmg-root [aria-expanded='true'] > .fmg-fold__chevron {
|
|
865
|
+
transform: rotate(90deg);
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
.fmg-fold__title {
|
|
869
|
+
display: block;
|
|
870
|
+
font-size: 14px;
|
|
871
|
+
font-weight: 600;
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
.fmg-fold__help {
|
|
875
|
+
display: block;
|
|
876
|
+
color: var(--fmg-ink-2);
|
|
877
|
+
font-size: 12px;
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
.fmg-fold__body {
|
|
881
|
+
border-top: var(--fmg-hair) solid var(--fmg-line);
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
/* Label and value pairs: the details of the overview, the facts of a model. */
|
|
885
|
+
.fmg-facts {
|
|
886
|
+
display: grid;
|
|
887
|
+
grid-template-columns: max-content minmax(0, 1fr);
|
|
888
|
+
gap: 6px 16px;
|
|
889
|
+
padding: 14px 16px;
|
|
890
|
+
font-size: 12px;
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
.fmg-facts dt {
|
|
894
|
+
color: var(--fmg-ink-2);
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
.fmg-facts dd {
|
|
898
|
+
overflow-wrap: anywhere;
|
|
899
|
+
font-variant-numeric: tabular-nums;
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
.fmg-notice {
|
|
903
|
+
display: flex;
|
|
904
|
+
flex-direction: column;
|
|
905
|
+
gap: 8px;
|
|
906
|
+
padding: 10px 14px;
|
|
907
|
+
border-radius: var(--fmg-radius-m);
|
|
908
|
+
background: var(--fmg-sunk);
|
|
909
|
+
font-size: 12px;
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
.fmg-notice--warn {
|
|
913
|
+
background: var(--fmg-warn-wash);
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
.fmg-actions {
|
|
917
|
+
display: flex;
|
|
918
|
+
flex-wrap: wrap;
|
|
919
|
+
align-items: center;
|
|
920
|
+
gap: 8px;
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
/* The head of the Feedback tab: title and intro at the left, the small drawing at the right. The drawing
|
|
924
|
+
is decoration (clicks go through it); its bubble sits over the empty upper-right of the picture, with
|
|
925
|
+
the small corner at the bottom left, toward the mascot's mouth. */
|
|
926
|
+
.fmg-feedback__head {
|
|
927
|
+
flex-direction: row;
|
|
928
|
+
align-items: flex-end;
|
|
929
|
+
justify-content: space-between;
|
|
930
|
+
gap: 16px;
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
.fmg-feedback__intro {
|
|
934
|
+
display: flex;
|
|
935
|
+
flex-direction: column;
|
|
936
|
+
gap: 2px;
|
|
937
|
+
min-width: 0;
|
|
938
|
+
padding-bottom: 4px;
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
.fmg-nag {
|
|
942
|
+
position: relative;
|
|
943
|
+
flex: none;
|
|
944
|
+
width: 132px;
|
|
945
|
+
/* Room at the right for the part of the bubble that reaches past the drawing. */
|
|
946
|
+
margin: -6px 24px -6px 0;
|
|
947
|
+
pointer-events: none;
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
.fmg-nag img {
|
|
951
|
+
display: block;
|
|
952
|
+
width: 100%;
|
|
953
|
+
height: auto;
|
|
954
|
+
opacity: 0;
|
|
955
|
+
transition: opacity 0.35s ease;
|
|
956
|
+
/* A thin rim that follows the theme, so that the black cat stays readable on a dark background. */
|
|
957
|
+
filter: drop-shadow(0 0 1px color-mix(in srgb, var(--fmg-ink) 45%, transparent));
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
.fmg-nag img[data-shown='true'] {
|
|
961
|
+
opacity: 1;
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
.fmg-nag__bubble {
|
|
965
|
+
position: absolute;
|
|
966
|
+
/* Over the empty upper right of the drawing; it starts beside her head and grows to the right. */
|
|
967
|
+
top: 4%;
|
|
968
|
+
left: 56%;
|
|
969
|
+
padding: 3px 9px;
|
|
970
|
+
border: var(--fmg-hair) solid var(--fmg-line-strong);
|
|
971
|
+
border-radius: 12px 12px 12px 3px;
|
|
972
|
+
background: var(--fmg-raised);
|
|
973
|
+
color: var(--fmg-ink);
|
|
974
|
+
font-size: 12px;
|
|
975
|
+
font-weight: 600;
|
|
976
|
+
line-height: 1.5;
|
|
977
|
+
white-space: nowrap;
|
|
978
|
+
box-shadow: var(--fmg-shadow);
|
|
979
|
+
animation: fmg-up 0.22s ease;
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
/* The last thing of a line of actions, pushed to the far end (a link aside from the buttons). */
|
|
983
|
+
.fmg-actions__end {
|
|
984
|
+
margin-left: auto;
|
|
985
|
+
font-size: 12px;
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
.fmg-model {
|
|
989
|
+
display: grid;
|
|
990
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
991
|
+
align-items: start;
|
|
992
|
+
gap: 8px 16px;
|
|
993
|
+
padding: 14px 16px;
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
.fmg-model__text {
|
|
997
|
+
display: flex;
|
|
998
|
+
flex-direction: column;
|
|
999
|
+
gap: 4px;
|
|
1000
|
+
min-width: 0;
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
.fmg-model__name {
|
|
1004
|
+
display: flex;
|
|
1005
|
+
flex-wrap: wrap;
|
|
1006
|
+
align-items: center;
|
|
1007
|
+
gap: 4px 8px;
|
|
1008
|
+
font-size: 13px;
|
|
1009
|
+
font-weight: 600;
|
|
1010
|
+
overflow-wrap: anywhere;
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
.fmg-model__facts {
|
|
1014
|
+
display: flex;
|
|
1015
|
+
flex-wrap: wrap;
|
|
1016
|
+
gap: 2px 16px;
|
|
1017
|
+
color: var(--fmg-ink-2);
|
|
1018
|
+
font-size: 12px;
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
.fmg-model__wide {
|
|
1022
|
+
grid-column: 1 / -1;
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
.fmg-check {
|
|
1026
|
+
display: flex;
|
|
1027
|
+
align-items: baseline;
|
|
1028
|
+
flex-wrap: wrap;
|
|
1029
|
+
gap: 6px;
|
|
1030
|
+
font-size: 12px;
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
.fmg-check input {
|
|
1034
|
+
accent-color: var(--fmg-sea);
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
.fmg-progress {
|
|
1038
|
+
height: 4px;
|
|
1039
|
+
border-radius: 2px;
|
|
1040
|
+
background: var(--fmg-sunk);
|
|
1041
|
+
overflow: hidden;
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
.fmg-progress i {
|
|
1045
|
+
display: block;
|
|
1046
|
+
height: 100%;
|
|
1047
|
+
border-radius: inherit;
|
|
1048
|
+
background: var(--fmg-sea);
|
|
1049
|
+
transition: width 0.4s ease;
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
/* ------------------------------------------------------------------ 7. save bar */
|
|
1053
|
+
|
|
1054
|
+
/* Sticks to the lower edge of whatever scrolls the page; takes no room while nothing is staged. */
|
|
1055
|
+
.fmg-savebar {
|
|
1056
|
+
position: sticky;
|
|
1057
|
+
bottom: 12px;
|
|
1058
|
+
z-index: 2;
|
|
1059
|
+
display: flex;
|
|
1060
|
+
flex-wrap: wrap;
|
|
1061
|
+
align-items: center;
|
|
1062
|
+
justify-content: space-between;
|
|
1063
|
+
gap: 8px 16px;
|
|
1064
|
+
padding: 10px 12px 10px 16px;
|
|
1065
|
+
border: var(--fmg-hair) solid var(--fmg-line);
|
|
1066
|
+
border-radius: var(--fmg-radius-l);
|
|
1067
|
+
background: var(--fmg-raised);
|
|
1068
|
+
box-shadow: var(--fmg-shadow);
|
|
1069
|
+
animation: fmg-up 0.22s ease;
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
.fmg-savebar__text {
|
|
1073
|
+
display: flex;
|
|
1074
|
+
flex-direction: column;
|
|
1075
|
+
min-width: 0;
|
|
1076
|
+
font-size: 13px;
|
|
1077
|
+
font-weight: 500;
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
.fmg-savebar__text .fmg-row__error {
|
|
1081
|
+
font-weight: 400;
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
.fmg-savebar--done {
|
|
1085
|
+
justify-content: flex-start;
|
|
1086
|
+
color: var(--fmg-ok);
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
@keyframes fmg-up {
|
|
1090
|
+
from { transform: translateY(8px); opacity: 0; }
|
|
1091
|
+
to { transform: none; opacity: 1; }
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
/* ------------------------------------------------------------------ 8. changelog */
|
|
1095
|
+
|
|
1096
|
+
.fmg-release {
|
|
1097
|
+
padding: 14px 16px;
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
.fmg-release__head {
|
|
1101
|
+
display: flex;
|
|
1102
|
+
flex-wrap: wrap;
|
|
1103
|
+
align-items: center;
|
|
1104
|
+
gap: 4px 10px;
|
|
1105
|
+
width: 100%;
|
|
1106
|
+
padding: 0;
|
|
1107
|
+
border: 0;
|
|
1108
|
+
background: none;
|
|
1109
|
+
color: inherit;
|
|
1110
|
+
font: inherit;
|
|
1111
|
+
text-align: left;
|
|
1112
|
+
cursor: pointer;
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
.fmg-release__version {
|
|
1116
|
+
font-size: 14px;
|
|
1117
|
+
font-weight: 600;
|
|
1118
|
+
font-variant-numeric: tabular-nums;
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
.fmg-release__date {
|
|
1122
|
+
color: var(--fmg-ink-3);
|
|
1123
|
+
font-size: 12px;
|
|
1124
|
+
font-variant-numeric: tabular-nums;
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
.fmg-release__head .fmg-fold__chevron {
|
|
1128
|
+
margin-left: auto;
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
.fmg-md {
|
|
1132
|
+
padding-top: 10px;
|
|
1133
|
+
color: var(--fmg-ink);
|
|
1134
|
+
font-size: 12.5px;
|
|
1135
|
+
line-height: 1.7;
|
|
1136
|
+
overflow-wrap: anywhere;
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
.fmg-md p { margin: 0 0 6px; }
|
|
1140
|
+
.fmg-md h5 { margin: 12px 0 4px; font-size: 12.5px; font-weight: 600; }
|
|
1141
|
+
.fmg-md ul { margin: 0 0 6px; padding-left: 18px; list-style: disc; }
|
|
1142
|
+
.fmg-md li { margin: 2px 0; }
|
|
1143
|
+
.fmg-md li::marker { color: var(--fmg-ink-3); }
|
|
1144
|
+
|
|
1145
|
+
/* ------------------------------------------------------------------ 9. footer */
|
|
1146
|
+
|
|
1147
|
+
.fmg-foot {
|
|
1148
|
+
display: flex;
|
|
1149
|
+
flex-wrap: wrap;
|
|
1150
|
+
gap: 4px 16px;
|
|
1151
|
+
padding: 0 4px 4px;
|
|
1152
|
+
color: var(--fmg-ink-3);
|
|
1153
|
+
font-size: 12px;
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
.fmg-foot .fmg-link,
|
|
1157
|
+
.fmg-foot .fmg-button--text {
|
|
1158
|
+
color: var(--fmg-ink-2);
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
/* The recall trial: one line to type a sentence, then the memories the gateway looked at. */
|
|
1162
|
+
.fmg-trial {
|
|
1163
|
+
display: flex;
|
|
1164
|
+
flex-direction: column;
|
|
1165
|
+
gap: 8px;
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
.fmg-trial__form {
|
|
1169
|
+
display: flex;
|
|
1170
|
+
align-items: center;
|
|
1171
|
+
gap: 8px;
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
.fmg-trial__form .fmg-input {
|
|
1175
|
+
flex: 1 1 auto;
|
|
1176
|
+
min-width: 0;
|
|
1177
|
+
width: auto;
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
.fmg-trial__form .fmg-button {
|
|
1181
|
+
flex: none;
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
.fmg-trial__row {
|
|
1185
|
+
display: flex;
|
|
1186
|
+
flex-direction: column;
|
|
1187
|
+
gap: 4px;
|
|
1188
|
+
padding: 12px 16px;
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
.fmg-trial__text {
|
|
1192
|
+
font-size: 13px;
|
|
1193
|
+
line-height: 1.6;
|
|
1194
|
+
overflow-wrap: anywhere;
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
.fmg-trial__row[data-left='true'] .fmg-trial__text {
|
|
1198
|
+
color: var(--fmg-ink-2);
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
.fmg-trial__facts {
|
|
1202
|
+
display: flex;
|
|
1203
|
+
flex-wrap: wrap;
|
|
1204
|
+
align-items: center;
|
|
1205
|
+
gap: 4px 12px;
|
|
1206
|
+
color: var(--fmg-ink-2);
|
|
1207
|
+
font-size: 12px;
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
.fmg-trial__reason {
|
|
1211
|
+
overflow-wrap: anywhere;
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
/* ------------------------------------------------------------------ narrow columns and calm motion */
|
|
1215
|
+
|
|
1216
|
+
@container (max-width: 520px) {
|
|
1217
|
+
.fmg-nag {
|
|
1218
|
+
width: 104px;
|
|
1219
|
+
margin-right: 36px;
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
.fmg-nag__bubble {
|
|
1223
|
+
font-size: 11px;
|
|
1224
|
+
padding: 2px 7px;
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
.fmg-hero {
|
|
1228
|
+
padding: 16px 4px 16px 16px;
|
|
1229
|
+
gap: 8px;
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
.fmg-hero__head {
|
|
1233
|
+
font-size: 17px;
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
.fmg-hero__art {
|
|
1237
|
+
width: 92px;
|
|
1238
|
+
height: 129px;
|
|
1239
|
+
margin-top: -36px;
|
|
1240
|
+
margin-bottom: -16px;
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
.fmg-row,
|
|
1244
|
+
.fmg-model {
|
|
1245
|
+
column-gap: 12px;
|
|
1246
|
+
padding: 12px;
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
.fmg-choices[data-count='4'] {
|
|
1250
|
+
grid-template-columns: minmax(0, 1fr);
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
.fmg-row--sub {
|
|
1254
|
+
padding-left: 24px;
|
|
1255
|
+
background-position: 10px 0, 0 0;
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
.fmg-model {
|
|
1259
|
+
grid-template-columns: minmax(0, 1fr);
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
.fmg-trial__form {
|
|
1263
|
+
flex-direction: column;
|
|
1264
|
+
align-items: stretch;
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
.fmg-trial__form .fmg-input {
|
|
1268
|
+
flex: none;
|
|
1269
|
+
width: 100%;
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
.fmg-trial__row {
|
|
1273
|
+
padding: 12px;
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1277
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1278
|
+
.fmg-root *,
|
|
1279
|
+
.fmg-root *::before,
|
|
1280
|
+
.fmg-root *::after {
|
|
1281
|
+
animation: none !important;
|
|
1282
|
+
transition: none !important;
|
|
1283
|
+
}
|
|
1284
|
+
}
|