@charmland/gem 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +177 -0
- package/NOTICE +13 -0
- package/README.md +24 -2
- package/assets/fonts/Hypography-Italic.woff2 +0 -0
- package/assets/fonts/Hypography-Regular.woff2 +0 -0
- package/assets/fonts/PPFraktionMono-Variable.ttf +0 -0
- package/assets/fonts/PPFraktionMonoItalic-Variable.ttf +0 -0
- package/assets/fonts/PPFraktionSans-Variable.ttf +0 -0
- package/assets/fonts/PPFraktionSansItalic-Variable.ttf +0 -0
- package/bin/gem-elm.js +3 -0
- package/dist/browser/boot.d.ts +10 -0
- package/dist/browser/boot.js +14 -0
- package/dist/browser/color-scheme.d.ts +9 -0
- package/dist/browser/color-scheme.js +76 -0
- package/dist/browser/ports.d.ts +37 -0
- package/dist/browser/ports.js +90 -0
- package/dist/browser/router.d.ts +5 -0
- package/dist/browser/router.js +35 -0
- package/dist/browser/runtime.d.ts +12 -0
- package/dist/browser/runtime.js +22 -0
- package/dist/browser/tabs.d.ts +9 -0
- package/dist/browser/tabs.js +69 -0
- package/dist/default/theme.css +4664 -0
- package/dist/default/theme.js +13652 -0
- package/dist/node/build.d.ts +16 -0
- package/dist/node/build.js +48 -0
- package/dist/node/cli.d.ts +2 -0
- package/dist/node/cli.js +21 -0
- package/elm.json +28 -0
- package/package.json +86 -4
- package/src/app/Gem/App.elm +1275 -0
- package/src/app/Gem/CharmSticker.elm +35 -0
- package/src/app/Gem/Components.elm +292 -0
- package/src/app/Gem/Main.elm +17 -0
- package/src/app/Gem/Ports.elm +32 -0
- package/src/app/Gem/Shell.elm +964 -0
- package/src/browser/theme.d.ts +1 -0
- package/src/core/Gem/Node.elm +219 -0
- package/src/core/Gem/Page.elm +409 -0
- package/src/core/Gem/Render.elm +472 -0
- package/src/core/Gem/Slots.elm +11 -0
- package/src/styles/docs.scss +1083 -0
- package/src/styles/fonts.scss +51 -0
- package/src/styles/gem.scss +362 -0
- package/src/styles/theme.scss +8 -0
- package/src/styles/ui/burger.scss +272 -0
- package/src/styles/ui/button.scss +350 -0
- package/src/styles/ui/charmtone.scss +70 -0
- package/src/styles/ui/controls-extra.scss +316 -0
- package/src/styles/ui/controls.scss +110 -0
- package/src/styles/ui/display.scss +359 -0
- package/src/styles/ui/dropdown.scss +341 -0
- package/src/styles/ui/form.scss +314 -0
- package/src/styles/ui/menu.scss +200 -0
- package/src/styles/ui/meter.scss +124 -0
- package/src/styles/ui/modal.scss +545 -0
- package/src/styles/ui/oauth.scss +50 -0
- package/src/styles/ui/page-nav.scss +63 -0
- package/src/styles/ui/reset.scss +111 -0
- package/src/styles/ui/scrollbar.scss +39 -0
- package/src/styles/ui/search.scss +164 -0
- package/src/styles/ui/sidebar.scss +229 -0
- package/src/styles/ui/squircle.scss +60 -0
- package/src/styles/ui/table.scss +97 -0
- package/src/styles/ui/theme.scss +132 -0
- package/src/styles/ui/toast.scss +587 -0
- package/src/styles/ui/toc.scss +128 -0
- package/src/styles/ui/typography.scss +21 -0
- package/src/styles/ui/ui.scss +33 -0
- package/src/ui/Ui/Badge.elm +51 -0
- package/src/ui/Ui/Banner.elm +97 -0
- package/src/ui/Ui/Burger.elm +259 -0
- package/src/ui/Ui/Button.elm +261 -0
- package/src/ui/Ui/Card.elm +32 -0
- package/src/ui/Ui/Cards.elm +15 -0
- package/src/ui/Ui/ChoiceGroup.elm +62 -0
- package/src/ui/Ui/CopyButton.elm +139 -0
- package/src/ui/Ui/Divider.elm +16 -0
- package/src/ui/Ui/Dropdown.elm +600 -0
- package/src/ui/Ui/Empty.elm +41 -0
- package/src/ui/Ui/ErrorBubble.elm +34 -0
- package/src/ui/Ui/Field.elm +45 -0
- package/src/ui/Ui/FormStatus.elm +32 -0
- package/src/ui/Ui/Icon.elm +381 -0
- package/src/ui/Ui/InlineForm.elm +51 -0
- package/src/ui/Ui/Input.elm +113 -0
- package/src/ui/Ui/KeyValue.elm +25 -0
- package/src/ui/Ui/ListRow.elm +67 -0
- package/src/ui/Ui/Loader.elm +32 -0
- package/src/ui/Ui/Logo/Charm.elm +21 -0
- package/src/ui/Ui/Logo/CharmMark.elm +32 -0
- package/src/ui/Ui/Logo/CharmSticker.elm +35 -0
- package/src/ui/Ui/Logo/Discord.elm +26 -0
- package/src/ui/Ui/Logo/GitHub.elm +21 -0
- package/src/ui/Ui/Logo/Google.elm +21 -0
- package/src/ui/Ui/Logo/Hexy.elm +29 -0
- package/src/ui/Ui/Logo/Hyper.elm +42 -0
- package/src/ui/Ui/Logo/Integration.elm +117 -0
- package/src/ui/Ui/Logo/Prism.elm +35 -0
- package/src/ui/Ui/Logos.elm +115 -0
- package/src/ui/Ui/Menu.elm +348 -0
- package/src/ui/Ui/Meter.elm +132 -0
- package/src/ui/Ui/Modal.elm +247 -0
- package/src/ui/Ui/Motion.elm +32 -0
- package/src/ui/Ui/NumberBox.elm +86 -0
- package/src/ui/Ui/OAuthButton.elm +39 -0
- package/src/ui/Ui/PageNav.elm +65 -0
- package/src/ui/Ui/Pager.elm +49 -0
- package/src/ui/Ui/Search.elm +396 -0
- package/src/ui/Ui/SearchBox.elm +78 -0
- package/src/ui/Ui/Section.elm +21 -0
- package/src/ui/Ui/Sidebar.elm +239 -0
- package/src/ui/Ui/Stat.elm +29 -0
- package/src/ui/Ui/Switch.elm +34 -0
- package/src/ui/Ui/Table.elm +89 -0
- package/src/ui/Ui/Tabs.elm +280 -0
- package/src/ui/Ui/ToC.elm +120 -0
- package/src/ui/Ui/Toast.elm +1145 -0
- package/src/ui/Ui/Toolbar.elm +31 -0
- package/src/ui/Ui/TwoStepConfirm.elm +159 -0
- package/src/ui/Ui/Typography.elm +33 -0
|
@@ -0,0 +1,545 @@
|
|
|
1
|
+
@use "charmtone";
|
|
2
|
+
@use "controls" as *;
|
|
3
|
+
@use "sass:color";
|
|
4
|
+
|
|
5
|
+
.modal-overlay {
|
|
6
|
+
position: fixed;
|
|
7
|
+
inset: 0;
|
|
8
|
+
z-index: 200;
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
padding: 1rem;
|
|
13
|
+
// A dialog taller than the window (a long form on a short phone)
|
|
14
|
+
// scrolls inside the overlay instead of losing its action row
|
|
15
|
+
// off-screen. Its auto margins do the centering, which, unlike
|
|
16
|
+
// align-items, gives way to the top edge when there is no room.
|
|
17
|
+
overflow-y: auto;
|
|
18
|
+
overscroll-behavior: contain;
|
|
19
|
+
|
|
20
|
+
> .modal {
|
|
21
|
+
margin: auto;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// Dismissal: the whole overlay fades as one and the dialog drifts back
|
|
25
|
+
// down a step — the entry in reverse. A host keeps the modal mounted
|
|
26
|
+
// for the 150ms this runs (`dismiss` sleeps that long before
|
|
27
|
+
// unmounting), so this duration and that timer move together.
|
|
28
|
+
&.closing {
|
|
29
|
+
animation: modal-fade-out 150ms ease forwards;
|
|
30
|
+
|
|
31
|
+
.modal {
|
|
32
|
+
animation: modal-pop-out 150ms ease forwards;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// Fixed rather than absolute so it keeps covering the window while a
|
|
38
|
+
// tall dialog scrolls the overlay.
|
|
39
|
+
.modal-backdrop {
|
|
40
|
+
position: fixed;
|
|
41
|
+
inset: 0;
|
|
42
|
+
background: rgba(charmtone.$pepper, 0.92);
|
|
43
|
+
backdrop-filter: blur(0.5rem);
|
|
44
|
+
-webkit-backdrop-filter: blur(0.5rem);
|
|
45
|
+
animation: modal-fade 150ms ease;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// A dialog is a module lifted off the page: the page's own surface behind
|
|
49
|
+
// a frame hairline, over the dimmed backdrop. Nothing inside it is
|
|
50
|
+
// dialog-colored — the shared controls (fields, the segmented switcher,
|
|
51
|
+
// the buttons) keep their page styling — and the backdrop is what
|
|
52
|
+
// separates the dialog from what it covers.
|
|
53
|
+
.modal {
|
|
54
|
+
position: relative;
|
|
55
|
+
width: 100%;
|
|
56
|
+
max-width: 28rem;
|
|
57
|
+
background: var(--bg);
|
|
58
|
+
color: var(--fg);
|
|
59
|
+
border: 1px solid var(--frame);
|
|
60
|
+
border-radius: calc(0.75rem * var(--squircle-scale, 1));
|
|
61
|
+
box-shadow: 0 0.75rem 2.5rem rgba(0, 0, 0, 0.35);
|
|
62
|
+
padding: 1.5rem;
|
|
63
|
+
animation: modal-pop 175ms cubic-bezier(0.2, 0.9, 0.3, 1.2);
|
|
64
|
+
|
|
65
|
+
@media (max-width: 768px) {
|
|
66
|
+
padding: 1rem;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// The dialog's fields are block-level, unlike the page's, which sit in
|
|
70
|
+
// a .field's flex column and stretch to its width. Listed by type so
|
|
71
|
+
// the switch, which is a checkbox, keeps its own track.
|
|
72
|
+
input[type="text"],
|
|
73
|
+
input[type="email"],
|
|
74
|
+
input[type="password"],
|
|
75
|
+
input[type="number"],
|
|
76
|
+
input[type="date"],
|
|
77
|
+
input[type="url"],
|
|
78
|
+
textarea {
|
|
79
|
+
width: 100%;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
h2 {
|
|
83
|
+
@include display-type(1.25rem);
|
|
84
|
+
font-weight: 620;
|
|
85
|
+
margin: 0 0 1rem;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// A heading long enough to reach the right edge would run under the
|
|
89
|
+
// close chip, so it yields the corner the chip holds.
|
|
90
|
+
&:has(> .close) > h2 {
|
|
91
|
+
padding-inline-end: 2rem;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// The dismiss chip: a small X in the dialog's top corner, the one
|
|
95
|
+
// affordance every non-blocking dialog shares. It sits in the padding
|
|
96
|
+
// so it never displaces the content below. Its fill is the page's
|
|
97
|
+
// recessed well, a step off the dialog's surface; the hover moves it
|
|
98
|
+
// one rung further, to the frame.
|
|
99
|
+
> .close {
|
|
100
|
+
position: absolute;
|
|
101
|
+
top: 0.75rem;
|
|
102
|
+
right: 0.75rem;
|
|
103
|
+
z-index: 1;
|
|
104
|
+
display: inline-flex;
|
|
105
|
+
align-items: center;
|
|
106
|
+
justify-content: center;
|
|
107
|
+
width: 2rem;
|
|
108
|
+
height: 2rem;
|
|
109
|
+
padding: 0;
|
|
110
|
+
border: none;
|
|
111
|
+
border-radius: calc(0.5rem * var(--squircle-scale, 1));
|
|
112
|
+
background: var(--well);
|
|
113
|
+
color: var(--muted);
|
|
114
|
+
cursor: pointer;
|
|
115
|
+
transition:
|
|
116
|
+
background 125ms ease,
|
|
117
|
+
color 125ms ease;
|
|
118
|
+
|
|
119
|
+
&:hover {
|
|
120
|
+
background: var(--frame);
|
|
121
|
+
color: var(--fg);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&:focus-visible {
|
|
125
|
+
@include control-focus-flat;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&:disabled {
|
|
129
|
+
opacity: 0.4;
|
|
130
|
+
cursor: default;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.close-icon {
|
|
134
|
+
width: 0.875rem;
|
|
135
|
+
height: 0.875rem;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
fieldset {
|
|
140
|
+
margin-bottom: 1rem;
|
|
141
|
+
|
|
142
|
+
legend {
|
|
143
|
+
display: block;
|
|
144
|
+
font-size: 0.8125rem;
|
|
145
|
+
font-weight: 620;
|
|
146
|
+
margin-bottom: 0.35rem;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.hint {
|
|
150
|
+
margin: 0.35rem 0 0;
|
|
151
|
+
font-size: 0.8125rem;
|
|
152
|
+
color: var(--muted);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
// The segmented switcher inside a dialog is the shared Tabs control in
|
|
157
|
+
// its dialog layout: full width with equal segments, since the
|
|
158
|
+
// dialog's fields stack there rather than sitting in a toolbar. Its
|
|
159
|
+
// colors are the page's — the dialog's surface is the page's, so the
|
|
160
|
+
// track's well and the active charple segment need no re-basing.
|
|
161
|
+
.tabs.dialog {
|
|
162
|
+
display: flex;
|
|
163
|
+
flex-wrap: wrap;
|
|
164
|
+
width: 100%;
|
|
165
|
+
|
|
166
|
+
button {
|
|
167
|
+
flex: 1 1 auto;
|
|
168
|
+
// The catalog's own inline padding is a density knob (that is all
|
|
169
|
+
// .tabs.compact changes); four labels need a little less of it to
|
|
170
|
+
// sit on one row in a 28rem dialog.
|
|
171
|
+
padding-inline: 1rem;
|
|
172
|
+
|
|
173
|
+
// Below this the four labels no longer fit one row, so they break
|
|
174
|
+
// into two of two and the track grows to hold them: the catalog's
|
|
175
|
+
// height is fixed, sized for a single row. The track's gaps (not
|
|
176
|
+
// hairlines) keep the wrapped rows reading as one control.
|
|
177
|
+
@media (max-width: 768px) {
|
|
178
|
+
flex: 1 1 calc(50% - 0.25rem);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
@media (max-width: 768px) {
|
|
183
|
+
height: auto;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.error {
|
|
188
|
+
margin: 0 0 1rem;
|
|
189
|
+
color: var(--danger);
|
|
190
|
+
font-size: 0.875rem;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.sent {
|
|
194
|
+
margin: 0 0 1rem;
|
|
195
|
+
color: var(--ok);
|
|
196
|
+
font-size: 0.875rem;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
// Per-email outcomes of an invite send, shown inside the invite dialog.
|
|
200
|
+
.invite-results {
|
|
201
|
+
list-style: none;
|
|
202
|
+
margin: 0 0 1rem;
|
|
203
|
+
padding: 0;
|
|
204
|
+
display: flex;
|
|
205
|
+
flex-direction: column;
|
|
206
|
+
gap: 0.35rem;
|
|
207
|
+
|
|
208
|
+
li {
|
|
209
|
+
display: flex;
|
|
210
|
+
align-items: baseline;
|
|
211
|
+
gap: 0.6rem;
|
|
212
|
+
font-size: 0.875rem;
|
|
213
|
+
|
|
214
|
+
.mark {
|
|
215
|
+
font-weight: 720;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.email {
|
|
219
|
+
font-weight: 550;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.outcome {
|
|
223
|
+
color: var(--muted);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
&.ok .mark {
|
|
227
|
+
color: var(--ok);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
&.failed .mark,
|
|
231
|
+
&.failed .outcome {
|
|
232
|
+
color: var(--danger);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.message {
|
|
238
|
+
margin: 0 0 0.5rem;
|
|
239
|
+
font-size: 0.95rem;
|
|
240
|
+
font-weight: 500;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
button.secondary,
|
|
244
|
+
a.secondary {
|
|
245
|
+
color: var(--fg);
|
|
246
|
+
border-color: var(--frame);
|
|
247
|
+
|
|
248
|
+
// Dialog surfaces keep the fixed accent palette in both themes, so
|
|
249
|
+
// the forms layer's light-theme hover (charple text) must not win
|
|
250
|
+
// here. The attribute-qualified selector out-ranks that rule.
|
|
251
|
+
&:hover,
|
|
252
|
+
:root[data-theme="light"] &:hover {
|
|
253
|
+
border-color: charmtone.$blush;
|
|
254
|
+
color: charmtone.$blush;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
// The action row: the buttons held to the right at their natural width
|
|
259
|
+
// rather than stretched across the dialog, and set a step further off
|
|
260
|
+
// the content than the form's own rhythm so the commit reads as
|
|
261
|
+
// separate from what it acts on.
|
|
262
|
+
footer {
|
|
263
|
+
display: flex;
|
|
264
|
+
gap: 0.75rem;
|
|
265
|
+
justify-content: flex-end;
|
|
266
|
+
margin-top: 2rem;
|
|
267
|
+
padding: 0;
|
|
268
|
+
|
|
269
|
+
// Actions split the footer's width evenly, whether they are buttons
|
|
270
|
+
// or a link wearing the primary style: a gate can hand off to
|
|
271
|
+
// another page, so its confirm may be an anchor.
|
|
272
|
+
button,
|
|
273
|
+
a {
|
|
274
|
+
flex: 0 0 auto;
|
|
275
|
+
white-space: nowrap;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
// The consent gate's settings action is a link wearing the primary
|
|
279
|
+
// style, so the rule covers anchors too.
|
|
280
|
+
button.primary,
|
|
281
|
+
a.primary {
|
|
282
|
+
background: charmtone.$dolly;
|
|
283
|
+
color: charmtone.$salt;
|
|
284
|
+
|
|
285
|
+
&:hover {
|
|
286
|
+
background: color.adjust(charmtone.$dolly, $lightness: -8%);
|
|
287
|
+
color: charmtone.$pepper;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
button.ghost,
|
|
292
|
+
a.ghost {
|
|
293
|
+
color: var(--fg);
|
|
294
|
+
|
|
295
|
+
&:hover {
|
|
296
|
+
background: rgba(charmtone.$julep, 0.16);
|
|
297
|
+
color: charmtone.$julep;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
// The no-wrap actions can't shrink far, so on a phone the
|
|
302
|
+
// right-aligned row overflows the dialog's left edge; stack them
|
|
303
|
+
// full-width instead.
|
|
304
|
+
@media (max-width: 768px) {
|
|
305
|
+
flex-direction: column;
|
|
306
|
+
|
|
307
|
+
button,
|
|
308
|
+
a {
|
|
309
|
+
flex: 1 1 auto;
|
|
310
|
+
width: 100%;
|
|
311
|
+
text-align: center;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
// The withdraw-consent dialog's buttons carry plan names, too long for
|
|
317
|
+
// the shared nowrap split — let them wrap rather than overflow the
|
|
318
|
+
// dialog.
|
|
319
|
+
&.withdraw-consent footer button {
|
|
320
|
+
white-space: normal;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
// The consent gate carries three actions, one of them a link, with
|
|
324
|
+
// longer labels than the shared 28rem split fits on one line: a wider
|
|
325
|
+
// dialog, the anchor in on the footer's split, and buttons that grow
|
|
326
|
+
// past the fixed control height so a wrapped label stays inside its
|
|
327
|
+
// box.
|
|
328
|
+
&.consent-gate {
|
|
329
|
+
max-width: 36rem;
|
|
330
|
+
|
|
331
|
+
footer {
|
|
332
|
+
a,
|
|
333
|
+
button {
|
|
334
|
+
flex: 1;
|
|
335
|
+
height: auto;
|
|
336
|
+
min-height: $control-height;
|
|
337
|
+
padding-block: 0.5rem;
|
|
338
|
+
white-space: normal;
|
|
339
|
+
text-align: center;
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
// The key-page dialogs share one treatment on top of the base dialog:
|
|
345
|
+
// the larger headline.
|
|
346
|
+
&.create,
|
|
347
|
+
&.revoke,
|
|
348
|
+
&.revoke-device,
|
|
349
|
+
&.reveal {
|
|
350
|
+
h2 {
|
|
351
|
+
@include display-type(2rem);
|
|
352
|
+
margin-bottom: 1.5rem;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
@media (max-width: 768px) {
|
|
356
|
+
padding-top: 1.5rem;
|
|
357
|
+
|
|
358
|
+
// The surface is tight on a phone, so the header keeps a smaller
|
|
359
|
+
// gap than on desktop.
|
|
360
|
+
h2 {
|
|
361
|
+
margin-bottom: 0.75rem;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
&.reveal {
|
|
367
|
+
// Wider than the other dialogs so a freshly minted key fits on one
|
|
368
|
+
// line beside the in-box copy button.
|
|
369
|
+
max-width: 34rem;
|
|
370
|
+
|
|
371
|
+
.reveal-warn {
|
|
372
|
+
margin: 0 0 1rem;
|
|
373
|
+
font-size: 0.875rem;
|
|
374
|
+
line-height: 1.3;
|
|
375
|
+
|
|
376
|
+
.key-name {
|
|
377
|
+
font-weight: 700;
|
|
378
|
+
font-style: normal;
|
|
379
|
+
color: charmtone.$julep;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.reveal-token {
|
|
384
|
+
position: relative;
|
|
385
|
+
display: flex;
|
|
386
|
+
align-items: center;
|
|
387
|
+
|
|
388
|
+
code {
|
|
389
|
+
flex: 1;
|
|
390
|
+
// Right padding reserves room for the in-box copy button.
|
|
391
|
+
padding: 0.6rem 2.6rem 0.6rem 0.75rem;
|
|
392
|
+
// The recessed well and a frame hairline: the one-time token
|
|
393
|
+
// reads as a value, the way a field does, rather than as copy.
|
|
394
|
+
border: 1px solid var(--frame);
|
|
395
|
+
border-radius: calc(0.5rem * var(--squircle-scale, 1));
|
|
396
|
+
background: var(--well);
|
|
397
|
+
color: var(--fg);
|
|
398
|
+
font-family: $mono;
|
|
399
|
+
font-weight: 500;
|
|
400
|
+
font-size: 0.875rem;
|
|
401
|
+
line-height: 1.4;
|
|
402
|
+
word-break: break-all;
|
|
403
|
+
// A single click grabs the whole key rather than placing a caret.
|
|
404
|
+
user-select: all;
|
|
405
|
+
-webkit-user-select: all;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
// A bare icon inside the token's right end: no box, no hover
|
|
409
|
+
// state, the click feedback being the glyph swap alone.
|
|
410
|
+
button {
|
|
411
|
+
position: absolute;
|
|
412
|
+
top: 50%;
|
|
413
|
+
right: 0.4rem;
|
|
414
|
+
translate: 0 -50%;
|
|
415
|
+
display: inline-flex;
|
|
416
|
+
align-items: center;
|
|
417
|
+
justify-content: center;
|
|
418
|
+
padding: 0.3rem;
|
|
419
|
+
border: none;
|
|
420
|
+
border-radius: calc(0.35rem * var(--squircle-scale, 1));
|
|
421
|
+
background: transparent;
|
|
422
|
+
color: var(--tertiary);
|
|
423
|
+
cursor: pointer;
|
|
424
|
+
transition: color 125ms ease;
|
|
425
|
+
|
|
426
|
+
&.done {
|
|
427
|
+
color: var(--ok);
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.copy-icon,
|
|
431
|
+
.check-icon {
|
|
432
|
+
width: 1.1rem;
|
|
433
|
+
height: 1.1rem;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
&.revoke p {
|
|
440
|
+
margin: 0;
|
|
441
|
+
font-size: 0.9375rem;
|
|
442
|
+
line-height: 1.3;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
// Confirm dialog pattern from the catalog: a short question and one
|
|
446
|
+
// line of consequence above the action row.
|
|
447
|
+
&.confirm {
|
|
448
|
+
p {
|
|
449
|
+
margin: 0 0 0.5rem;
|
|
450
|
+
font-size: 0.9375rem;
|
|
451
|
+
line-height: 1.35;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
// The required model-training consent checkbox on downgrades to
|
|
455
|
+
// non-ZDR plans: a plain checkbox beside its label, not a switch.
|
|
456
|
+
.training-consent {
|
|
457
|
+
display: flex;
|
|
458
|
+
align-items: flex-start;
|
|
459
|
+
gap: 0.5rem;
|
|
460
|
+
margin: 1rem 0 0;
|
|
461
|
+
font-size: 0.8125rem;
|
|
462
|
+
cursor: pointer;
|
|
463
|
+
|
|
464
|
+
input[type="checkbox"] {
|
|
465
|
+
margin-top: 0.15rem;
|
|
466
|
+
accent-color: charmtone.$blush;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
// Wider dialogs that carry rows and a form rather than a sentence.
|
|
472
|
+
&.buy {
|
|
473
|
+
max-width: 30rem;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
&.confirm.topup-modal {
|
|
477
|
+
max-width: 34rem;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
// The plan-cancellation dialog: the action row leads with the
|
|
481
|
+
// destructive action on the left, unlike every other dialog's
|
|
482
|
+
// right-held cancel-then-confirm.
|
|
483
|
+
&.plan-cancel {
|
|
484
|
+
// Wider than the default dialog: the footer's no-wrap pair ("Keep
|
|
485
|
+
// <plan name>" and "Switch to pay as you go") needs about 26rem of
|
|
486
|
+
// content width, and the 28rem dialog leaves only 25 after padding,
|
|
487
|
+
// so the right-held row used to overflow its left edge.
|
|
488
|
+
max-width: 32rem;
|
|
489
|
+
|
|
490
|
+
footer {
|
|
491
|
+
justify-content: flex-start;
|
|
492
|
+
margin-top: 1rem;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
> .muted {
|
|
496
|
+
margin: 0;
|
|
497
|
+
padding-top: 1.5rem;
|
|
498
|
+
font-size: 0.8125rem;
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
@keyframes modal-fade {
|
|
504
|
+
from {
|
|
505
|
+
opacity: 0;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
to {
|
|
509
|
+
opacity: 1;
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
@keyframes modal-pop {
|
|
514
|
+
from {
|
|
515
|
+
opacity: 0;
|
|
516
|
+
transform: translateY(0.5rem) scale(0.97);
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
to {
|
|
520
|
+
opacity: 1;
|
|
521
|
+
transform: translateY(0) scale(1);
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
@keyframes modal-fade-out {
|
|
526
|
+
from {
|
|
527
|
+
opacity: 1;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
to {
|
|
531
|
+
opacity: 0;
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
@keyframes modal-pop-out {
|
|
536
|
+
from {
|
|
537
|
+
opacity: 1;
|
|
538
|
+
transform: translateY(0) scale(1);
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
to {
|
|
542
|
+
opacity: 0;
|
|
543
|
+
transform: translateY(0.5rem) scale(0.97);
|
|
544
|
+
}
|
|
545
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
@use "charmtone";
|
|
2
|
+
@use "controls" as *;
|
|
3
|
+
|
|
4
|
+
// The auth flows' shared pieces: the social sign-in buttons and the
|
|
5
|
+
// "or" divider.
|
|
6
|
+
|
|
7
|
+
a.social {
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
gap: 0.6rem;
|
|
12
|
+
padding: 0.6rem 1.5rem;
|
|
13
|
+
border: $control-border solid transparent;
|
|
14
|
+
border-radius: calc(#{$control-radius} * var(--squircle-scale, 1));
|
|
15
|
+
background: transparent;
|
|
16
|
+
color: var(--fg);
|
|
17
|
+
border-color: var(--frame);
|
|
18
|
+
font-size: 1rem;
|
|
19
|
+
font-weight: 620;
|
|
20
|
+
text-decoration: none;
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
user-select: none;
|
|
23
|
+
|
|
24
|
+
svg {
|
|
25
|
+
width: 1.125rem;
|
|
26
|
+
height: 1.125rem;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&.disabled {
|
|
30
|
+
opacity: 0.5;
|
|
31
|
+
cursor: not-allowed;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.divider {
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
gap: 0.75rem;
|
|
39
|
+
color: var(--muted);
|
|
40
|
+
font-size: 0.8125rem;
|
|
41
|
+
font-weight: 550;
|
|
42
|
+
|
|
43
|
+
&::before,
|
|
44
|
+
&::after {
|
|
45
|
+
content: "";
|
|
46
|
+
flex: 1;
|
|
47
|
+
height: 1px;
|
|
48
|
+
background: var(--frame);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
@use "charmtone";
|
|
2
|
+
@use "controls" as *;
|
|
3
|
+
|
|
4
|
+
// The page's prev/next rail: two cards at the foot of a docs page,
|
|
5
|
+
// each carrying the neighbour's title and a one-line hint of its
|
|
6
|
+
// description (the line truncates; pass full copy and let the rail
|
|
7
|
+
// keep it to a taste).
|
|
8
|
+
|
|
9
|
+
.page-nav {
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: space-between;
|
|
12
|
+
gap: 1rem;
|
|
13
|
+
margin-top: 2.5rem;
|
|
14
|
+
padding-top: 1.5rem;
|
|
15
|
+
border-top: 1px solid var(--rule);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.page-nav-link {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
gap: 0.25rem;
|
|
22
|
+
max-width: 45%;
|
|
23
|
+
min-width: 0;
|
|
24
|
+
padding: 0.75rem 1rem;
|
|
25
|
+
border: 1px solid var(--frame);
|
|
26
|
+
border-radius: calc(0.75rem * var(--squircle-scale, 1));
|
|
27
|
+
text-decoration: none;
|
|
28
|
+
transition: border-color 125ms ease;
|
|
29
|
+
|
|
30
|
+
.page-nav-dir {
|
|
31
|
+
font-size: 0.6875rem;
|
|
32
|
+
font-weight: 620;
|
|
33
|
+
letter-spacing: 0.08em;
|
|
34
|
+
color: var(--tertiary);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.page-nav-title {
|
|
38
|
+
color: var(--fg);
|
|
39
|
+
font-weight: 600;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.page-nav-desc {
|
|
43
|
+
color: var(--muted);
|
|
44
|
+
font-size: 0.8125rem;
|
|
45
|
+
line-height: 1.45;
|
|
46
|
+
white-space: nowrap;
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
text-overflow: ellipsis;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&:hover {
|
|
52
|
+
border-color: charmtone.$blush;
|
|
53
|
+
|
|
54
|
+
.page-nav-title {
|
|
55
|
+
color: charmtone.$blush;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&.next {
|
|
60
|
+
margin-left: auto;
|
|
61
|
+
text-align: right;
|
|
62
|
+
}
|
|
63
|
+
}
|