rshow 0.0.0-stage → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +50 -2
- package/dist/main.js +8500 -0
- package/package.json +48 -4
- package/skills/rshow/SKILL.md +144 -0
- package/skills/rshow/reference/cli.md +263 -0
- package/skills/rshow/reference/dashboard.md +122 -0
- package/skills/rshow/reference/mockups.md +113 -0
- package/skills/rshow/reference/page-contract.md +83 -0
- package/skills/rshow/reference/pages.md +174 -0
- package/skills/rshow/reference/poster.md +137 -0
- package/skills/rshow/reference/project-page.md +132 -0
- package/skills/rshow/reference/reports.md +158 -0
- package/skills/rshow/reference/sketch.md +78 -0
- package/skills/rshow/reference/terminal.md +148 -0
- package/skills/rshow/reference/themes.md +139 -0
- package/skills/rshow-implement/SKILL.md +112 -0
- package/skills/rshow-implement/reference/compare.md +156 -0
- package/skills/rshow-implement/reference/handoff.md +125 -0
- package/skills/rshow-implement/reference/map.md +151 -0
- package/skills/rshow-slides/SKILL.md +136 -0
- package/skills/rshow-slides/reference/layouts.md +251 -0
- package/themes/default/dashboard.css +521 -0
- package/themes/default/dashboard.js +1390 -0
- package/themes/default/deck.css +586 -0
- package/themes/default/deck.js +741 -0
- package/themes/default/example/capture.ans +1 -0
- package/themes/default/example/dashboard.html +106 -0
- package/themes/default/example/demo.cast +14 -0
- package/themes/default/example/drawing.excalidraw +377 -0
- package/themes/default/example/index.html +311 -0
- package/themes/default/example/mockup-desktop.html +331 -0
- package/themes/default/example/mockup-platforms.html +742 -0
- package/themes/default/example/mockup.html +416 -0
- package/themes/default/example/page.html +153 -0
- package/themes/default/example/poster-figure.svg +58 -0
- package/themes/default/example/poster.html +181 -0
- package/themes/default/example/project.html +229 -0
- package/themes/default/example/report.html +404 -0
- package/themes/default/example/results.csv +61 -0
- package/themes/default/example/sketch.html +178 -0
- package/themes/default/example/teaser.svg +66 -0
- package/themes/default/example/terminal.html +231 -0
- package/themes/default/example/tui.html +223 -0
- package/themes/default/fonts/IBMPlexMono-Regular-Latin1.woff2 +0 -0
- package/themes/default/fonts/IBMPlexSans-Light-Latin1.woff2 +0 -0
- package/themes/default/fonts/IBMPlexSans-Regular-Latin1.woff2 +0 -0
- package/themes/default/fonts/IBMPlexSans-SemiBold-Latin1.woff2 +0 -0
- package/themes/default/fonts/OFL.txt +93 -0
- package/themes/default/fonts.css +63 -0
- package/themes/default/index.html +573 -0
- package/themes/default/mockup.css +1078 -0
- package/themes/default/mockup.js +1433 -0
- package/themes/default/mode.js +242 -0
- package/themes/default/page.css +320 -0
- package/themes/default/poster.css +480 -0
- package/themes/default/poster.js +223 -0
- package/themes/default/project.css +482 -0
- package/themes/default/project.js +116 -0
- package/themes/default/report.css +776 -0
- package/themes/default/report.js +427 -0
- package/themes/default/sketch.css +166 -0
- package/themes/default/sketch.js +681 -0
- package/themes/default/skins/adwaita.css +669 -0
- package/themes/default/skins/custom.css +596 -0
- package/themes/default/skins/egui.css +639 -0
- package/themes/default/skins/fluent.css +1093 -0
- package/themes/default/skins/fluent.js +458 -0
- package/themes/default/skins/mac.css +647 -0
- package/themes/default/skins/material.css +692 -0
- package/themes/default/skins/sketch.css +436 -0
- package/themes/default/skins/sketch.js +494 -0
- package/themes/default/skins/wire.css +561 -0
- package/themes/default/terminal.css +292 -0
- package/themes/default/terminal.js +433 -0
- package/themes/default/theme.json +149 -0
- package/themes/default/tokens.css +255 -0
- package/themes/default/tui.css +703 -0
- package/themes/default/tui.js +472 -0
- package/worker/index.js +6918 -0
- package/worker/migrations/0001_init.sql +52 -0
- package/worker/migrations/0002_blobs.sql +5 -0
- package/worker/migrations/0003_projects.sql +31 -0
- package/worker/migrations/0004_page_data_blob.sql +19 -0
|
@@ -0,0 +1,692 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* rshow theme "default": the material skin, layer 3.
|
|
3
|
+
*
|
|
4
|
+
* A Material 3 look-alike, CSS only: the design system's public shape, drawn in
|
|
5
|
+
* this file. No Material Web components are loaded anywhere, on purpose: that
|
|
6
|
+
* library is in maintenance mode and a mockup should not carry a dependency the
|
|
7
|
+
* product will not use.
|
|
8
|
+
*
|
|
9
|
+
* What makes a drawing read as Material 3 is not a colour, it is the tonal
|
|
10
|
+
* surface: one ground, and a panel that is the same hue a step lighter, with
|
|
11
|
+
* elevation expressed as tone first and shadow second. Then: a pill for a
|
|
12
|
+
* filled button, a 4px corner on an outlined text field with the label in the
|
|
13
|
+
* notch, 12px on a card, 28px on a dialog, a 3px accent indicator under the
|
|
14
|
+
* active tab, and a switch that is a 52x32 track with a small handle growing
|
|
15
|
+
* into a big one.
|
|
16
|
+
*
|
|
17
|
+
* Roboto is first in the stack because Android and most Linux images ship it;
|
|
18
|
+
* the stack falls through to the system UI font, which is what Material 3
|
|
19
|
+
* itself does on a device without Roboto.
|
|
20
|
+
*
|
|
21
|
+
* Knobs: the custom.css set plus --mk-surface, --mk-surface-2, --mk-surface-3,
|
|
22
|
+
* --mk-on-accent, --mk-accent-soft, --mk-accent-container, --mk-on-container,
|
|
23
|
+
* --mk-radius-lg, --mk-radius-xl, --mk-radius-pill, --mk-ctl-h, --mk-line-h,
|
|
24
|
+
* --mk-shadow-1, --mk-shadow-3.
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
/* --------------------------------------------------- the screen, light -- */
|
|
28
|
+
|
|
29
|
+
[data-skin="material"] {
|
|
30
|
+
--mk-bg: #fef7ff;
|
|
31
|
+
|
|
32
|
+
/* the window chrome the frame draws, in the same two modes */
|
|
33
|
+
--mk-chrome-bg: #f8f4fb;
|
|
34
|
+
--mk-chrome-bg-2: #efeaf3;
|
|
35
|
+
--mk-chrome-line: #d8d3dd;
|
|
36
|
+
--mk-chrome-fg: #1d1b20;
|
|
37
|
+
--mk-surface: #ffffff;
|
|
38
|
+
--mk-surface-2: #f3edf7;
|
|
39
|
+
--mk-surface-3: #ece6f0;
|
|
40
|
+
--mk-fg: #1d1b20;
|
|
41
|
+
--mk-muted: #49454f;
|
|
42
|
+
--mk-line: #cac4d0;
|
|
43
|
+
--mk-line-strong: #79747e;
|
|
44
|
+
--mk-fill: #e8def8;
|
|
45
|
+
|
|
46
|
+
/* the primary colour and its container: a filled button is the primary, a
|
|
47
|
+
tonal button and a selected row are the container */
|
|
48
|
+
--mk-accent: #6750a4;
|
|
49
|
+
--mk-accent-hover: #5b4599;
|
|
50
|
+
--mk-accent-soft: #e8def8;
|
|
51
|
+
--mk-accent-container: #eaddff;
|
|
52
|
+
--mk-on-container: #21005d;
|
|
53
|
+
--mk-on-accent: #ffffff;
|
|
54
|
+
--mk-focus: #6750a4;
|
|
55
|
+
|
|
56
|
+
--mk-radius: 4px;
|
|
57
|
+
--mk-radius-lg: 12px;
|
|
58
|
+
--mk-radius-xl: 28px;
|
|
59
|
+
--mk-radius-pill: 100px;
|
|
60
|
+
|
|
61
|
+
--mk-font: Roboto, "Helvetica Neue", system-ui, -apple-system, sans-serif;
|
|
62
|
+
--mk-size: 14px;
|
|
63
|
+
--mk-line-h: 20px;
|
|
64
|
+
--mk-ctl-h: 40px;
|
|
65
|
+
--mk-gap: 16px;
|
|
66
|
+
--mk-pad: 16px;
|
|
67
|
+
|
|
68
|
+
--mk-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.12);
|
|
69
|
+
--mk-shadow-3: 0 2px 6px rgba(0, 0, 0, 0.16);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* ---------------------------------------------------- the screen, dark -- */
|
|
73
|
+
|
|
74
|
+
@media (prefers-color-scheme: dark) {
|
|
75
|
+
:root:not([data-mode="light"]) [data-skin="material"] {
|
|
76
|
+
--mk-bg: #141218;
|
|
77
|
+
|
|
78
|
+
/* the window chrome the frame draws, in the same two modes */
|
|
79
|
+
--mk-chrome-bg: #211f26;
|
|
80
|
+
--mk-chrome-bg-2: #1d1b20;
|
|
81
|
+
--mk-chrome-line: #49454f;
|
|
82
|
+
--mk-chrome-fg: #e6e0e9;
|
|
83
|
+
--mk-surface: #1d1b20;
|
|
84
|
+
--mk-surface-2: #211f26;
|
|
85
|
+
--mk-surface-3: #2b2930;
|
|
86
|
+
--mk-fg: #e6e0e9;
|
|
87
|
+
--mk-muted: #cac4d0;
|
|
88
|
+
--mk-line: #49454f;
|
|
89
|
+
--mk-line-strong: #938f99;
|
|
90
|
+
--mk-fill: #4a4458;
|
|
91
|
+
--mk-accent: #d0bcff;
|
|
92
|
+
--mk-accent-hover: #e0d2ff;
|
|
93
|
+
--mk-accent-soft: #4a4458;
|
|
94
|
+
--mk-accent-container: #4f378b;
|
|
95
|
+
--mk-on-container: #eaddff;
|
|
96
|
+
--mk-on-accent: #381e72;
|
|
97
|
+
--mk-focus: #d0bcff;
|
|
98
|
+
--mk-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.5);
|
|
99
|
+
--mk-shadow-3: 0 2px 6px rgba(0, 0, 0, 0.55);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
:root[data-mode="dark"] [data-skin="material"] {
|
|
104
|
+
--mk-bg: #141218;
|
|
105
|
+
|
|
106
|
+
/* the window chrome the frame draws, in the same two modes */
|
|
107
|
+
--mk-chrome-bg: #211f26;
|
|
108
|
+
--mk-chrome-bg-2: #1d1b20;
|
|
109
|
+
--mk-chrome-line: #49454f;
|
|
110
|
+
--mk-chrome-fg: #e6e0e9;
|
|
111
|
+
--mk-surface: #1d1b20;
|
|
112
|
+
--mk-surface-2: #211f26;
|
|
113
|
+
--mk-surface-3: #2b2930;
|
|
114
|
+
--mk-fg: #e6e0e9;
|
|
115
|
+
--mk-muted: #cac4d0;
|
|
116
|
+
--mk-line: #49454f;
|
|
117
|
+
--mk-line-strong: #938f99;
|
|
118
|
+
--mk-fill: #4a4458;
|
|
119
|
+
--mk-accent: #d0bcff;
|
|
120
|
+
--mk-accent-hover: #e0d2ff;
|
|
121
|
+
--mk-accent-soft: #4a4458;
|
|
122
|
+
--mk-accent-container: #4f378b;
|
|
123
|
+
--mk-on-container: #eaddff;
|
|
124
|
+
--mk-on-accent: #381e72;
|
|
125
|
+
--mk-focus: #d0bcff;
|
|
126
|
+
--mk-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.5);
|
|
127
|
+
--mk-shadow-3: 0 2px 6px rgba(0, 0, 0, 0.55);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/* --------------------------------------------------------------- screen -- */
|
|
131
|
+
|
|
132
|
+
[data-skin="material"] .mk-screen {
|
|
133
|
+
color: var(--mk-fg);
|
|
134
|
+
background: var(--mk-bg);
|
|
135
|
+
color-scheme: light;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
@media (prefers-color-scheme: dark) {
|
|
139
|
+
:root:not([data-mode="light"]) [data-skin="material"] .mk-screen {
|
|
140
|
+
color-scheme: dark;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
:root[data-mode="dark"] [data-skin="material"] .mk-screen {
|
|
145
|
+
color-scheme: dark;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
[data-skin="material"] .mk-screen a {
|
|
149
|
+
color: var(--mk-accent);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/* --------------------------------------------------------------- layout -- */
|
|
153
|
+
|
|
154
|
+
[data-skin="material"] .wf-row {
|
|
155
|
+
display: flex;
|
|
156
|
+
align-items: center;
|
|
157
|
+
gap: var(--mk-gap);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
[data-skin="material"] .wf-col {
|
|
161
|
+
display: flex;
|
|
162
|
+
flex-direction: column;
|
|
163
|
+
gap: var(--mk-gap);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
[data-skin="material"] .wf-row.wf-shell {
|
|
167
|
+
align-items: stretch;
|
|
168
|
+
gap: 0;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
[data-skin="material"] .wf-row.wf-top {
|
|
172
|
+
align-items: flex-start;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
[data-skin="material"] .wf-spacer,
|
|
176
|
+
[data-skin="material"] .wf-grow {
|
|
177
|
+
flex: 1 1 auto;
|
|
178
|
+
min-width: 0;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/* ----------------------------------------------------------------- type -- */
|
|
182
|
+
|
|
183
|
+
[data-skin="material"] .wf-heading {
|
|
184
|
+
display: block;
|
|
185
|
+
width: 40%;
|
|
186
|
+
max-width: 20em;
|
|
187
|
+
height: 0.85em;
|
|
188
|
+
background: var(--mk-fg);
|
|
189
|
+
border-radius: 3px;
|
|
190
|
+
opacity: 0.8;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/* Material 3's title-large is 22px on a 1.27 line height, and its weight is
|
|
194
|
+
regular: a Material heading is big before it is bold. */
|
|
195
|
+
[data-skin="material"] .wf-heading:not(:empty) {
|
|
196
|
+
width: auto;
|
|
197
|
+
max-width: none;
|
|
198
|
+
height: auto;
|
|
199
|
+
font-size: 22px;
|
|
200
|
+
font-weight: 400;
|
|
201
|
+
line-height: 28px;
|
|
202
|
+
background: none;
|
|
203
|
+
opacity: 1;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
[data-skin="material"] .wf-text {
|
|
207
|
+
--mk-lines: 2;
|
|
208
|
+
display: block;
|
|
209
|
+
height: calc(var(--mk-lines) * var(--mk-line-h));
|
|
210
|
+
background-image: repeating-linear-gradient(
|
|
211
|
+
to bottom,
|
|
212
|
+
var(--mk-line) 0 7px,
|
|
213
|
+
transparent 7px var(--mk-line-h)
|
|
214
|
+
);
|
|
215
|
+
border-radius: 3px;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
[data-skin="material"] .wf-text[data-lines="1"] { --mk-lines: 1; }
|
|
219
|
+
[data-skin="material"] .wf-text[data-lines="2"] { --mk-lines: 2; }
|
|
220
|
+
[data-skin="material"] .wf-text[data-lines="3"] { --mk-lines: 3; }
|
|
221
|
+
[data-skin="material"] .wf-text[data-lines="4"] { --mk-lines: 4; }
|
|
222
|
+
[data-skin="material"] .wf-text[data-lines="5"] { --mk-lines: 5; }
|
|
223
|
+
[data-skin="material"] .wf-text[data-lines="6"] { --mk-lines: 6; }
|
|
224
|
+
[data-skin="material"] .wf-text[data-lines="7"] { --mk-lines: 7; }
|
|
225
|
+
[data-skin="material"] .wf-text[data-lines="8"] { --mk-lines: 8; }
|
|
226
|
+
|
|
227
|
+
[data-skin="material"] .wf-text:not(:empty) {
|
|
228
|
+
height: auto;
|
|
229
|
+
font-size: 14px;
|
|
230
|
+
line-height: var(--mk-line-h);
|
|
231
|
+
color: var(--mk-muted);
|
|
232
|
+
background: none;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/* --------------------------------------------------------------- blocks -- */
|
|
236
|
+
|
|
237
|
+
[data-skin="material"] .wf-box {
|
|
238
|
+
min-height: 56px;
|
|
239
|
+
padding: 12px;
|
|
240
|
+
background: var(--mk-surface-2);
|
|
241
|
+
border-radius: var(--mk-radius-lg);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/* A selected list row in Material 3 is a container tone, not a border and not a
|
|
245
|
+
shadow: the tone is the selection, and the label moves to the on-container
|
|
246
|
+
colour because the tone is a surface and not an accent fill. */
|
|
247
|
+
[data-skin="material"] .wf-box.is-active {
|
|
248
|
+
color: var(--mk-on-container);
|
|
249
|
+
background: var(--mk-accent-soft);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
[data-skin="material"] .wf-card {
|
|
253
|
+
display: flex;
|
|
254
|
+
flex-direction: column;
|
|
255
|
+
gap: 12px;
|
|
256
|
+
padding: 16px;
|
|
257
|
+
background: var(--mk-surface-2);
|
|
258
|
+
border-radius: var(--mk-radius-lg);
|
|
259
|
+
box-shadow: var(--mk-shadow-1);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
[data-skin="material"] .wf-image {
|
|
263
|
+
min-height: 120px;
|
|
264
|
+
background-color: var(--mk-surface-3);
|
|
265
|
+
background-image: linear-gradient(
|
|
266
|
+
to top right,
|
|
267
|
+
transparent calc(50% - 0.5px),
|
|
268
|
+
var(--mk-line) calc(50% - 0.5px),
|
|
269
|
+
var(--mk-line) calc(50% + 0.5px),
|
|
270
|
+
transparent calc(50% + 0.5px)
|
|
271
|
+
),
|
|
272
|
+
linear-gradient(
|
|
273
|
+
to bottom right,
|
|
274
|
+
transparent calc(50% - 0.5px),
|
|
275
|
+
var(--mk-line) calc(50% - 0.5px),
|
|
276
|
+
var(--mk-line) calc(50% + 0.5px),
|
|
277
|
+
transparent calc(50% + 0.5px)
|
|
278
|
+
);
|
|
279
|
+
border-radius: var(--mk-radius-lg);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
[data-skin="material"] .wf-avatar {
|
|
283
|
+
flex: 0 0 auto;
|
|
284
|
+
width: 40px;
|
|
285
|
+
height: 40px;
|
|
286
|
+
background: var(--mk-accent-container);
|
|
287
|
+
border-radius: 50%;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
[data-skin="material"] .wf-avatar[data-size="sm"] {
|
|
291
|
+
width: 28px;
|
|
292
|
+
height: 28px;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
[data-skin="material"] .wf-avatar[data-size="lg"] {
|
|
296
|
+
width: 56px;
|
|
297
|
+
height: 56px;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
[data-skin="material"] .wf-icon {
|
|
301
|
+
display: inline-block;
|
|
302
|
+
flex: 0 0 auto;
|
|
303
|
+
width: 20px;
|
|
304
|
+
height: 20px;
|
|
305
|
+
background: var(--mk-surface-3);
|
|
306
|
+
border-radius: 50%;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
[data-skin="material"] .wf-icon[data-size="lg"] {
|
|
310
|
+
width: 24px;
|
|
311
|
+
height: 24px;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/* ------------------------------------------------------------- controls -- */
|
|
315
|
+
|
|
316
|
+
/* A filled button is a pill in the primary colour with a label on it; a tonal
|
|
317
|
+
button is the same pill in the primary container; an outlined button is the
|
|
318
|
+
same pill with a 1px outline and no fill. */
|
|
319
|
+
[data-skin="material"] .wf-button {
|
|
320
|
+
display: inline-flex;
|
|
321
|
+
align-items: center;
|
|
322
|
+
justify-content: center;
|
|
323
|
+
gap: 8px;
|
|
324
|
+
height: var(--mk-ctl-h);
|
|
325
|
+
padding: 0 24px;
|
|
326
|
+
font: inherit;
|
|
327
|
+
font-size: 14px;
|
|
328
|
+
font-weight: 500;
|
|
329
|
+
color: var(--mk-accent);
|
|
330
|
+
text-align: center;
|
|
331
|
+
text-decoration: none;
|
|
332
|
+
white-space: nowrap;
|
|
333
|
+
background: transparent;
|
|
334
|
+
border: 1px solid var(--mk-line-strong);
|
|
335
|
+
border-radius: var(--mk-radius-pill);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
[data-skin="material"] .wf-button.primary {
|
|
339
|
+
color: var(--mk-on-accent);
|
|
340
|
+
background: var(--mk-accent);
|
|
341
|
+
border-color: transparent;
|
|
342
|
+
box-shadow: var(--mk-shadow-1);
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
[data-skin="material"] .wf-button.ghost {
|
|
346
|
+
color: var(--mk-accent);
|
|
347
|
+
background: transparent;
|
|
348
|
+
border-color: transparent;
|
|
349
|
+
padding: 0 12px;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
[data-skin="material"] .wf-button[disabled] {
|
|
353
|
+
color: var(--mk-muted);
|
|
354
|
+
opacity: 0.38;
|
|
355
|
+
box-shadow: none;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
[data-skin="material"] .wf-button:focus-visible,
|
|
359
|
+
[data-skin="material"] .wf-button[data-focus] {
|
|
360
|
+
outline: 3px solid var(--mk-focus);
|
|
361
|
+
outline-offset: 1px;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
/* The outlined text field: 1px outline, 4px corner, and the label sits in the
|
|
365
|
+
notch of the top border, which is the Material 3 shape. */
|
|
366
|
+
[data-skin="material"] .wf-input {
|
|
367
|
+
position: relative;
|
|
368
|
+
display: flex;
|
|
369
|
+
align-items: center;
|
|
370
|
+
min-height: 56px;
|
|
371
|
+
padding: 0 16px;
|
|
372
|
+
font-size: 16px;
|
|
373
|
+
color: var(--mk-fg);
|
|
374
|
+
background: transparent;
|
|
375
|
+
border: 1px solid var(--mk-line-strong);
|
|
376
|
+
border-radius: var(--mk-radius);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
[data-skin="material"] .wf-input[data-label]::before,
|
|
380
|
+
[data-skin="material"] .wf-select[data-label]::before,
|
|
381
|
+
[data-skin="material"] .wf-label {
|
|
382
|
+
position: absolute;
|
|
383
|
+
top: -8px;
|
|
384
|
+
left: 12px;
|
|
385
|
+
padding: 0 4px;
|
|
386
|
+
font-size: 12px;
|
|
387
|
+
line-height: 1.5;
|
|
388
|
+
color: var(--mk-muted);
|
|
389
|
+
background: var(--mk-bg);
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
[data-skin="material"] .wf-input[data-label]::before,
|
|
393
|
+
[data-skin="material"] .wf-select[data-label]::before {
|
|
394
|
+
content: attr(data-label);
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
[data-skin="material"] .wf-input:focus-within {
|
|
398
|
+
border-color: var(--mk-accent);
|
|
399
|
+
box-shadow: inset 0 0 0 1px var(--mk-accent);
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
/* data-variant="filled" is the other text field: a tonal box with a 1px line
|
|
403
|
+
along the bottom, and no outline. */
|
|
404
|
+
[data-skin="material"] .wf-input[data-variant="filled"] {
|
|
405
|
+
background: var(--mk-surface-3);
|
|
406
|
+
border-color: transparent;
|
|
407
|
+
border-bottom-color: var(--mk-line-strong);
|
|
408
|
+
border-radius: var(--mk-radius) var(--mk-radius) 0 0;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
[data-skin="material"] .wf-input[data-variant="filled"][data-label]::before {
|
|
412
|
+
background: none;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
/* An empty field still says what it is: the drawing's placeholder is read out
|
|
416
|
+
of the attribute, so a search box in a title bar is not a blank rectangle. */
|
|
417
|
+
[data-skin="material"] .wf-input[data-placeholder]:empty::after {
|
|
418
|
+
content: attr(data-placeholder);
|
|
419
|
+
color: var(--mk-muted);
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
[data-skin="material"] .wf-select {
|
|
423
|
+
position: relative;
|
|
424
|
+
display: flex;
|
|
425
|
+
align-items: center;
|
|
426
|
+
min-height: 56px;
|
|
427
|
+
padding: 0 44px 0 16px;
|
|
428
|
+
font-size: 16px;
|
|
429
|
+
color: var(--mk-fg);
|
|
430
|
+
background: transparent;
|
|
431
|
+
border: 1px solid var(--mk-line-strong);
|
|
432
|
+
border-radius: var(--mk-radius);
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
[data-skin="material"] .wf-select::after {
|
|
436
|
+
content: "";
|
|
437
|
+
position: absolute;
|
|
438
|
+
top: 50%;
|
|
439
|
+
right: 16px;
|
|
440
|
+
width: 0;
|
|
441
|
+
height: 0;
|
|
442
|
+
margin-top: -3px;
|
|
443
|
+
border-top: 5px solid var(--mk-muted);
|
|
444
|
+
border-right: 5px solid transparent;
|
|
445
|
+
border-left: 5px solid transparent;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
[data-skin="material"] .wf-checkbox {
|
|
449
|
+
position: relative;
|
|
450
|
+
display: inline-block;
|
|
451
|
+
flex: 0 0 auto;
|
|
452
|
+
width: 18px;
|
|
453
|
+
height: 18px;
|
|
454
|
+
background: transparent;
|
|
455
|
+
border: 2px solid var(--mk-line-strong);
|
|
456
|
+
border-radius: 2px;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
[data-skin="material"] .wf-checkbox[data-checked="true"] {
|
|
460
|
+
background: var(--mk-accent);
|
|
461
|
+
border-color: var(--mk-accent);
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
[data-skin="material"] .wf-checkbox[data-checked="true"]::after {
|
|
465
|
+
content: "";
|
|
466
|
+
position: absolute;
|
|
467
|
+
top: 0;
|
|
468
|
+
left: 4px;
|
|
469
|
+
width: 4px;
|
|
470
|
+
height: 8px;
|
|
471
|
+
border: solid var(--mk-on-accent);
|
|
472
|
+
border-width: 0 2px 2px 0;
|
|
473
|
+
transform: rotate(45deg);
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
/* The Material 3 switch: a 52x32 track, a 16px handle when off and a 24px one
|
|
477
|
+
when on, and an outline around the track until it is checked. */
|
|
478
|
+
[data-skin="material"] .wf-toggle {
|
|
479
|
+
position: relative;
|
|
480
|
+
display: inline-block;
|
|
481
|
+
flex: 0 0 auto;
|
|
482
|
+
width: 52px;
|
|
483
|
+
height: 32px;
|
|
484
|
+
background: var(--mk-surface-3);
|
|
485
|
+
border: 2px solid var(--mk-line-strong);
|
|
486
|
+
border-radius: var(--mk-radius-pill);
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
[data-skin="material"] .wf-toggle::after {
|
|
490
|
+
content: "";
|
|
491
|
+
position: absolute;
|
|
492
|
+
top: 6px;
|
|
493
|
+
left: 6px;
|
|
494
|
+
width: 16px;
|
|
495
|
+
height: 16px;
|
|
496
|
+
background: var(--mk-line-strong);
|
|
497
|
+
border-radius: 50%;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
[data-skin="material"] .wf-toggle.on {
|
|
501
|
+
background: var(--mk-accent);
|
|
502
|
+
border-color: var(--mk-accent);
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
[data-skin="material"] .wf-toggle.on::after {
|
|
506
|
+
top: 2px;
|
|
507
|
+
left: 24px;
|
|
508
|
+
width: 24px;
|
|
509
|
+
height: 24px;
|
|
510
|
+
background: var(--mk-on-accent);
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
/* A primary tab: the label, then a 3px indicator that runs the width of the
|
|
514
|
+
tab and is rounded at the top. The bar is the only line in the row. */
|
|
515
|
+
[data-skin="material"] .wf-tabs {
|
|
516
|
+
display: flex;
|
|
517
|
+
align-items: stretch;
|
|
518
|
+
gap: 0;
|
|
519
|
+
background: var(--mk-surface-2);
|
|
520
|
+
border-radius: var(--mk-radius) var(--mk-radius) 0 0;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
[data-skin="material"] .wf-tabs > * {
|
|
524
|
+
padding: 14px 16px;
|
|
525
|
+
font-size: 14px;
|
|
526
|
+
font-weight: 500;
|
|
527
|
+
line-height: 20px;
|
|
528
|
+
color: var(--mk-muted);
|
|
529
|
+
white-space: nowrap;
|
|
530
|
+
border-bottom: 3px solid transparent;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
[data-skin="material"] .wf-tabs > .is-active,
|
|
534
|
+
[data-skin="material"] .wf-tabs > [aria-selected="true"] {
|
|
535
|
+
color: var(--mk-accent);
|
|
536
|
+
border-bottom-color: var(--mk-accent);
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
/* ---------------------------------------------------------------- shell -- */
|
|
540
|
+
|
|
541
|
+
[data-skin="material"] .wf-nav {
|
|
542
|
+
display: flex;
|
|
543
|
+
align-items: center;
|
|
544
|
+
gap: 12px;
|
|
545
|
+
min-height: 64px;
|
|
546
|
+
padding: 0 16px;
|
|
547
|
+
font-size: 22px;
|
|
548
|
+
font-weight: 400;
|
|
549
|
+
background: var(--mk-surface-2);
|
|
550
|
+
border-radius: 0 0 var(--mk-radius-lg) var(--mk-radius-lg);
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
/* A navigation drawer is the tonal surface with the corners rounded on the
|
|
554
|
+
side that faces the content. */
|
|
555
|
+
[data-skin="material"] .wf-sidebar {
|
|
556
|
+
display: flex;
|
|
557
|
+
flex: 0 0 auto;
|
|
558
|
+
flex-direction: column;
|
|
559
|
+
gap: 4px;
|
|
560
|
+
width: 240px;
|
|
561
|
+
padding: 12px;
|
|
562
|
+
background: var(--mk-surface-2);
|
|
563
|
+
border-radius: 0 var(--mk-radius-lg) var(--mk-radius-lg) 0;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
[data-skin="material"] .wf-sidebar > .wf-row {
|
|
567
|
+
gap: 12px;
|
|
568
|
+
min-height: 44px;
|
|
569
|
+
padding: 0 16px;
|
|
570
|
+
font-size: 14px;
|
|
571
|
+
font-weight: 500;
|
|
572
|
+
border-radius: var(--mk-radius-pill);
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
[data-skin="material"] .wf-sidebar > .wf-row.is-active,
|
|
576
|
+
[data-skin="material"] .wf-sidebar > .is-active {
|
|
577
|
+
color: var(--mk-on-container);
|
|
578
|
+
background: var(--mk-accent-container);
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
/* ----------------------------------------------------------------- data -- */
|
|
582
|
+
|
|
583
|
+
/* A filled list row is the surface container, and the divider between rows is
|
|
584
|
+
inset instead of full width. */
|
|
585
|
+
[data-skin="material"] .wf-table {
|
|
586
|
+
--mk-rows: 4;
|
|
587
|
+
--mk-cols: 3;
|
|
588
|
+
height: calc(var(--mk-rows) * 52px);
|
|
589
|
+
background-color: var(--mk-surface);
|
|
590
|
+
background-image: repeating-linear-gradient(
|
|
591
|
+
to bottom,
|
|
592
|
+
transparent 0 51px,
|
|
593
|
+
var(--mk-line) 51px 52px
|
|
594
|
+
);
|
|
595
|
+
border-radius: var(--mk-radius-lg);
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
[data-skin="material"] .wf-table[data-rows="1"] { --mk-rows: 1; }
|
|
599
|
+
[data-skin="material"] .wf-table[data-rows="2"] { --mk-rows: 2; }
|
|
600
|
+
[data-skin="material"] .wf-table[data-rows="3"] { --mk-rows: 3; }
|
|
601
|
+
[data-skin="material"] .wf-table[data-rows="4"] { --mk-rows: 4; }
|
|
602
|
+
[data-skin="material"] .wf-table[data-rows="5"] { --mk-rows: 5; }
|
|
603
|
+
[data-skin="material"] .wf-table[data-rows="6"] { --mk-rows: 6; }
|
|
604
|
+
[data-skin="material"] .wf-table[data-rows="8"] { --mk-rows: 8; }
|
|
605
|
+
[data-skin="material"] .wf-table[data-rows="10"] { --mk-rows: 10; }
|
|
606
|
+
|
|
607
|
+
[data-skin="material"] .wf-table[data-cols] {
|
|
608
|
+
background-image: repeating-linear-gradient(
|
|
609
|
+
to bottom,
|
|
610
|
+
transparent 0 51px,
|
|
611
|
+
var(--mk-line) 51px 52px
|
|
612
|
+
),
|
|
613
|
+
repeating-linear-gradient(
|
|
614
|
+
to right,
|
|
615
|
+
transparent 0 calc(100% / var(--mk-cols) - 1px),
|
|
616
|
+
var(--mk-line) calc(100% / var(--mk-cols) - 1px) calc(100% / var(--mk-cols))
|
|
617
|
+
);
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
[data-skin="material"] .wf-table[data-cols="1"] { --mk-cols: 1; }
|
|
621
|
+
[data-skin="material"] .wf-table[data-cols="2"] { --mk-cols: 2; }
|
|
622
|
+
[data-skin="material"] .wf-table[data-cols="3"] { --mk-cols: 3; }
|
|
623
|
+
[data-skin="material"] .wf-table[data-cols="4"] { --mk-cols: 4; }
|
|
624
|
+
[data-skin="material"] .wf-table[data-cols="5"] { --mk-cols: 5; }
|
|
625
|
+
[data-skin="material"] .wf-table[data-cols="6"] { --mk-cols: 6; }
|
|
626
|
+
|
|
627
|
+
[data-skin="material"] .wf-chart {
|
|
628
|
+
display: flex;
|
|
629
|
+
align-items: flex-end;
|
|
630
|
+
gap: 8px;
|
|
631
|
+
height: 160px;
|
|
632
|
+
padding: 0 0 0 1px;
|
|
633
|
+
border-bottom: 1px solid var(--mk-line);
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
[data-skin="material"] .wf-chart > * {
|
|
637
|
+
flex: 1 1 0;
|
|
638
|
+
min-height: 4px;
|
|
639
|
+
background: var(--mk-accent-container);
|
|
640
|
+
border-radius: 4px 4px 0 0;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
[data-skin="material"] .wf-chart > .is-accent {
|
|
644
|
+
background: var(--mk-accent);
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
/* -------------------------------------------------------------- overlay -- */
|
|
648
|
+
|
|
649
|
+
[data-skin="material"] .wf-scrim {
|
|
650
|
+
position: absolute;
|
|
651
|
+
inset: 0;
|
|
652
|
+
z-index: 2;
|
|
653
|
+
background: rgba(0, 0, 0, 0.32);
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
/* A Material 3 dialog is a 28px rounded tonal box with a headline, a body and
|
|
657
|
+
two text buttons at the end of its last row. */
|
|
658
|
+
[data-skin="material"] .wf-modal {
|
|
659
|
+
position: absolute;
|
|
660
|
+
top: 50%;
|
|
661
|
+
left: 50%;
|
|
662
|
+
z-index: 3;
|
|
663
|
+
display: flex;
|
|
664
|
+
flex-direction: column;
|
|
665
|
+
gap: 16px;
|
|
666
|
+
width: min(420px, 86%);
|
|
667
|
+
max-height: 84%;
|
|
668
|
+
padding: 24px;
|
|
669
|
+
overflow: auto;
|
|
670
|
+
background: var(--mk-surface-2);
|
|
671
|
+
border-radius: var(--mk-radius-xl);
|
|
672
|
+
box-shadow: var(--mk-shadow-3);
|
|
673
|
+
transform: translate(-50%, -50%);
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
[data-skin="material"] .wf-toast {
|
|
677
|
+
position: absolute;
|
|
678
|
+
bottom: 24px;
|
|
679
|
+
left: 50%;
|
|
680
|
+
z-index: 4;
|
|
681
|
+
display: flex;
|
|
682
|
+
align-items: center;
|
|
683
|
+
gap: 12px;
|
|
684
|
+
max-width: 86%;
|
|
685
|
+
padding: 14px 16px;
|
|
686
|
+
font-size: 14px;
|
|
687
|
+
color: var(--mk-surface-2);
|
|
688
|
+
background: var(--mk-fg);
|
|
689
|
+
border-radius: var(--mk-radius);
|
|
690
|
+
box-shadow: var(--mk-shadow-3);
|
|
691
|
+
transform: translateX(-50%);
|
|
692
|
+
}
|