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,1078 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* rshow theme "default": mockup
|
|
3
|
+
*
|
|
4
|
+
* A mockup kit in three layers.
|
|
5
|
+
*
|
|
6
|
+
* tool this file and mockup.js: the canvas, the toolbar, the notes and
|
|
7
|
+
* the comments. Carbon tokens, both modes, no colour of its own.
|
|
8
|
+
* frames this file again: a browser, a phone, a tablet, a desktop window
|
|
9
|
+
* and a frameless window, drawn in CSS. Generic chrome, not any
|
|
10
|
+
* vendor's artwork or icon set.
|
|
11
|
+
* skins skins/wire.css, skins/sketch.css, skins/custom.css: what is drawn
|
|
12
|
+
* inside a screen. One skin loads at a time and mockup.js swaps the
|
|
13
|
+
* link.
|
|
14
|
+
*
|
|
15
|
+
* Nothing here styles the content of a screen beyond the default it inherits.
|
|
16
|
+
* A screen is the target product, so it looks like the target product and not
|
|
17
|
+
* like rshow. That is why a screen carries its own --mk-* tokens: --mk-bg,
|
|
18
|
+
* --mk-fg, --mk-accent, --mk-radius, --mk-font and the rest, which the skin
|
|
19
|
+
* reads and a preset may overwrite.
|
|
20
|
+
*
|
|
21
|
+
* Markup
|
|
22
|
+
*
|
|
23
|
+
* <main class="mockup" data-skin="wire" data-store="../_data/mockup-comments">
|
|
24
|
+
* <section class="artboard" id="gallery" data-frame="browser"
|
|
25
|
+
* data-title="Gallery" data-url="art.example.com/admin"
|
|
26
|
+
* data-states="empty,loading,error" data-w="1280" data-h="800">
|
|
27
|
+
* ...blocks in the skin's classes...
|
|
28
|
+
* </section>
|
|
29
|
+
* </main>
|
|
30
|
+
*
|
|
31
|
+
* mockup.js builds the toolbar, the frame chrome, the title, the state tabs,
|
|
32
|
+
* the notes panel and the comments panel. With JavaScript off the artboards are
|
|
33
|
+
* a plain column of screens and the skin still draws them: the mockup is a
|
|
34
|
+
* viewer for a designer's eye, so that is the whole no script story.
|
|
35
|
+
*
|
|
36
|
+
* Link order: fonts.css, tokens.css, mockup.css, one skin, then mode.js in the
|
|
37
|
+
* head and mockup.js (defer). The skin comes last so it restyles the screen.
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
/* ------------------------------------------------------------ the ground -- */
|
|
41
|
+
|
|
42
|
+
*,
|
|
43
|
+
*::before,
|
|
44
|
+
*::after {
|
|
45
|
+
box-sizing: border-box;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
html,
|
|
49
|
+
body {
|
|
50
|
+
height: 100%;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
body {
|
|
54
|
+
margin: 0;
|
|
55
|
+
background: var(--bg-shell, #f4f4f4);
|
|
56
|
+
color: var(--fg, #161616);
|
|
57
|
+
font-family: var(--font-sans, system-ui, sans-serif);
|
|
58
|
+
font-size: 14px;
|
|
59
|
+
line-height: 1.45;
|
|
60
|
+
-webkit-font-smoothing: antialiased;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
:focus-visible {
|
|
64
|
+
outline: 2px solid var(--accent, #0f62fe);
|
|
65
|
+
outline-offset: -2px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.mockup {
|
|
69
|
+
/* The screen. A skin sets these and a preset in that skin may overwrite
|
|
70
|
+
them. They are the only colours a screen ever uses. */
|
|
71
|
+
--mk-bg: #ffffff;
|
|
72
|
+
--mk-fg: #161616;
|
|
73
|
+
--mk-muted: #6f6f6f;
|
|
74
|
+
--mk-line: #8d8d8d;
|
|
75
|
+
--mk-fill: #e8e8e8;
|
|
76
|
+
--mk-accent: #0f62fe;
|
|
77
|
+
--mk-radius: 2px;
|
|
78
|
+
--mk-font: var(--font-sans, system-ui, sans-serif);
|
|
79
|
+
--mk-size: 14px;
|
|
80
|
+
--mk-gap: 12px;
|
|
81
|
+
--mk-pad: 0px;
|
|
82
|
+
|
|
83
|
+
/* The frame around a screen. Neutral on purpose: a device is a drawing of
|
|
84
|
+
hardware, not a piece of the tool. */
|
|
85
|
+
--mk-chrome-bg: #ececec;
|
|
86
|
+
--mk-chrome-bg-2: #dedede;
|
|
87
|
+
--mk-chrome-line: #c9c9c9;
|
|
88
|
+
--mk-chrome-fg: #4a4a4a;
|
|
89
|
+
--mk-bezel: #dcdcdc;
|
|
90
|
+
|
|
91
|
+
/* Tool drawing that sits on top of a screen: the drag region of a frameless
|
|
92
|
+
window, a hotspot. Fixed, because it is never seen through a mode. */
|
|
93
|
+
--mk-annot: #0f62fe;
|
|
94
|
+
|
|
95
|
+
position: fixed;
|
|
96
|
+
inset: 0;
|
|
97
|
+
display: grid;
|
|
98
|
+
grid-template-columns: minmax(0, 1fr) 0;
|
|
99
|
+
grid-template-rows: auto auto minmax(0, 1fr);
|
|
100
|
+
grid-template-areas:
|
|
101
|
+
"bar bar"
|
|
102
|
+
"nav side"
|
|
103
|
+
"stage side";
|
|
104
|
+
overflow: hidden;
|
|
105
|
+
background: var(--bg-shell, #f4f4f4);
|
|
106
|
+
color: var(--fg, #161616);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.mockup[data-view="focus"] {
|
|
110
|
+
grid-template-columns: minmax(0, 1fr) 340px;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/* --------------------------------------------------------------- toolbar -- */
|
|
114
|
+
|
|
115
|
+
.mk-toolbar {
|
|
116
|
+
grid-area: bar;
|
|
117
|
+
z-index: 7;
|
|
118
|
+
display: flex;
|
|
119
|
+
flex-wrap: wrap;
|
|
120
|
+
align-items: center;
|
|
121
|
+
gap: 4px 8px;
|
|
122
|
+
min-height: 48px;
|
|
123
|
+
padding: 8px 16px;
|
|
124
|
+
background: var(--bg, #ffffff);
|
|
125
|
+
border-bottom: 1px solid var(--border-subtle, #e0e0e0);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.mk-toolbar > * {
|
|
129
|
+
flex: 0 0 auto;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.mk-name {
|
|
133
|
+
margin-right: 4px;
|
|
134
|
+
font-size: 14px;
|
|
135
|
+
font-weight: 600;
|
|
136
|
+
color: var(--fg, #161616);
|
|
137
|
+
white-space: nowrap;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.mk-group {
|
|
141
|
+
display: flex;
|
|
142
|
+
align-items: center;
|
|
143
|
+
gap: 2px;
|
|
144
|
+
padding-left: 8px;
|
|
145
|
+
border-left: 1px solid var(--border-subtle, #e0e0e0);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.mk-button {
|
|
149
|
+
min-height: 32px;
|
|
150
|
+
padding: 0 10px;
|
|
151
|
+
font: inherit;
|
|
152
|
+
font-size: 13px;
|
|
153
|
+
line-height: 1;
|
|
154
|
+
color: var(--muted, #525252);
|
|
155
|
+
background: transparent;
|
|
156
|
+
border: 1px solid transparent;
|
|
157
|
+
border-radius: 0;
|
|
158
|
+
cursor: pointer;
|
|
159
|
+
-webkit-appearance: none;
|
|
160
|
+
appearance: none;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.mk-button:hover {
|
|
164
|
+
color: var(--fg, #161616);
|
|
165
|
+
background: var(--layer-01, #f4f4f4);
|
|
166
|
+
border-color: var(--border-subtle, #e0e0e0);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.mk-button[aria-pressed="true"] {
|
|
170
|
+
color: var(--bg, #ffffff);
|
|
171
|
+
background: var(--fg, #161616);
|
|
172
|
+
border-color: var(--fg, #161616);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.mk-button[disabled] {
|
|
176
|
+
color: var(--placeholder, #a8a8a8);
|
|
177
|
+
cursor: default;
|
|
178
|
+
background: transparent;
|
|
179
|
+
border-color: transparent;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.mk-zoom {
|
|
183
|
+
min-width: 48px;
|
|
184
|
+
font-size: 13px;
|
|
185
|
+
font-variant-numeric: tabular-nums;
|
|
186
|
+
text-align: center;
|
|
187
|
+
color: var(--muted, #525252);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.mk-field {
|
|
191
|
+
display: inline-flex;
|
|
192
|
+
align-items: center;
|
|
193
|
+
gap: 6px;
|
|
194
|
+
font-size: 13px;
|
|
195
|
+
color: var(--muted, #525252);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.mk-field select {
|
|
199
|
+
height: 32px;
|
|
200
|
+
padding: 0 6px;
|
|
201
|
+
font: inherit;
|
|
202
|
+
font-size: 13px;
|
|
203
|
+
color: var(--fg, #161616);
|
|
204
|
+
background: var(--bg, #ffffff);
|
|
205
|
+
border: 1px solid var(--border-subtle, #e0e0e0);
|
|
206
|
+
border-radius: 0;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.mk-hint {
|
|
210
|
+
margin: 0 0 0 auto;
|
|
211
|
+
font-size: 12px;
|
|
212
|
+
color: var(--muted, #525252);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/* ------------------------------------------------------------------ nav --- */
|
|
216
|
+
|
|
217
|
+
.mk-focusnav {
|
|
218
|
+
grid-area: nav;
|
|
219
|
+
z-index: 6;
|
|
220
|
+
display: none;
|
|
221
|
+
align-items: center;
|
|
222
|
+
gap: 8px;
|
|
223
|
+
padding: 6px 16px;
|
|
224
|
+
background: var(--bg, #ffffff);
|
|
225
|
+
border-bottom: 1px solid var(--border-subtle, #e0e0e0);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.mockup[data-view="focus"] .mk-focusnav,
|
|
229
|
+
.mockup[data-view="play"] .mk-focusnav {
|
|
230
|
+
display: flex;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.mk-trail {
|
|
234
|
+
min-width: 0;
|
|
235
|
+
font-size: 14px;
|
|
236
|
+
font-weight: 600;
|
|
237
|
+
overflow: hidden;
|
|
238
|
+
white-space: nowrap;
|
|
239
|
+
text-overflow: ellipsis;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.mk-count {
|
|
243
|
+
margin-left: auto;
|
|
244
|
+
font-size: 13px;
|
|
245
|
+
color: var(--muted, #525252);
|
|
246
|
+
font-variant-numeric: tabular-nums;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.mockup[data-view="play"] .mk-focusnav [data-mk="prev"],
|
|
250
|
+
.mockup[data-view="play"] .mk-focusnav [data-mk="next"] {
|
|
251
|
+
display: none;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/* ---------------------------------------------------------------- stage --- */
|
|
255
|
+
|
|
256
|
+
.mk-stage {
|
|
257
|
+
grid-area: stage;
|
|
258
|
+
position: relative;
|
|
259
|
+
overflow: hidden;
|
|
260
|
+
cursor: grab;
|
|
261
|
+
touch-action: none;
|
|
262
|
+
background: var(--bg-shell, #f4f4f4);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.mk-stage.is-panning {
|
|
266
|
+
cursor: grabbing;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.mk-world {
|
|
270
|
+
position: absolute;
|
|
271
|
+
top: 0;
|
|
272
|
+
left: 0;
|
|
273
|
+
display: flex;
|
|
274
|
+
flex-direction: column;
|
|
275
|
+
gap: 72px;
|
|
276
|
+
width: max-content;
|
|
277
|
+
padding: 56px;
|
|
278
|
+
transform-origin: 0 0;
|
|
279
|
+
will-change: transform;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.mk-row {
|
|
283
|
+
display: flex;
|
|
284
|
+
align-items: flex-start;
|
|
285
|
+
gap: 64px;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/* ------------------------------------------------------------- artboard --- */
|
|
289
|
+
|
|
290
|
+
.artboard {
|
|
291
|
+
position: relative;
|
|
292
|
+
width: max-content;
|
|
293
|
+
flex: 0 0 auto;
|
|
294
|
+
/* The default screen size, used before mockup.js reads data-w and data-h and
|
|
295
|
+
kept for the no script case. */
|
|
296
|
+
--mk-w: 1280px;
|
|
297
|
+
--mk-h: 800px;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.artboard[data-frame="phone"] {
|
|
301
|
+
--mk-w: 390px;
|
|
302
|
+
--mk-h: 844px;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.artboard[data-frame="tablet"] {
|
|
306
|
+
--mk-w: 834px;
|
|
307
|
+
--mk-h: 1112px;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.mk-head {
|
|
311
|
+
display: flex;
|
|
312
|
+
align-items: center;
|
|
313
|
+
gap: 12px;
|
|
314
|
+
flex-wrap: wrap;
|
|
315
|
+
margin-bottom: 10px;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.mk-title {
|
|
319
|
+
padding: 0;
|
|
320
|
+
font: inherit;
|
|
321
|
+
font-size: 14px;
|
|
322
|
+
font-weight: 600;
|
|
323
|
+
color: var(--fg, #161616);
|
|
324
|
+
background: none;
|
|
325
|
+
border: 0;
|
|
326
|
+
cursor: pointer;
|
|
327
|
+
text-align: left;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.mk-title:hover {
|
|
331
|
+
color: var(--accent, #0f62fe);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.mk-statebar {
|
|
335
|
+
display: flex;
|
|
336
|
+
gap: 2px;
|
|
337
|
+
margin-left: auto;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.mk-state {
|
|
341
|
+
min-height: 24px;
|
|
342
|
+
padding: 0 8px;
|
|
343
|
+
font: inherit;
|
|
344
|
+
font-size: 12px;
|
|
345
|
+
line-height: 1;
|
|
346
|
+
color: var(--muted, #525252);
|
|
347
|
+
background: transparent;
|
|
348
|
+
border: 1px solid var(--border-subtle, #e0e0e0);
|
|
349
|
+
border-radius: 0;
|
|
350
|
+
cursor: pointer;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.mk-state[aria-pressed="true"] {
|
|
354
|
+
color: var(--bg, #ffffff);
|
|
355
|
+
background: var(--fg, #161616);
|
|
356
|
+
border-color: var(--fg, #161616);
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
/* --------------------------------------------------------------- frames --- */
|
|
360
|
+
|
|
361
|
+
.mk-frame {
|
|
362
|
+
position: relative;
|
|
363
|
+
width: max-content;
|
|
364
|
+
background: var(--mk-chrome-bg);
|
|
365
|
+
border: 1px solid var(--mk-chrome-line);
|
|
366
|
+
border-radius: 7px;
|
|
367
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.mk-bar {
|
|
371
|
+
display: flex;
|
|
372
|
+
align-items: center;
|
|
373
|
+
gap: 8px;
|
|
374
|
+
height: 38px;
|
|
375
|
+
padding: 0 12px;
|
|
376
|
+
overflow: hidden;
|
|
377
|
+
font-family: var(--font-sans, system-ui, sans-serif);
|
|
378
|
+
font-size: 12px;
|
|
379
|
+
line-height: 1;
|
|
380
|
+
color: var(--mk-chrome-fg);
|
|
381
|
+
background: var(--mk-chrome-bg);
|
|
382
|
+
border-bottom: 1px solid var(--mk-chrome-line);
|
|
383
|
+
border-radius: 6px 6px 0 0;
|
|
384
|
+
user-select: none;
|
|
385
|
+
-webkit-user-select: none;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
.mk-win-title {
|
|
389
|
+
overflow: hidden;
|
|
390
|
+
max-width: 60%;
|
|
391
|
+
white-space: nowrap;
|
|
392
|
+
text-overflow: ellipsis;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.artboard[data-flush] .mk-screen {
|
|
396
|
+
--mk-pad: 0px;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.mk-screen {
|
|
400
|
+
position: relative;
|
|
401
|
+
width: var(--mk-w);
|
|
402
|
+
height: var(--mk-h);
|
|
403
|
+
padding: var(--mk-pad, 0);
|
|
404
|
+
overflow: hidden;
|
|
405
|
+
color-scheme: light;
|
|
406
|
+
color: var(--mk-fg);
|
|
407
|
+
background: var(--mk-bg);
|
|
408
|
+
font-family: var(--mk-font);
|
|
409
|
+
font-size: var(--mk-size);
|
|
410
|
+
line-height: 1.45;
|
|
411
|
+
border-radius: 0 0 6px 6px;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
/* ---- browser ---- */
|
|
415
|
+
|
|
416
|
+
.artboard[data-frame="browser"] .mk-bar {
|
|
417
|
+
display: block;
|
|
418
|
+
height: auto;
|
|
419
|
+
padding: 0;
|
|
420
|
+
background: var(--mk-chrome-bg-2);
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.mk-tabs {
|
|
424
|
+
display: flex;
|
|
425
|
+
align-items: flex-end;
|
|
426
|
+
gap: 2px;
|
|
427
|
+
padding: 6px 8px 0;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.mk-tab {
|
|
431
|
+
display: flex;
|
|
432
|
+
align-items: center;
|
|
433
|
+
gap: 6px;
|
|
434
|
+
min-width: 110px;
|
|
435
|
+
max-width: 220px;
|
|
436
|
+
height: 26px;
|
|
437
|
+
padding: 0 10px;
|
|
438
|
+
overflow: hidden;
|
|
439
|
+
font-size: 11px;
|
|
440
|
+
color: var(--mk-chrome-fg);
|
|
441
|
+
background: var(--mk-chrome-bg);
|
|
442
|
+
border: 1px solid var(--mk-chrome-line);
|
|
443
|
+
border-bottom: 0;
|
|
444
|
+
border-radius: 6px 6px 0 0;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.mk-tab[aria-selected="true"] {
|
|
448
|
+
color: var(--mk-fg);
|
|
449
|
+
background: var(--mk-bg);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
.mk-tab-title {
|
|
453
|
+
overflow: hidden;
|
|
454
|
+
white-space: nowrap;
|
|
455
|
+
text-overflow: ellipsis;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.mk-tab-add {
|
|
459
|
+
padding: 0 8px 4px;
|
|
460
|
+
font-size: 14px;
|
|
461
|
+
color: var(--mk-chrome-fg);
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
.mk-addr-row {
|
|
465
|
+
display: flex;
|
|
466
|
+
align-items: center;
|
|
467
|
+
gap: 8px;
|
|
468
|
+
padding: 6px 10px;
|
|
469
|
+
background: var(--mk-chrome-bg);
|
|
470
|
+
border-top: 1px solid var(--mk-chrome-line);
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
.mk-addr {
|
|
474
|
+
display: flex;
|
|
475
|
+
flex: 1;
|
|
476
|
+
align-items: center;
|
|
477
|
+
gap: 8px;
|
|
478
|
+
min-width: 0;
|
|
479
|
+
height: 24px;
|
|
480
|
+
padding: 0 10px;
|
|
481
|
+
overflow: hidden;
|
|
482
|
+
font-size: 11px;
|
|
483
|
+
color: var(--mk-chrome-fg);
|
|
484
|
+
background: var(--mk-bg);
|
|
485
|
+
border: 1px solid var(--mk-chrome-line);
|
|
486
|
+
border-radius: 12px;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
.mk-addr-lock {
|
|
490
|
+
display: block;
|
|
491
|
+
flex: 0 0 auto;
|
|
492
|
+
width: 8px;
|
|
493
|
+
height: 9px;
|
|
494
|
+
border: 1px solid currentColor;
|
|
495
|
+
border-radius: 1px;
|
|
496
|
+
opacity: 0.8;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
.mk-addr-text {
|
|
500
|
+
overflow: hidden;
|
|
501
|
+
white-space: nowrap;
|
|
502
|
+
text-overflow: ellipsis;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
.mk-addr-menu {
|
|
506
|
+
flex: 0 0 auto;
|
|
507
|
+
width: 3px;
|
|
508
|
+
height: 12px;
|
|
509
|
+
margin-left: auto;
|
|
510
|
+
background: currentColor;
|
|
511
|
+
border-radius: 1px;
|
|
512
|
+
opacity: 0.45;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
/* ---- phone and tablet ---- */
|
|
516
|
+
|
|
517
|
+
.artboard[data-frame="phone"] .mk-frame {
|
|
518
|
+
padding: 10px;
|
|
519
|
+
background: var(--mk-bezel);
|
|
520
|
+
border-radius: 40px;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
.artboard[data-frame="phone"] .mk-bar,
|
|
524
|
+
.artboard[data-frame="tablet"] .mk-bar {
|
|
525
|
+
height: 30px;
|
|
526
|
+
padding: 0 16px;
|
|
527
|
+
font-size: 11px;
|
|
528
|
+
font-weight: 600;
|
|
529
|
+
color: var(--mk-fg);
|
|
530
|
+
background: var(--mk-bg);
|
|
531
|
+
border: 0;
|
|
532
|
+
border-radius: 30px 30px 0 0;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
.artboard[data-frame="phone"] .mk-bar {
|
|
536
|
+
justify-content: space-between;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
.artboard[data-frame="phone"] .mk-screen {
|
|
540
|
+
border-radius: 0 0 30px 30px;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
.artboard[data-frame="tablet"] .mk-frame {
|
|
544
|
+
padding: 14px;
|
|
545
|
+
background: var(--mk-bezel);
|
|
546
|
+
border-radius: 26px;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
.artboard[data-frame="tablet"] .mk-bar {
|
|
550
|
+
border-radius: 14px 14px 0 0;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
.artboard[data-frame="tablet"] .mk-screen {
|
|
554
|
+
border-radius: 0 0 14px 14px;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
.mk-status-icons {
|
|
558
|
+
display: flex;
|
|
559
|
+
align-items: center;
|
|
560
|
+
gap: 4px;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
.mk-status-icons i {
|
|
564
|
+
display: block;
|
|
565
|
+
width: 10px;
|
|
566
|
+
height: 7px;
|
|
567
|
+
border: 1px solid var(--mk-fg);
|
|
568
|
+
border-radius: 1px;
|
|
569
|
+
opacity: 0.6;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
.mk-status-icons i:last-child {
|
|
573
|
+
width: 16px;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
/* ---- desktop ---- */
|
|
577
|
+
|
|
578
|
+
.artboard[data-frame="desktop"] .mk-bar {
|
|
579
|
+
height: 36px;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
.artboard[data-frame="desktop"][data-os="mac"] .mk-bar {
|
|
583
|
+
display: grid;
|
|
584
|
+
grid-template-columns: 64px 1fr 64px;
|
|
585
|
+
text-align: center;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
.mk-dots {
|
|
589
|
+
display: flex;
|
|
590
|
+
gap: 6px;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
.mk-dots i {
|
|
594
|
+
display: block;
|
|
595
|
+
width: 11px;
|
|
596
|
+
height: 11px;
|
|
597
|
+
background: var(--mk-chrome-bg);
|
|
598
|
+
border: 1px solid #b4b4b4;
|
|
599
|
+
border-radius: 50%;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
.mk-dots i:nth-child(2) {
|
|
603
|
+
opacity: 0.7;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
.mk-dots i:nth-child(3) {
|
|
607
|
+
opacity: 0.45;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
.artboard[data-frame="desktop"][data-os="windows"] .mk-bar {
|
|
611
|
+
position: relative;
|
|
612
|
+
justify-content: flex-start;
|
|
613
|
+
padding-right: 92px;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
.artboard[data-frame="desktop"][data-os="linux"] .mk-bar {
|
|
617
|
+
position: relative;
|
|
618
|
+
justify-content: center;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
.artboard[data-frame="desktop"][data-os="windows"] .mk-win-title,
|
|
622
|
+
.artboard[data-frame="desktop"][data-os="linux"] .mk-win-title {
|
|
623
|
+
max-width: 70%;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
.mk-win-controls {
|
|
627
|
+
position: absolute;
|
|
628
|
+
right: 10px;
|
|
629
|
+
display: flex;
|
|
630
|
+
align-items: center;
|
|
631
|
+
gap: 14px;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
.mk-ctl {
|
|
635
|
+
position: relative;
|
|
636
|
+
display: block;
|
|
637
|
+
width: 11px;
|
|
638
|
+
height: 11px;
|
|
639
|
+
color: var(--mk-chrome-fg);
|
|
640
|
+
opacity: 0.7;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
.mk-ctl--min::after {
|
|
644
|
+
content: "";
|
|
645
|
+
position: absolute;
|
|
646
|
+
right: 1px;
|
|
647
|
+
bottom: 3px;
|
|
648
|
+
left: 1px;
|
|
649
|
+
height: 1px;
|
|
650
|
+
background: currentColor;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
.mk-ctl--max {
|
|
654
|
+
border: 1px solid currentColor;
|
|
655
|
+
border-radius: 1px;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
.mk-ctl--close::before,
|
|
659
|
+
.mk-ctl--close::after {
|
|
660
|
+
content: "";
|
|
661
|
+
position: absolute;
|
|
662
|
+
top: 5px;
|
|
663
|
+
left: 0;
|
|
664
|
+
width: 11px;
|
|
665
|
+
height: 1px;
|
|
666
|
+
background: currentColor;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
.mk-ctl--close::before {
|
|
670
|
+
transform: rotate(45deg);
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
.mk-ctl--close::after {
|
|
674
|
+
transform: rotate(-45deg);
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
.mk-ctl--round {
|
|
678
|
+
border: 1px solid currentColor;
|
|
679
|
+
border-radius: 50%;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
/* ---- frameless and bare ---- */
|
|
683
|
+
|
|
684
|
+
.artboard[data-frame="bare"] .mk-frame {
|
|
685
|
+
background: transparent;
|
|
686
|
+
border: 0;
|
|
687
|
+
border-radius: 0;
|
|
688
|
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
.artboard[data-frame="bare"] .mk-screen {
|
|
692
|
+
border-radius: 0;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
.artboard[data-frame="custom"] .mk-screen {
|
|
696
|
+
border-radius: 7px;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
.mk-overlay {
|
|
700
|
+
position: absolute;
|
|
701
|
+
inset: 0;
|
|
702
|
+
pointer-events: none;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
.mk-drag-zone,
|
|
706
|
+
.mk-controls-zone {
|
|
707
|
+
position: absolute;
|
|
708
|
+
top: 0;
|
|
709
|
+
display: flex;
|
|
710
|
+
align-items: flex-start;
|
|
711
|
+
padding: 3px 6px;
|
|
712
|
+
font-family: var(--font-sans, system-ui, sans-serif);
|
|
713
|
+
font-size: 10px;
|
|
714
|
+
line-height: 1;
|
|
715
|
+
color: var(--mk-annot);
|
|
716
|
+
border: 1px dashed var(--mk-annot);
|
|
717
|
+
border-top: 0;
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
.mk-drag-zone {
|
|
721
|
+
right: 0;
|
|
722
|
+
left: 0;
|
|
723
|
+
height: var(--mk-drag, 36px);
|
|
724
|
+
justify-content: flex-start;
|
|
725
|
+
border-radius: 0 0 3px 3px;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
.mk-controls-zone {
|
|
729
|
+
right: 0;
|
|
730
|
+
width: 148px;
|
|
731
|
+
height: var(--mk-drag, 36px);
|
|
732
|
+
border-right: 0;
|
|
733
|
+
border-radius: 0 0 0 3px;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
.artboard[data-frame="custom"] .mk-screen .drag-region {
|
|
737
|
+
outline: 1px dashed var(--mk-annot);
|
|
738
|
+
outline-offset: -1px;
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
.mockup[data-view="play"] .mk-overlay {
|
|
742
|
+
display: none;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
.mockup[data-view="play"] .artboard[data-frame="custom"] .mk-screen .drag-region {
|
|
746
|
+
outline: 0;
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
/* ------------------------------------------------------------- the flow --- */
|
|
750
|
+
|
|
751
|
+
.mk-screen a {
|
|
752
|
+
color: inherit;
|
|
753
|
+
text-decoration: none;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
.mk-screen a,
|
|
757
|
+
.mk-screen [data-goto] {
|
|
758
|
+
cursor: pointer;
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
/* Play is the product with no tool drawing over it, and a number on a screen
|
|
762
|
+
is tool drawing. */
|
|
763
|
+
.mockup[data-view="play"] .note-pin {
|
|
764
|
+
display: none;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
.mk-screen.mk-flash a,
|
|
768
|
+
.mk-screen.mk-flash [data-goto] {
|
|
769
|
+
outline: 3px solid var(--mk-annot);
|
|
770
|
+
outline-offset: 2px;
|
|
771
|
+
background: rgba(15, 98, 254, 0.12);
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
/* ---------------------------------------------------------- annotations --- */
|
|
775
|
+
|
|
776
|
+
.note-pin {
|
|
777
|
+
position: absolute;
|
|
778
|
+
z-index: 5;
|
|
779
|
+
display: inline-flex;
|
|
780
|
+
align-items: center;
|
|
781
|
+
justify-content: center;
|
|
782
|
+
width: 20px;
|
|
783
|
+
height: 20px;
|
|
784
|
+
font-family: var(--font-sans, system-ui, sans-serif);
|
|
785
|
+
font-size: 11px;
|
|
786
|
+
font-weight: 600;
|
|
787
|
+
line-height: 1;
|
|
788
|
+
color: #ffffff;
|
|
789
|
+
background: #161616;
|
|
790
|
+
border: 2px solid #ffffff;
|
|
791
|
+
border-radius: 50%;
|
|
792
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
/* ------------------------------------------------------------- the state -- */
|
|
796
|
+
|
|
797
|
+
/* With JavaScript the tabs set data-state on the artboard and mockup.js shows
|
|
798
|
+
the blocks whose data-state list names the current state. A list may name
|
|
799
|
+
several, and "default" is the base screen, so data-state="default,error" is a
|
|
800
|
+
block that the error state keeps and the empty state drops. Without the
|
|
801
|
+
script only the blocks that name default are drawn. */
|
|
802
|
+
.artboard:not([data-state]) .mk-screen [data-state]:not([data-state*="default"]) {
|
|
803
|
+
display: none;
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
/* ------------------------------------------------------------ side panel -- */
|
|
807
|
+
|
|
808
|
+
.mk-side {
|
|
809
|
+
grid-area: side;
|
|
810
|
+
display: none;
|
|
811
|
+
flex-direction: column;
|
|
812
|
+
min-width: 0;
|
|
813
|
+
overflow: auto;
|
|
814
|
+
overscroll-behavior: contain;
|
|
815
|
+
background: var(--bg, #ffffff);
|
|
816
|
+
border-left: 1px solid var(--border-subtle, #e0e0e0);
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
.mockup[data-view="focus"] .mk-side {
|
|
820
|
+
display: flex;
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
.mk-panel {
|
|
824
|
+
padding: 0 0 12px;
|
|
825
|
+
border-bottom: 1px solid var(--border-subtle, #e0e0e0);
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
.mk-panel h2 {
|
|
829
|
+
margin: 0;
|
|
830
|
+
padding: 14px 16px 6px;
|
|
831
|
+
font-size: 13px;
|
|
832
|
+
font-weight: 600;
|
|
833
|
+
color: var(--muted, #525252);
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
.mk-note-list {
|
|
837
|
+
display: flex;
|
|
838
|
+
flex-direction: column;
|
|
839
|
+
gap: 4px;
|
|
840
|
+
margin: 0;
|
|
841
|
+
padding: 0;
|
|
842
|
+
list-style: none;
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
.mk-note {
|
|
846
|
+
display: flex;
|
|
847
|
+
gap: 10px;
|
|
848
|
+
padding: 4px 16px;
|
|
849
|
+
font-size: 13px;
|
|
850
|
+
line-height: 1.45;
|
|
851
|
+
color: var(--fg, #161616);
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
.mk-note-n {
|
|
855
|
+
display: inline-flex;
|
|
856
|
+
flex: 0 0 auto;
|
|
857
|
+
align-items: center;
|
|
858
|
+
justify-content: center;
|
|
859
|
+
width: 18px;
|
|
860
|
+
height: 18px;
|
|
861
|
+
font-size: 11px;
|
|
862
|
+
font-weight: 600;
|
|
863
|
+
color: var(--bg, #ffffff);
|
|
864
|
+
background: var(--fg, #161616);
|
|
865
|
+
border-radius: 50%;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
.mk-empty {
|
|
869
|
+
margin: 0;
|
|
870
|
+
padding: 4px 16px 8px;
|
|
871
|
+
font-size: 13px;
|
|
872
|
+
color: var(--muted, #525252);
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
.mk-comments {
|
|
876
|
+
display: flex;
|
|
877
|
+
flex-direction: column;
|
|
878
|
+
gap: 6px;
|
|
879
|
+
padding: 0 16px;
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
.mk-comment {
|
|
883
|
+
padding: 8px 10px;
|
|
884
|
+
font-size: 13px;
|
|
885
|
+
line-height: 1.45;
|
|
886
|
+
background: var(--layer-01, #f4f4f4);
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
.mk-comment p {
|
|
890
|
+
margin: 0;
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
.mk-comment-meta {
|
|
894
|
+
margin: 4px 0 0;
|
|
895
|
+
font-size: 11px;
|
|
896
|
+
color: var(--muted, #525252);
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
.mk-form {
|
|
900
|
+
display: flex;
|
|
901
|
+
flex-direction: column;
|
|
902
|
+
gap: 6px;
|
|
903
|
+
padding: 8px 16px 0;
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
.mk-form textarea {
|
|
907
|
+
width: 100%;
|
|
908
|
+
min-height: 56px;
|
|
909
|
+
padding: 8px;
|
|
910
|
+
font: inherit;
|
|
911
|
+
font-size: 13px;
|
|
912
|
+
line-height: 1.45;
|
|
913
|
+
color: var(--fg, #161616);
|
|
914
|
+
background: var(--bg, #ffffff);
|
|
915
|
+
border: 1px solid var(--border-subtle, #e0e0e0);
|
|
916
|
+
border-radius: 0;
|
|
917
|
+
resize: vertical;
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
.mk-form button {
|
|
921
|
+
align-self: flex-end;
|
|
922
|
+
min-height: 32px;
|
|
923
|
+
padding: 0 12px;
|
|
924
|
+
font: inherit;
|
|
925
|
+
font-size: 13px;
|
|
926
|
+
color: var(--bg, #ffffff);
|
|
927
|
+
background: var(--accent, #0f62fe);
|
|
928
|
+
border: 1px solid var(--accent, #0f62fe);
|
|
929
|
+
border-radius: 0;
|
|
930
|
+
cursor: pointer;
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
.mk-form button[disabled] {
|
|
934
|
+
color: var(--muted, #525252);
|
|
935
|
+
background: transparent;
|
|
936
|
+
border-color: var(--border-subtle, #e0e0e0);
|
|
937
|
+
opacity: 0.6;
|
|
938
|
+
cursor: default;
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
/* --------------------------------------------------------------- narrow --- */
|
|
942
|
+
|
|
943
|
+
@media (max-width: 860px) {
|
|
944
|
+
.mockup,
|
|
945
|
+
.mockup[data-view="focus"] {
|
|
946
|
+
grid-template-columns: minmax(0, 1fr);
|
|
947
|
+
grid-template-rows: auto auto minmax(0, 1fr);
|
|
948
|
+
grid-template-areas:
|
|
949
|
+
"bar"
|
|
950
|
+
"nav"
|
|
951
|
+
"stage"
|
|
952
|
+
"side";
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
.mockup[data-view="focus"] {
|
|
956
|
+
grid-template-rows: auto auto minmax(0, 1fr) minmax(120px, 38vh);
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
.mk-side {
|
|
960
|
+
grid-area: side;
|
|
961
|
+
border-top: 1px solid var(--border-subtle, #e0e0e0);
|
|
962
|
+
border-left: 0;
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
.mk-hint {
|
|
966
|
+
display: none;
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
@media (max-width: 520px) {
|
|
971
|
+
.mk-toolbar {
|
|
972
|
+
flex-wrap: nowrap;
|
|
973
|
+
gap: 2px 6px;
|
|
974
|
+
padding: 6px 10px;
|
|
975
|
+
overflow-x: auto;
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
.mk-field-text {
|
|
979
|
+
display: none;
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
.mk-name {
|
|
983
|
+
font-size: 13px;
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
/* ---------------------------------------------------------------- views --- */
|
|
988
|
+
|
|
989
|
+
@media screen {
|
|
990
|
+
.mockup[data-view="focus"] .artboard:not(.is-current),
|
|
991
|
+
.mockup[data-view="play"] .artboard:not(.is-current) {
|
|
992
|
+
display: none;
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
.mockup[data-view="play"] .mk-head {
|
|
996
|
+
display: none;
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
.mockup[data-view="play"] .mk-side {
|
|
1000
|
+
display: none;
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
/* ---------------------------------------------------------------- print --- */
|
|
1005
|
+
|
|
1006
|
+
@media print {
|
|
1007
|
+
@page {
|
|
1008
|
+
size: landscape;
|
|
1009
|
+
margin: 8mm;
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
html,
|
|
1013
|
+
body {
|
|
1014
|
+
height: auto;
|
|
1015
|
+
background: #ffffff;
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
.mockup,
|
|
1019
|
+
.mockup[data-view] {
|
|
1020
|
+
position: static;
|
|
1021
|
+
display: block;
|
|
1022
|
+
overflow: visible;
|
|
1023
|
+
background: #ffffff;
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
.mk-toolbar,
|
|
1027
|
+
.mk-focusnav,
|
|
1028
|
+
.mk-side,
|
|
1029
|
+
.mk-overlay,
|
|
1030
|
+
.mk-statebar,
|
|
1031
|
+
.mk-hint,
|
|
1032
|
+
.rshow-mode-toggle {
|
|
1033
|
+
display: none;
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
.mk-stage {
|
|
1037
|
+
position: static;
|
|
1038
|
+
overflow: visible;
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
.mk-world {
|
|
1042
|
+
position: static;
|
|
1043
|
+
display: block;
|
|
1044
|
+
padding: 0;
|
|
1045
|
+
/* The canvas transform is an inline style, so print has to outrank it. */
|
|
1046
|
+
transform: none !important;
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
.mk-row {
|
|
1050
|
+
display: block;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
.artboard,
|
|
1054
|
+
.artboard.is-current {
|
|
1055
|
+
display: block;
|
|
1056
|
+
margin: 0 0 6mm;
|
|
1057
|
+
zoom: 0.6;
|
|
1058
|
+
break-after: page;
|
|
1059
|
+
break-inside: avoid;
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
.artboard:last-child {
|
|
1063
|
+
break-after: auto;
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
.artboard .mk-head {
|
|
1067
|
+
display: block;
|
|
1068
|
+
margin-bottom: 2mm;
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
.mk-title {
|
|
1072
|
+
color: #161616;
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
.mk-frame {
|
|
1076
|
+
box-shadow: none;
|
|
1077
|
+
}
|
|
1078
|
+
}
|