@charmland/gem 0.0.0-stage → 0.1.1
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 +13815 -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 +1268 -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 +957 -0
- package/src/browser/theme.d.ts +1 -0
- package/src/core/Gem/Node.elm +219 -0
- package/src/core/Gem/Page.elm +560 -0
- package/src/core/Gem/Render.elm +510 -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,1083 @@
|
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
@use "./fonts";
|
|
3
|
+
@use "./ui/ui";
|
|
4
|
+
@use "./ui/charmtone";
|
|
5
|
+
@use "./ui/controls" as *;
|
|
6
|
+
|
|
7
|
+
// The docs chrome: shell, header, sidebar, content column, ToC rail and
|
|
8
|
+
// the markdown rhythm. Ported from the kit's own docs site, so the layout
|
|
9
|
+
// is the one the component library was designed against. Component
|
|
10
|
+
// styling comes from the library manifest; this file draws the frame.
|
|
11
|
+
|
|
12
|
+
// Gem's additions live in ./gem.scss and load after this file.
|
|
13
|
+
|
|
14
|
+
// The shell: the whole docs site constrained to max-w-7xl and
|
|
15
|
+
// centered; the navbar and the content column both span it. Its
|
|
16
|
+
// hairlines run the full viewport height — down the left of the
|
|
17
|
+
// sidebar and down the right of the ToC, the navbar included.
|
|
18
|
+
.shell {
|
|
19
|
+
max-width: 88rem;
|
|
20
|
+
min-height: 100vh;
|
|
21
|
+
margin-inline: auto;
|
|
22
|
+
border-left: 1px solid var(--frame);
|
|
23
|
+
border-right: 1px solid var(--frame);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// The bar's height is the rail's sticky offset: they have to agree, or the
|
|
27
|
+
// rail hangs below the header and its hairline starts in the wrong place.
|
|
28
|
+
// One value, used by the bar, the rail and the layout's min-height.
|
|
29
|
+
$header-height: 3.8125rem;
|
|
30
|
+
|
|
31
|
+
.docs {
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: stretch;
|
|
34
|
+
min-height: calc(100vh - #{$header-height});
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.docs-sidebar {
|
|
38
|
+
position: sticky;
|
|
39
|
+
top: $header-height;
|
|
40
|
+
height: calc(100vh - #{$header-height});
|
|
41
|
+
border-right: 1px solid var(--frame);
|
|
42
|
+
|
|
43
|
+
.sidebar {
|
|
44
|
+
height: 100%;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// The content column: the sidebar and the ToC rail separate it from
|
|
49
|
+
// their own columns; the pages inside carry the padding.
|
|
50
|
+
.docs-main {
|
|
51
|
+
flex: 1;
|
|
52
|
+
min-width: 0;
|
|
53
|
+
display: flex;
|
|
54
|
+
flex-direction: column;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.docs-content {
|
|
58
|
+
padding: 3rem 5rem;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.docs-header {
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
gap: 1.5rem;
|
|
65
|
+
min-height: $header-height;
|
|
66
|
+
padding: 0.75rem 1.5rem;
|
|
67
|
+
border-bottom: 1px solid var(--frame);
|
|
68
|
+
position: sticky;
|
|
69
|
+
top: 0;
|
|
70
|
+
background: var(--bg);
|
|
71
|
+
z-index: 30;
|
|
72
|
+
transition: transform 180ms ease;
|
|
73
|
+
|
|
74
|
+
.docs-header-title {
|
|
75
|
+
display: inline-flex;
|
|
76
|
+
align-items: center;
|
|
77
|
+
gap: 0.45rem;
|
|
78
|
+
font-family: "Hypography Web", "Charmform Web", system-ui, sans-serif;
|
|
79
|
+
font-size: 1.35rem;
|
|
80
|
+
color: var(--fg);
|
|
81
|
+
text-decoration: none;
|
|
82
|
+
flex-shrink: 0;
|
|
83
|
+
|
|
84
|
+
// The wordmark wears the house pink, same as the footer's.
|
|
85
|
+
span {
|
|
86
|
+
color: charmtone.$blush;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.sprout-mark {
|
|
90
|
+
// Sits a touch high so the leaves read level with the x-height.
|
|
91
|
+
margin-top: -0.1rem;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.site-logo {
|
|
95
|
+
display: block;
|
|
96
|
+
width: auto;
|
|
97
|
+
height: 2rem;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// The search trigger: a ghost chip whose glyph is the whole label.
|
|
102
|
+
.docs-search-toggle {
|
|
103
|
+
display: inline-flex;
|
|
104
|
+
align-items: center;
|
|
105
|
+
justify-content: center;
|
|
106
|
+
padding-inline: 0.55rem;
|
|
107
|
+
|
|
108
|
+
svg {
|
|
109
|
+
width: 1.15rem;
|
|
110
|
+
height: 1.15rem;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.docs-header-end {
|
|
115
|
+
display: flex;
|
|
116
|
+
align-items: center;
|
|
117
|
+
gap: 0.75rem;
|
|
118
|
+
flex-shrink: 0;
|
|
119
|
+
// Brand left, every control right: actions, search, collections and
|
|
120
|
+
// theme tabs share the end of the bar.
|
|
121
|
+
margin-left: auto;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.docs-page {
|
|
126
|
+
position: relative;
|
|
127
|
+
max-width: 60rem;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// The narrow layout is the one that hides the header on scroll: the ToC
|
|
131
|
+
// band then owns the top edge, so something useful stays pinned. A wide
|
|
132
|
+
// screen keeps its header, and its ToC rail is off to the side.
|
|
133
|
+
@media (max-width: 1024px) {
|
|
134
|
+
.docs-header.is-hidden {
|
|
135
|
+
transform: translateY(-100%);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// With the bar gone the ToC band moves up to the viewport edge, so the
|
|
139
|
+
// section index is the only thing pinned.
|
|
140
|
+
.shell:has(.docs-header.is-hidden) .docs-toc {
|
|
141
|
+
top: 0;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
// Between the phone and wide layouts the rail is still on screen, so
|
|
145
|
+
// it follows the bar up too, or it would hang a header's height below
|
|
146
|
+
// the viewport edge with an empty strip above it. Same timing as the
|
|
147
|
+
// bar's slide, so the two move as one.
|
|
148
|
+
.docs-sidebar {
|
|
149
|
+
transition:
|
|
150
|
+
top 180ms ease,
|
|
151
|
+
height 180ms ease;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.shell:has(.docs-header.is-hidden) .docs-sidebar {
|
|
155
|
+
top: 0;
|
|
156
|
+
height: 100vh;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.docs-lede {
|
|
161
|
+
margin: 0 0 1rem;
|
|
162
|
+
max-width: 40rem;
|
|
163
|
+
color: var(--muted);
|
|
164
|
+
line-height: 1.5;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.page-actions {
|
|
168
|
+
display: flex;
|
|
169
|
+
flex-wrap: wrap;
|
|
170
|
+
align-items: center;
|
|
171
|
+
gap: 0.5rem;
|
|
172
|
+
margin: 0 0 1.75rem;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
// Wide screens put the actions on the title's own line, pinned to the end
|
|
176
|
+
// of it. The head reserves the space so a long title never runs under them;
|
|
177
|
+
// the narrow layout keeps the static row beneath the description.
|
|
178
|
+
@media (min-width: 769px) {
|
|
179
|
+
.page-actions {
|
|
180
|
+
position: absolute;
|
|
181
|
+
top: 0.35rem;
|
|
182
|
+
right: 0;
|
|
183
|
+
margin: 0;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.toolbar-head {
|
|
187
|
+
padding-right: 12rem;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
// The page's tail: the EOF band and the source link, either of which can
|
|
192
|
+
// be absent. It sits right after the last block and before the prev/next
|
|
193
|
+
// rail, so the reading ends before the navigation starts.
|
|
194
|
+
.docs-tail {
|
|
195
|
+
display: flex;
|
|
196
|
+
flex-direction: column;
|
|
197
|
+
align-items: flex-start;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
// The source link, shown only when `[site] edit_url` names a repository.
|
|
201
|
+
.docs-edit {
|
|
202
|
+
display: inline-flex;
|
|
203
|
+
align-items: center;
|
|
204
|
+
gap: 0.4rem;
|
|
205
|
+
margin: 0 0 2rem;
|
|
206
|
+
font-size: 0.8125rem;
|
|
207
|
+
color: var(--muted);
|
|
208
|
+
text-decoration: none;
|
|
209
|
+
|
|
210
|
+
svg {
|
|
211
|
+
width: 0.9rem;
|
|
212
|
+
height: 0.9rem;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
&:hover {
|
|
216
|
+
color: var(--fg);
|
|
217
|
+
text-decoration: underline;
|
|
218
|
+
text-underline-offset: 0.18em;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
// The end of the page, when `[footer] eof` is on: the command that prints
|
|
223
|
+
// this post in a terminal, then the EOF mark that signs off. No rule: the
|
|
224
|
+
// gap alone terminates the page, the way a blank tail does in a terminal.
|
|
225
|
+
.docs-eof {
|
|
226
|
+
display: flex;
|
|
227
|
+
flex-direction: column;
|
|
228
|
+
gap: 2.6rem;
|
|
229
|
+
margin: 3.5rem 0 2.5rem;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.docs-eof-mark {
|
|
233
|
+
display: block;
|
|
234
|
+
font-family: "Fraktion Mono Web", ui-monospace, monospace;
|
|
235
|
+
font-size: 0.875rem;
|
|
236
|
+
font-weight: 640;
|
|
237
|
+
letter-spacing: 0.16em;
|
|
238
|
+
color: var(--fg);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.docs-eof-term {
|
|
242
|
+
display: flex;
|
|
243
|
+
flex-wrap: wrap;
|
|
244
|
+
align-items: center;
|
|
245
|
+
gap: 0.4rem;
|
|
246
|
+
margin: 0;
|
|
247
|
+
font-size: 0.9375rem;
|
|
248
|
+
color: var(--muted);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.docs-eof-tool {
|
|
252
|
+
// The mode's own success ink: julep in the dark set, guac in the light
|
|
253
|
+
// one, so the word stays legible on both pages.
|
|
254
|
+
color: var(--ok);
|
|
255
|
+
font-weight: 680;
|
|
256
|
+
text-decoration: none;
|
|
257
|
+
|
|
258
|
+
&:hover {
|
|
259
|
+
text-decoration: underline;
|
|
260
|
+
text-underline-offset: 0.18em;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.docs-eof-cmd {
|
|
265
|
+
padding: 0.2rem 0.55rem;
|
|
266
|
+
border-radius: calc(0.4rem * var(--squircle-scale, 1));
|
|
267
|
+
background: var(--well);
|
|
268
|
+
color: var(--fg);
|
|
269
|
+
font-family: "Fraktion Mono Web", ui-monospace, monospace;
|
|
270
|
+
font-size: 0.8125rem;
|
|
271
|
+
overflow-wrap: anywhere;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.docs-eof-copy {
|
|
275
|
+
display: inline-flex;
|
|
276
|
+
padding: 0.2rem;
|
|
277
|
+
border: 0;
|
|
278
|
+
background: none;
|
|
279
|
+
color: var(--muted);
|
|
280
|
+
cursor: pointer;
|
|
281
|
+
|
|
282
|
+
svg {
|
|
283
|
+
width: 1rem;
|
|
284
|
+
height: 1rem;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
&:hover {
|
|
288
|
+
color: var(--fg);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
// Demo blocks: label, blurb, live demo, code.
|
|
293
|
+
.docs-page section {
|
|
294
|
+
padding-bottom: 2rem;
|
|
295
|
+
margin-bottom: 2rem;
|
|
296
|
+
border-bottom: 1px solid var(--rule);
|
|
297
|
+
|
|
298
|
+
&:last-child {
|
|
299
|
+
border-bottom: none;
|
|
300
|
+
margin-bottom: 0;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
> .muted {
|
|
304
|
+
margin: 0.35rem 0 1.25rem;
|
|
305
|
+
max-width: 40rem;
|
|
306
|
+
line-height: 1.4;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.demo-body {
|
|
311
|
+
display: flex;
|
|
312
|
+
flex-direction: column;
|
|
313
|
+
gap: 1rem;
|
|
314
|
+
margin-bottom: 1rem;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.demo-row {
|
|
318
|
+
display: flex;
|
|
319
|
+
flex-wrap: wrap;
|
|
320
|
+
align-items: center;
|
|
321
|
+
gap: 0.75rem;
|
|
322
|
+
|
|
323
|
+
> .search-box {
|
|
324
|
+
flex: 1;
|
|
325
|
+
min-width: 12rem;
|
|
326
|
+
max-width: 28rem;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
> .dropdown {
|
|
330
|
+
width: 12rem;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
> input:not(.switch) {
|
|
334
|
+
width: 12rem;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
> .sidebar-demo {
|
|
338
|
+
border: 1px solid var(--frame);
|
|
339
|
+
border-radius: 0.75rem;
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
// Multi-part demos (a button row plus a second row, a field plus its
|
|
344
|
+
// submit, region overlays) stack in this wrapper so the parts never
|
|
345
|
+
// touch.
|
|
346
|
+
.demo-stack {
|
|
347
|
+
display: flex;
|
|
348
|
+
flex-direction: column;
|
|
349
|
+
align-items: flex-start;
|
|
350
|
+
gap: 0.75rem;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
// The icon grid.
|
|
354
|
+
.icon-tile {
|
|
355
|
+
display: flex;
|
|
356
|
+
align-items: center;
|
|
357
|
+
justify-content: center;
|
|
358
|
+
width: 3rem;
|
|
359
|
+
height: 3rem;
|
|
360
|
+
border-radius: 0.75rem;
|
|
361
|
+
background: var(--well);
|
|
362
|
+
color: var(--fg);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
// The swatch grid.
|
|
366
|
+
.swatch-grid {
|
|
367
|
+
display: grid;
|
|
368
|
+
grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
|
|
369
|
+
gap: 0.75rem;
|
|
370
|
+
margin-bottom: 2.5rem;
|
|
371
|
+
|
|
372
|
+
.swatch-tile {
|
|
373
|
+
display: flex;
|
|
374
|
+
flex-direction: column;
|
|
375
|
+
gap: 0.3rem;
|
|
376
|
+
|
|
377
|
+
.swatch-chip {
|
|
378
|
+
height: 3.5rem;
|
|
379
|
+
border-radius: 0.5rem;
|
|
380
|
+
border: 1px solid var(--frame);
|
|
381
|
+
|
|
382
|
+
&.role {
|
|
383
|
+
background: color-mix(in srgb, var(--fg) 25%, transparent);
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.swatch-name {
|
|
388
|
+
font-family: "JetBrains Mono Variable", ui-monospace, monospace;
|
|
389
|
+
font-size: 0.75rem;
|
|
390
|
+
font-weight: 620;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.swatch-hex {
|
|
394
|
+
font-family: "JetBrains Mono Variable", ui-monospace, monospace;
|
|
395
|
+
font-size: 0.6875rem;
|
|
396
|
+
color: var(--muted);
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
// The error bubble's anchor: the bubble positions itself above it.
|
|
402
|
+
// The headroom is a margin, not padding — the bubble (absolute,
|
|
403
|
+
// bottom: 100%) hangs from the padding box's top edge, so padding
|
|
404
|
+
// would push the bubble out of the anchor and over the heading above.
|
|
405
|
+
.bubble-anchor {
|
|
406
|
+
position: relative;
|
|
407
|
+
margin-top: 3.75rem;
|
|
408
|
+
|
|
409
|
+
> .demo-row > input {
|
|
410
|
+
width: 16rem;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
// Static row lists (ListRow demos).
|
|
415
|
+
ul.rows {
|
|
416
|
+
display: flex;
|
|
417
|
+
flex-direction: column;
|
|
418
|
+
border: 1px solid var(--frame);
|
|
419
|
+
border-radius: 0.75rem;
|
|
420
|
+
padding: 0 1rem;
|
|
421
|
+
|
|
422
|
+
.list-row + .list-row {
|
|
423
|
+
border-top: 1px solid var(--rule);
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
@media (max-width: 768px) {
|
|
428
|
+
.docs {
|
|
429
|
+
flex-direction: column;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
// The frame's vertical hairlines don't read on a phone — the
|
|
433
|
+
// viewport edges are the borders there.
|
|
434
|
+
.shell {
|
|
435
|
+
border-left: none;
|
|
436
|
+
border-right: none;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
// The desktop rail steps aside on mobile: the burger drawer carries
|
|
440
|
+
// the docs nav instead.
|
|
441
|
+
.docs-sidebar {
|
|
442
|
+
display: none;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
// The theme tabs live in the navbar on desktop only.
|
|
446
|
+
.docs-header .tabs {
|
|
447
|
+
display: none;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
.docs-content {
|
|
451
|
+
padding: 1.5rem 1.25rem 3rem;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
// The page toolbar stacks on a phone: the title owns the row, the
|
|
455
|
+
// compact actions wrap beneath it instead of squeezing the heading.
|
|
456
|
+
.toolbar {
|
|
457
|
+
margin-bottom: 1.25rem;
|
|
458
|
+
|
|
459
|
+
.toolbar-head {
|
|
460
|
+
flex-wrap: wrap;
|
|
461
|
+
align-items: flex-start;
|
|
462
|
+
gap: 0.75rem;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
h1 {
|
|
466
|
+
flex: 1 1 100%;
|
|
467
|
+
min-width: 0;
|
|
468
|
+
font-size: 2.1rem;
|
|
469
|
+
line-height: 1.08;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
.actions {
|
|
473
|
+
width: 100%;
|
|
474
|
+
justify-content: flex-start;
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
// Component pages: content + sticky ToC rail on wide screens. No
|
|
480
|
+
// grid gap: the content's right hairline is the ToC's left edge. The
|
|
481
|
+
// ToC aside comes first in the DOM (on mobile it stacks under the
|
|
482
|
+
// navbar), so the columns are pinned explicitly.
|
|
483
|
+
.docs-with-toc {
|
|
484
|
+
display: grid;
|
|
485
|
+
grid-template-columns: minmax(0, 1fr) 16rem;
|
|
486
|
+
align-items: stretch;
|
|
487
|
+
|
|
488
|
+
.docs-content {
|
|
489
|
+
grid-column: 1;
|
|
490
|
+
grid-row: 1;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.docs-toc {
|
|
494
|
+
grid-column: 2;
|
|
495
|
+
grid-row: 1;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
// The ToC column stretches the full height of the content, so its
|
|
499
|
+
// left hairline runs border to border; the sticky wrapper keeps the
|
|
500
|
+
// nav pinned inside it. The title lines up with the item labels.
|
|
501
|
+
.docs-toc {
|
|
502
|
+
border-left: 1px solid var(--frame);
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
.docs-toc-sticky {
|
|
506
|
+
position: sticky;
|
|
507
|
+
top: 4.75rem;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
@media (max-width: 1024px) {
|
|
511
|
+
// Back to normal flow: the sticky needs a tall ancestor (the
|
|
512
|
+
// grid's aside was exactly as tall as itself, so it never stuck).
|
|
513
|
+
display: block;
|
|
514
|
+
|
|
515
|
+
// The ToC band itself is the sticky element: it pins just under
|
|
516
|
+
// the navbar while the page scrolls; the nav opens on press. When
|
|
517
|
+
// the navbar slides away the band takes the top edge, so the reader
|
|
518
|
+
// keeps the section index and nothing else.
|
|
519
|
+
.docs-content {
|
|
520
|
+
padding-top: 1.5rem;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
.docs-toc {
|
|
524
|
+
position: sticky;
|
|
525
|
+
// The header's own height at the narrow layout (3.8125rem): one
|
|
526
|
+
// value, so the band sits flush under it instead of leaving a gap.
|
|
527
|
+
top: 3.8125rem;
|
|
528
|
+
z-index: 25;
|
|
529
|
+
margin: 0;
|
|
530
|
+
border-left: none;
|
|
531
|
+
border-bottom: 1px solid var(--frame);
|
|
532
|
+
background: var(--plate);
|
|
533
|
+
transition: top 180ms ease;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
.docs-toc-sticky {
|
|
537
|
+
display: flex;
|
|
538
|
+
align-items: center;
|
|
539
|
+
padding: 0.55rem 0.9rem;
|
|
540
|
+
|
|
541
|
+
// The nav is a flex item and would shrink to its content;
|
|
542
|
+
// the toggle needs the full band.
|
|
543
|
+
> .toc {
|
|
544
|
+
width: 100%;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
.toc-title {
|
|
548
|
+
text-align: left;
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
// The landing's stat row moved to landing.scss with the rest of the
|
|
555
|
+
// hyper-style landing; the docs pages keep their own stat treatment
|
|
556
|
+
// where Ui.Stat is mounted inline.
|
|
557
|
+
|
|
558
|
+
// The burger demo shows the assembly at every width — the component
|
|
559
|
+
// itself is mobile-only and would display none up here.
|
|
560
|
+
.demo .burger .burger-toggle,
|
|
561
|
+
.demo .burger .burger-drawer,
|
|
562
|
+
.demo .burger .burger-overlay {
|
|
563
|
+
display: flex !important;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
// The drawer panel: the control row (under the close chip) and the
|
|
567
|
+
// desktop sidebar, on the drawer's dark field.
|
|
568
|
+
.burger-header {
|
|
569
|
+
display: block;
|
|
570
|
+
padding: 0;
|
|
571
|
+
border-bottom: 0;
|
|
572
|
+
background: transparent;
|
|
573
|
+
|
|
574
|
+
// The control row sits under the close chip, so the drawer's
|
|
575
|
+
// right edge holds both marks.
|
|
576
|
+
.tabs {
|
|
577
|
+
height: 1.9rem;
|
|
578
|
+
--tabs-pad: 0.15rem;
|
|
579
|
+
|
|
580
|
+
button {
|
|
581
|
+
padding-inline: 0.7rem;
|
|
582
|
+
font-size: 0.8125rem;
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
// Icon-only theme tabs: square glyph tiles.
|
|
588
|
+
.tabs button .theme-icon {
|
|
589
|
+
width: 1.1rem;
|
|
590
|
+
height: 1.1rem;
|
|
591
|
+
display: block;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
// ToC demo: body and ToC side by side.
|
|
595
|
+
.toc-demo {
|
|
596
|
+
display: flex;
|
|
597
|
+
gap: 2rem;
|
|
598
|
+
align-items: flex-start;
|
|
599
|
+
|
|
600
|
+
.toc-demo-body {
|
|
601
|
+
flex: 1;
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
// Markdown prose (the .md pages), shadcn-docs-like: quiet headings
|
|
606
|
+
// that sit above the demos the tags inject.
|
|
607
|
+
.md {
|
|
608
|
+
// Sibling gap between markdown blocks: paragraphs, headings,
|
|
609
|
+
// demo rows, and code blocks all sit 1rem apart from the block
|
|
610
|
+
// above them.
|
|
611
|
+
> * + * {
|
|
612
|
+
margin-top: 1rem;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
// Demo rows get their own gap when stacked (banners, dropdowns).
|
|
616
|
+
> .demo-row + .demo-row {
|
|
617
|
+
margin-top: 0.75rem;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
.md-h1,
|
|
621
|
+
.md-h2,
|
|
622
|
+
.md-h3,
|
|
623
|
+
.md-h4,
|
|
624
|
+
.md-h5,
|
|
625
|
+
.md-h6 {
|
|
626
|
+
position: relative;
|
|
627
|
+
font-weight: 800;
|
|
628
|
+
font-variation-settings: "OPTK" -10;
|
|
629
|
+
outline: none;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
.md-h1 {
|
|
633
|
+
margin: 2rem 0 0.75rem;
|
|
634
|
+
font-size: 1.75rem;
|
|
635
|
+
line-height: 1.4285714;
|
|
636
|
+
font-variation-settings: "OPTK" -15;
|
|
637
|
+
|
|
638
|
+
@media (min-width: 48rem) {
|
|
639
|
+
font-size: 2rem;
|
|
640
|
+
line-height: 1.25;
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
.md-h2 {
|
|
645
|
+
margin: 3rem 0 1rem;
|
|
646
|
+
border-top: 1px solid var(--rule);
|
|
647
|
+
padding-top: 1.5rem;
|
|
648
|
+
font-size: 1.5rem;
|
|
649
|
+
line-height: 1.3333333;
|
|
650
|
+
font-variation-settings: "OPTK" -15;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
.md-h3 {
|
|
654
|
+
margin: 2rem 0 0;
|
|
655
|
+
font-size: 1.25rem;
|
|
656
|
+
line-height: 1.4;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
.md-h4 {
|
|
660
|
+
margin: 1.5rem 0 0;
|
|
661
|
+
font-size: 1.125rem;
|
|
662
|
+
line-height: 1.3333333;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
.md-h1 code,
|
|
666
|
+
.md-h2 code,
|
|
667
|
+
.md-h3 code,
|
|
668
|
+
.md-h4 code {
|
|
669
|
+
font-size: 0.9em;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
.md-p {
|
|
673
|
+
// The shorthand used to be `0 0 1rem` — which also reset the top
|
|
674
|
+
// margin the `> * + *` sibling rule set, so a paragraph right
|
|
675
|
+
// after a code block touched it. Keep an explicit top margin here.
|
|
676
|
+
margin: 1rem 0;
|
|
677
|
+
line-height: 1.55;
|
|
678
|
+
color: var(--fg);
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
.md-ul {
|
|
682
|
+
margin: 1rem 0;
|
|
683
|
+
padding-left: 1.25rem;
|
|
684
|
+
list-style: disc;
|
|
685
|
+
display: flex;
|
|
686
|
+
flex-direction: column;
|
|
687
|
+
gap: 0.4rem;
|
|
688
|
+
line-height: 1.5;
|
|
689
|
+
|
|
690
|
+
// The contract's list items are block lists, so a one-line bullet
|
|
691
|
+
// arrives wrapped in a paragraph; without this the paragraph margin
|
|
692
|
+
// doubles the gap the flex list already applies.
|
|
693
|
+
> li > .md-p {
|
|
694
|
+
margin: 0;
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
.md-link {
|
|
699
|
+
color: charmtone.$blush;
|
|
700
|
+
font-weight: 550;
|
|
701
|
+
|
|
702
|
+
&:hover {
|
|
703
|
+
text-decoration: underline;
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
// The app-global footer, following Hyper's footer: the brand on the page
|
|
709
|
+
// surface, the configured link columns, and a quiet legal bar.
|
|
710
|
+
.site-footer {
|
|
711
|
+
border-top: 1px solid var(--frame);
|
|
712
|
+
background: var(--bg);
|
|
713
|
+
overflow: hidden;
|
|
714
|
+
|
|
715
|
+
.site-footer-inner {
|
|
716
|
+
display: grid;
|
|
717
|
+
grid-template-columns: 1.8fr 1fr 1fr 1fr;
|
|
718
|
+
gap: 3rem;
|
|
719
|
+
padding: 4rem 2.5rem 3rem;
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
.site-footer-brandmark {
|
|
723
|
+
display: inline-flex;
|
|
724
|
+
align-items: center;
|
|
725
|
+
gap: 0.6rem;
|
|
726
|
+
text-decoration: none;
|
|
727
|
+
|
|
728
|
+
svg {
|
|
729
|
+
display: block;
|
|
730
|
+
width: 12rem;
|
|
731
|
+
height: auto;
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
.sprout-mark {
|
|
736
|
+
color: charmtone.$blush;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
.site-footer-wordmark {
|
|
740
|
+
font-family: "Hypography Web", "Charmform Web", system-ui, sans-serif;
|
|
741
|
+
font-size: 2.25rem;
|
|
742
|
+
letter-spacing: -0.03em;
|
|
743
|
+
color: charmtone.$blush;
|
|
744
|
+
|
|
745
|
+
.site-logo {
|
|
746
|
+
display: block;
|
|
747
|
+
width: auto;
|
|
748
|
+
height: 2.25rem;
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
.site-footer-blurb {
|
|
753
|
+
margin: 1rem 0 0;
|
|
754
|
+
max-width: 24rem;
|
|
755
|
+
color: var(--muted);
|
|
756
|
+
line-height: 1.6;
|
|
757
|
+
font-size: 0.875rem;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
.site-footer-chips {
|
|
761
|
+
display: flex;
|
|
762
|
+
flex-wrap: wrap;
|
|
763
|
+
gap: 0.5rem;
|
|
764
|
+
margin-top: 1.25rem;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
.footer-chip {
|
|
768
|
+
font-size: 0.6875rem;
|
|
769
|
+
letter-spacing: 0.04em;
|
|
770
|
+
color: var(--muted);
|
|
771
|
+
background: var(--bg);
|
|
772
|
+
border: 1px solid var(--frame);
|
|
773
|
+
border-radius: 2rem;
|
|
774
|
+
padding: 0.3rem 0.7rem;
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
.site-footer-col {
|
|
778
|
+
.site-footer-heading {
|
|
779
|
+
display: block;
|
|
780
|
+
font-size: 0.6875rem;
|
|
781
|
+
font-weight: 620;
|
|
782
|
+
letter-spacing: 0.08em;
|
|
783
|
+
color: var(--tertiary);
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
ul {
|
|
787
|
+
list-style: none;
|
|
788
|
+
margin: 1rem 0 0;
|
|
789
|
+
padding: 0;
|
|
790
|
+
display: flex;
|
|
791
|
+
flex-direction: column;
|
|
792
|
+
gap: 0.55rem;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
a {
|
|
796
|
+
color: var(--muted);
|
|
797
|
+
text-decoration: none;
|
|
798
|
+
font-size: 0.875rem;
|
|
799
|
+
transition: color 125ms ease;
|
|
800
|
+
|
|
801
|
+
&:hover {
|
|
802
|
+
color: charmtone.$blush;
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
// The giant strip: the wordmark at its natural shape, sized so the
|
|
808
|
+
.site-footer-bar {
|
|
809
|
+
position: relative;
|
|
810
|
+
background: var(--bg);
|
|
811
|
+
display: flex;
|
|
812
|
+
align-items: center;
|
|
813
|
+
justify-content: space-between;
|
|
814
|
+
gap: 1rem;
|
|
815
|
+
padding: 1.1rem 2.5rem;
|
|
816
|
+
border-top: 1px solid var(--frame);
|
|
817
|
+
font-size: 0.75rem;
|
|
818
|
+
color: var(--tertiary);
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
.site-footer-top {
|
|
822
|
+
color: var(--muted);
|
|
823
|
+
text-decoration: none;
|
|
824
|
+
|
|
825
|
+
&:hover {
|
|
826
|
+
color: charmtone.$blush;
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
@media (max-width: 768px) {
|
|
832
|
+
.site-footer .site-footer-inner {
|
|
833
|
+
grid-template-columns: 1fr 1fr;
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
// Icon-only theme tabs: square glyph tiles.
|
|
838
|
+
.tabs button .theme-icon {
|
|
839
|
+
width: 1.1rem;
|
|
840
|
+
height: 1.1rem;
|
|
841
|
+
display: block;
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
@media (max-width: 768px) {
|
|
845
|
+
// The theme tabs live in the burger drawer on mobile.
|
|
846
|
+
.docs-header .tabs {
|
|
847
|
+
display: none;
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
// A header action is a real secondary button at the compact size; the
|
|
852
|
+
// class only keeps the row from shrinking it away.
|
|
853
|
+
.docs-header-action {
|
|
854
|
+
flex: none;
|
|
855
|
+
white-space: nowrap;
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
// The collections switcher in the header sits between the logo and the
|
|
859
|
+
// search field, and shares the header's height rhythm.
|
|
860
|
+
.docs-tabs {
|
|
861
|
+
flex-shrink: 0;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
// The page toolbar's two actions: an outlined button and an outlined
|
|
865
|
+
// menu trigger, both at the compact control height. The --frame hairline
|
|
866
|
+
// shows the hit area at rest; neither takes a fill, so they still sit
|
|
867
|
+
// below the page title.
|
|
868
|
+
.page-copy {
|
|
869
|
+
padding-inline: 0.8rem;
|
|
870
|
+
|
|
871
|
+
svg {
|
|
872
|
+
width: 1.05rem;
|
|
873
|
+
height: 1.05rem;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
// The flash wins over the ghost hover: the pointer is still on the
|
|
877
|
+
// button when the fetch lands, and the julep check is the feedback.
|
|
878
|
+
&.done,
|
|
879
|
+
&.done:hover:is(button.secondary) {
|
|
880
|
+
color: charmtone.$julep;
|
|
881
|
+
border-color: charmtone.$julep;
|
|
882
|
+
background: color-mix(in srgb, charmtone.$julep 14%, transparent);
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
.ai-dropdown > button {
|
|
887
|
+
width: auto;
|
|
888
|
+
justify-content: center;
|
|
889
|
+
padding-inline: 0.7rem;
|
|
890
|
+
border-color: var(--frame);
|
|
891
|
+
background: transparent;
|
|
892
|
+
color: var(--fg);
|
|
893
|
+
font-size: 0.875rem;
|
|
894
|
+
|
|
895
|
+
.trigger-icon {
|
|
896
|
+
display: flex;
|
|
897
|
+
|
|
898
|
+
svg {
|
|
899
|
+
width: 1.15rem;
|
|
900
|
+
height: 1.15rem;
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
.chevron {
|
|
904
|
+
// The kit budgets the caret a left margin beside a label; an
|
|
905
|
+
// arrow-only trigger centers it instead. Its open state paints
|
|
906
|
+
// salt, which vanishes on the light plate, so the glyph follows
|
|
907
|
+
// the trigger's own ink like every other mark here.
|
|
908
|
+
margin-left: 0;
|
|
909
|
+
color: currentColor;
|
|
910
|
+
transform: none;
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
// Hover and open follow button.secondary: blush on the dark page,
|
|
915
|
+
// charple on the light one.
|
|
916
|
+
&:hover {
|
|
917
|
+
border-color: charmtone.$blush;
|
|
918
|
+
background: transparent;
|
|
919
|
+
color: charmtone.$blush;
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
.ai-dropdown.open > button {
|
|
924
|
+
border-color: charmtone.$blush;
|
|
925
|
+
background: transparent;
|
|
926
|
+
color: charmtone.$blush;
|
|
927
|
+
|
|
928
|
+
.trigger-icon .chevron {
|
|
929
|
+
transform: rotate(180deg);
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
:root[data-theme="light"] .ai-dropdown > button:hover,
|
|
934
|
+
:root[data-theme="light"] .ai-dropdown.open > button {
|
|
935
|
+
border-color: charmtone.$charple;
|
|
936
|
+
color: charmtone.$charple;
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
// Footer grid follows the configured columns.
|
|
940
|
+
.site-footer .site-footer-inner {
|
|
941
|
+
grid-template-columns: 1.8fr repeat(auto-fit, minmax(8rem, 1fr));
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
// The search dialog: a command palette. The field is the page's own field
|
|
945
|
+
// at a larger size, and the results sit in the dialog flow instead of
|
|
946
|
+
// hanging under it as a dropdown, so the palette grows with its list and
|
|
947
|
+
// never clips against the overlay.
|
|
948
|
+
.search-modal {
|
|
949
|
+
padding: 1.1rem;
|
|
950
|
+
|
|
951
|
+
// The dialog's own corner chip is replaced by the close button beside
|
|
952
|
+
// the field (below), so the row reads as one control pair.
|
|
953
|
+
> .close {
|
|
954
|
+
display: none;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
.search-modal-row {
|
|
958
|
+
display: flex;
|
|
959
|
+
// The results list lives inside the search form, so the form is as
|
|
960
|
+
// tall as the list; start-align keeps the close button beside the
|
|
961
|
+
// input instead of floating halfway down the results.
|
|
962
|
+
align-items: flex-start;
|
|
963
|
+
gap: 0.5rem;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
.search {
|
|
967
|
+
display: block;
|
|
968
|
+
flex: 1;
|
|
969
|
+
min-width: 0;
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
.search-input {
|
|
973
|
+
height: 3rem;
|
|
974
|
+
padding: 0.7rem 0.9rem;
|
|
975
|
+
font-size: 1.05rem;
|
|
976
|
+
background: var(--well);
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
// The dialog's close button is the one X: the combobox's clear chip
|
|
980
|
+
// would be a second one inside the field, and it sits against the
|
|
981
|
+
// input's edge in this layout.
|
|
982
|
+
.clear {
|
|
983
|
+
display: none;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
.search-close {
|
|
987
|
+
flex: none;
|
|
988
|
+
display: inline-flex;
|
|
989
|
+
align-items: center;
|
|
990
|
+
justify-content: center;
|
|
991
|
+
width: 3rem;
|
|
992
|
+
height: 3rem;
|
|
993
|
+
padding: 0;
|
|
994
|
+
border: none;
|
|
995
|
+
border-radius: calc(0.75rem * var(--squircle-scale, 1));
|
|
996
|
+
background: var(--well);
|
|
997
|
+
color: var(--muted);
|
|
998
|
+
cursor: pointer;
|
|
999
|
+
transition:
|
|
1000
|
+
background 125ms ease,
|
|
1001
|
+
color 125ms ease;
|
|
1002
|
+
|
|
1003
|
+
svg {
|
|
1004
|
+
width: 1rem;
|
|
1005
|
+
height: 1rem;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
&:hover {
|
|
1009
|
+
background: var(--frame);
|
|
1010
|
+
color: var(--fg);
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
.search-menu {
|
|
1015
|
+
position: static;
|
|
1016
|
+
max-height: 22rem;
|
|
1017
|
+
margin-top: 0.6rem;
|
|
1018
|
+
// The close button sits in the row, not over the list: let the
|
|
1019
|
+
// results reclaim its column so they line up with the hints.
|
|
1020
|
+
margin-right: -3.5rem;
|
|
1021
|
+
padding: 0;
|
|
1022
|
+
background: transparent;
|
|
1023
|
+
color: var(--fg);
|
|
1024
|
+
box-shadow: none;
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
.search-item {
|
|
1028
|
+
padding: 0.6rem 0.7rem;
|
|
1029
|
+
border-radius: calc(0.5rem * var(--squircle-scale, 1));
|
|
1030
|
+
color: var(--fg);
|
|
1031
|
+
|
|
1032
|
+
.detail {
|
|
1033
|
+
color: var(--tertiary);
|
|
1034
|
+
font-family: "Fraktion Mono Web", ui-monospace, monospace;
|
|
1035
|
+
font-size: 0.65rem;
|
|
1036
|
+
letter-spacing: 0.06em;
|
|
1037
|
+
text-transform: uppercase;
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
.search-snippet {
|
|
1041
|
+
color: var(--muted);
|
|
1042
|
+
|
|
1043
|
+
.search-hit {
|
|
1044
|
+
background: color-mix(in srgb, charmtone.$blush 22%, transparent);
|
|
1045
|
+
color: var(--fg);
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
&:hover,
|
|
1050
|
+
&.selected {
|
|
1051
|
+
background: color-mix(in srgb, var(--fg) 8%, transparent);
|
|
1052
|
+
|
|
1053
|
+
.search-hit {
|
|
1054
|
+
background: color-mix(in srgb, charmtone.$blush 30%, transparent);
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
.search-empty {
|
|
1060
|
+
color: var(--muted);
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
.search-hints {
|
|
1065
|
+
display: flex;
|
|
1066
|
+
flex-wrap: wrap;
|
|
1067
|
+
gap: 1rem;
|
|
1068
|
+
margin-top: 0.9rem;
|
|
1069
|
+
padding-top: 0.8rem;
|
|
1070
|
+
border-top: 1px solid var(--frame);
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
.search-hint {
|
|
1074
|
+
display: inline-flex;
|
|
1075
|
+
align-items: center;
|
|
1076
|
+
gap: 0.35rem;
|
|
1077
|
+
color: var(--tertiary);
|
|
1078
|
+
font-size: 0.75rem;
|
|
1079
|
+
|
|
1080
|
+
.code-inline {
|
|
1081
|
+
font-size: 0.7rem;
|
|
1082
|
+
}
|
|
1083
|
+
}
|