@alwith/module-editor 0.0.0-stage → 0.1.0-rc.13
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 +94 -0
- package/README.md +47 -2
- package/THIRD_PARTY_NOTICES.md +3 -0
- package/dist/core.d.ts +56 -0
- package/dist/core.js +8 -0
- package/dist/index.d.ts +89 -0
- package/dist/index.js +1 -0
- package/dist/monaco.d.ts +16 -0
- package/dist/monaco.js +1 -0
- package/dist/new-tab.d.ts +43 -0
- package/dist/new-tab.js +1 -0
- package/dist/preview-source-mode-toggle.d.ts +8 -0
- package/dist/preview-source-mode-toggle.js +1 -0
- package/dist/previews/excel-data.d.ts +20 -0
- package/dist/previews/excel-data.js +3 -0
- package/dist/previews/excel-navigation.d.ts +4 -0
- package/dist/previews/excel-navigation.js +1 -0
- package/dist/previews/excel.d.ts +3 -0
- package/dist/previews/excel.js +1 -0
- package/dist/previews/html-resources.d.ts +3 -0
- package/dist/previews/html-resources.js +2 -0
- package/dist/previews/html-session.d.ts +8 -0
- package/dist/previews/html-session.js +1 -0
- package/dist/previews/html.d.ts +3 -0
- package/dist/previews/html.js +1 -0
- package/dist/previews/index.d.ts +83 -0
- package/dist/previews/index.js +1 -0
- package/dist/previews/markdown-outline.d.ts +6 -0
- package/dist/previews/markdown-outline.js +1 -0
- package/dist/previews/markdown-readonly.d.ts +4 -0
- package/dist/previews/markdown-readonly.js +2 -0
- package/dist/previews/markdown.css +918 -0
- package/dist/previews/markdown.d.ts +5 -0
- package/dist/previews/markdown.js +1 -0
- package/dist/previews/media-types.d.ts +1 -0
- package/dist/previews/media-types.js +1 -0
- package/dist/previews/media.d.ts +2 -0
- package/dist/previews/media.js +1 -0
- package/dist/previews/pdf-controls.d.ts +1 -0
- package/dist/previews/pdf-controls.js +1 -0
- package/dist/previews/pdf.d.ts +2 -0
- package/dist/previews/pdf.js +1 -0
- package/dist/previews/shared.d.ts +7 -0
- package/dist/previews/shared.js +1 -0
- package/dist/previews/styles.css +142 -0
- package/dist/previews/tiff.d.ts +2 -0
- package/dist/previews/tiff.js +1 -0
- package/dist/previews/viewers.css +221 -0
- package/dist/previews/word.d.ts +2 -0
- package/dist/previews/word.js +1 -0
- package/dist/quick-start-assets.d.ts +4 -0
- package/dist/quick-start-assets.js +1 -0
- package/dist/quick-start-data.d.ts +11 -0
- package/dist/quick-start-data.js +1 -0
- package/dist/quick-start-icons.d.ts +9 -0
- package/dist/quick-start-icons.js +1 -0
- package/dist/shortcut-hint.d.ts +4 -0
- package/dist/shortcut-hint.js +0 -0
- package/dist/styles.css +726 -0
- package/dist/workspace-assets.d.ts +2 -0
- package/dist/workspace-assets.js +1 -0
- package/dist/workspace-tabs.d.ts +27 -0
- package/dist/workspace-tabs.js +1 -0
- package/dist/workspace.d.ts +31 -0
- package/dist/workspace.js +1 -0
- package/package.json +163 -4
package/dist/styles.css
ADDED
|
@@ -0,0 +1,726 @@
|
|
|
1
|
+
.alwith-editor {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
height: 100%;
|
|
5
|
+
min-height: 0;
|
|
6
|
+
min-width: 0;
|
|
7
|
+
color: var(--foreground);
|
|
8
|
+
background: var(--background);
|
|
9
|
+
}
|
|
10
|
+
.alwith-editor button {
|
|
11
|
+
font: inherit;
|
|
12
|
+
font-size: 12px;
|
|
13
|
+
border: 1px solid var(--border);
|
|
14
|
+
border-radius: 6px;
|
|
15
|
+
padding: 4px 8px;
|
|
16
|
+
background: var(--background);
|
|
17
|
+
color: inherit;
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
}
|
|
20
|
+
.alwith-editor button:hover {
|
|
21
|
+
background: var(--muted);
|
|
22
|
+
}
|
|
23
|
+
.alwith-editor button:disabled {
|
|
24
|
+
opacity: 0.45;
|
|
25
|
+
cursor: default;
|
|
26
|
+
}
|
|
27
|
+
.alwith-editor-tabs {
|
|
28
|
+
display: flex;
|
|
29
|
+
overflow-x: auto;
|
|
30
|
+
flex-shrink: 0;
|
|
31
|
+
border-bottom: 1px solid var(--border);
|
|
32
|
+
}
|
|
33
|
+
.alwith-editor-tab {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-shrink: 0;
|
|
36
|
+
align-items: center;
|
|
37
|
+
border-bottom: 2px solid transparent;
|
|
38
|
+
padding: 4px;
|
|
39
|
+
}
|
|
40
|
+
.alwith-editor-tab[data-active="true"] {
|
|
41
|
+
border-bottom-color: var(--foreground);
|
|
42
|
+
background: var(--muted);
|
|
43
|
+
}
|
|
44
|
+
.alwith-editor-tab button {
|
|
45
|
+
border: 0;
|
|
46
|
+
background: transparent;
|
|
47
|
+
}
|
|
48
|
+
.alwith-editor-toolbar {
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
gap: 2px;
|
|
52
|
+
height: 36px;
|
|
53
|
+
flex-shrink: 0;
|
|
54
|
+
padding: 0 12px;
|
|
55
|
+
border-bottom: 1px solid var(--border);
|
|
56
|
+
}
|
|
57
|
+
.alwith-editor-toolbar-actions {
|
|
58
|
+
display: flex;
|
|
59
|
+
flex-shrink: 0;
|
|
60
|
+
align-items: center;
|
|
61
|
+
gap: 4px;
|
|
62
|
+
margin-inline-start: auto;
|
|
63
|
+
}
|
|
64
|
+
.alwith-editor-mode-toggle {
|
|
65
|
+
display: flex;
|
|
66
|
+
align-items: center;
|
|
67
|
+
}
|
|
68
|
+
.alwith-editor .alwith-editor-mode-toggle button {
|
|
69
|
+
display: inline-flex;
|
|
70
|
+
align-items: center;
|
|
71
|
+
justify-content: center;
|
|
72
|
+
min-width: 32px;
|
|
73
|
+
height: 32px;
|
|
74
|
+
padding: 0 8px;
|
|
75
|
+
border: 0;
|
|
76
|
+
border-radius: 0;
|
|
77
|
+
background: transparent;
|
|
78
|
+
}
|
|
79
|
+
.alwith-editor .alwith-editor-mode-toggle button:first-child {
|
|
80
|
+
border-radius: 6px 0 0 6px;
|
|
81
|
+
}
|
|
82
|
+
.alwith-editor .alwith-editor-mode-toggle button:last-child {
|
|
83
|
+
border-radius: 0 6px 6px 0;
|
|
84
|
+
}
|
|
85
|
+
.alwith-editor .alwith-editor-mode-toggle button:hover,
|
|
86
|
+
.alwith-editor .alwith-editor-mode-toggle button[aria-pressed="true"] {
|
|
87
|
+
background: var(--muted);
|
|
88
|
+
}
|
|
89
|
+
.alwith-editor-mode-toggle svg {
|
|
90
|
+
width: 16px;
|
|
91
|
+
height: 16px;
|
|
92
|
+
stroke-width: 1.5px;
|
|
93
|
+
}
|
|
94
|
+
.alwith-editor-toolbar > span {
|
|
95
|
+
flex: 1;
|
|
96
|
+
min-width: 0;
|
|
97
|
+
overflow: hidden;
|
|
98
|
+
white-space: nowrap;
|
|
99
|
+
text-overflow: ellipsis;
|
|
100
|
+
font-size: 11px;
|
|
101
|
+
color: var(--muted-foreground);
|
|
102
|
+
}
|
|
103
|
+
.alwith-editor-content {
|
|
104
|
+
flex: 1;
|
|
105
|
+
min-height: 0;
|
|
106
|
+
overflow: auto;
|
|
107
|
+
position: relative;
|
|
108
|
+
}
|
|
109
|
+
.alwith-editor-text {
|
|
110
|
+
display: block;
|
|
111
|
+
box-sizing: border-box;
|
|
112
|
+
resize: none;
|
|
113
|
+
width: 100%;
|
|
114
|
+
height: 100%;
|
|
115
|
+
border: 0;
|
|
116
|
+
outline: none;
|
|
117
|
+
padding: 20px;
|
|
118
|
+
background: transparent;
|
|
119
|
+
color: inherit;
|
|
120
|
+
font:
|
|
121
|
+
13px/1.7 ui-monospace,
|
|
122
|
+
monospace;
|
|
123
|
+
tab-size: 2;
|
|
124
|
+
}
|
|
125
|
+
.alwith-editor-empty {
|
|
126
|
+
display: grid;
|
|
127
|
+
place-content: center;
|
|
128
|
+
flex: 1;
|
|
129
|
+
height: 100%;
|
|
130
|
+
padding: 24px;
|
|
131
|
+
text-align: center;
|
|
132
|
+
font-size: 13px;
|
|
133
|
+
color: var(--muted-foreground);
|
|
134
|
+
}
|
|
135
|
+
.alwith-editor-notice {
|
|
136
|
+
padding: 8px 12px;
|
|
137
|
+
font-size: 12px;
|
|
138
|
+
background: var(--muted);
|
|
139
|
+
display: flex;
|
|
140
|
+
align-items: center;
|
|
141
|
+
gap: 8px;
|
|
142
|
+
}
|
|
143
|
+
.alwith-editor-image-preview {
|
|
144
|
+
display: flex;
|
|
145
|
+
flex-direction: column;
|
|
146
|
+
height: 100%;
|
|
147
|
+
min-height: 0;
|
|
148
|
+
}
|
|
149
|
+
.alwith-editor-image-controls {
|
|
150
|
+
display: flex;
|
|
151
|
+
justify-content: center;
|
|
152
|
+
gap: 6px;
|
|
153
|
+
padding: 8px;
|
|
154
|
+
border-bottom: 1px solid var(--border);
|
|
155
|
+
}
|
|
156
|
+
.alwith-editor-image-viewport {
|
|
157
|
+
flex: 1;
|
|
158
|
+
min-height: 0;
|
|
159
|
+
overflow: auto;
|
|
160
|
+
}
|
|
161
|
+
.alwith-editor-image-canvas {
|
|
162
|
+
display: flex;
|
|
163
|
+
align-items: center;
|
|
164
|
+
justify-content: center;
|
|
165
|
+
box-sizing: border-box;
|
|
166
|
+
min-width: 100%;
|
|
167
|
+
min-height: 100%;
|
|
168
|
+
width: max-content;
|
|
169
|
+
padding: 20px;
|
|
170
|
+
}
|
|
171
|
+
.alwith-editor-image {
|
|
172
|
+
display: block;
|
|
173
|
+
flex-shrink: 0;
|
|
174
|
+
object-fit: contain;
|
|
175
|
+
}
|
|
176
|
+
.alwith-editor-breadcrumbs {
|
|
177
|
+
flex: 1;
|
|
178
|
+
min-width: 0;
|
|
179
|
+
overflow: hidden;
|
|
180
|
+
white-space: nowrap;
|
|
181
|
+
text-overflow: ellipsis;
|
|
182
|
+
font-size: 12px;
|
|
183
|
+
color: var(--muted-foreground);
|
|
184
|
+
}
|
|
185
|
+
.alwith-editor-breadcrumbs button {
|
|
186
|
+
border: 0;
|
|
187
|
+
padding: 2px 4px;
|
|
188
|
+
background: transparent;
|
|
189
|
+
}
|
|
190
|
+
.alwith-editor-breadcrumb-separator {
|
|
191
|
+
padding: 0 3px;
|
|
192
|
+
}
|
|
193
|
+
.alwith-editor-tab[data-transient="true"] [role="tab"] {
|
|
194
|
+
font-style: italic;
|
|
195
|
+
}
|
|
196
|
+
.alwith-editor-tab[draggable] {
|
|
197
|
+
cursor: grab;
|
|
198
|
+
}
|
|
199
|
+
.alwith-editor :focus-visible {
|
|
200
|
+
outline: 2px solid var(--ring);
|
|
201
|
+
outline-offset: -2px;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.alwith-editor-content,
|
|
205
|
+
.alwith-editor-text {
|
|
206
|
+
scrollbar-width: thin;
|
|
207
|
+
scrollbar-color: color-mix(in srgb, var(--foreground) 14%, transparent) transparent;
|
|
208
|
+
}
|
|
209
|
+
.alwith-editor-content::-webkit-scrollbar {
|
|
210
|
+
width: 6px;
|
|
211
|
+
height: 6px;
|
|
212
|
+
}
|
|
213
|
+
.alwith-editor-content::-webkit-scrollbar-track {
|
|
214
|
+
background: transparent;
|
|
215
|
+
}
|
|
216
|
+
.alwith-editor-content::-webkit-scrollbar-thumb {
|
|
217
|
+
background: color-mix(in srgb, var(--foreground) 14%, transparent);
|
|
218
|
+
border-radius: 999px;
|
|
219
|
+
}
|
|
220
|
+
.alwith-editor-content::-webkit-scrollbar-thumb:hover {
|
|
221
|
+
background: color-mix(in srgb, var(--foreground) 28%, transparent);
|
|
222
|
+
}
|
|
223
|
+
.alwith-editor-text::-webkit-scrollbar {
|
|
224
|
+
width: 6px;
|
|
225
|
+
height: 6px;
|
|
226
|
+
}
|
|
227
|
+
.alwith-editor-text::-webkit-scrollbar-track {
|
|
228
|
+
background: transparent;
|
|
229
|
+
}
|
|
230
|
+
.alwith-editor-text::-webkit-scrollbar-thumb {
|
|
231
|
+
background: color-mix(in srgb, var(--foreground) 14%, transparent);
|
|
232
|
+
border-radius: 999px;
|
|
233
|
+
}
|
|
234
|
+
.alwith-editor-text::-webkit-scrollbar-thumb:hover {
|
|
235
|
+
background: color-mix(in srgb, var(--foreground) 28%, transparent);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.alwith-editor-tabs {
|
|
239
|
+
scrollbar-width: none;
|
|
240
|
+
overscroll-behavior-x: contain;
|
|
241
|
+
}
|
|
242
|
+
.alwith-editor-tabs::-webkit-scrollbar {
|
|
243
|
+
display: none;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.alwith-editor-menu {
|
|
247
|
+
min-width: 160px;
|
|
248
|
+
padding: 4px;
|
|
249
|
+
border: 1px solid var(--border);
|
|
250
|
+
border-radius: 6px;
|
|
251
|
+
background: var(--popover);
|
|
252
|
+
color: var(--popover-foreground);
|
|
253
|
+
font: 12px system-ui;
|
|
254
|
+
box-shadow: 0 4px 16px color-mix(in srgb, var(--foreground) 10%, transparent);
|
|
255
|
+
}
|
|
256
|
+
.alwith-editor-menu-item {
|
|
257
|
+
padding: 6px 10px;
|
|
258
|
+
border-radius: 3px;
|
|
259
|
+
cursor: pointer;
|
|
260
|
+
}
|
|
261
|
+
.alwith-editor-menu-item[data-highlighted] {
|
|
262
|
+
background: var(--accent);
|
|
263
|
+
}
|
|
264
|
+
.alwith-editor-menu-item[data-disabled] {
|
|
265
|
+
opacity: 0.45;
|
|
266
|
+
cursor: default;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/* Desktop tab geometry; the host supplies its semantic theme tokens. */
|
|
270
|
+
.alwith-workspace-tabbar {
|
|
271
|
+
--tab-bar-bg: var(--workspace-tab-bar, color-mix(in srgb, var(--muted) 60%, transparent));
|
|
272
|
+
--tab-active-bg: var(--workspace-tab-active, var(--background));
|
|
273
|
+
--tab-rail-bg: var(--tab-active-bg);
|
|
274
|
+
--tab-active-fg: var(--workspace-tab-foreground, var(--foreground));
|
|
275
|
+
--tab-inactive-fg: var(--muted-foreground);
|
|
276
|
+
--tab-divider: var(--border);
|
|
277
|
+
--tab-accent: var(--workspace-tab-accent, transparent);
|
|
278
|
+
display: flex;
|
|
279
|
+
position: relative;
|
|
280
|
+
align-items: end;
|
|
281
|
+
flex-shrink: 0;
|
|
282
|
+
height: 40px;
|
|
283
|
+
padding-inline: 4px;
|
|
284
|
+
background: var(--tab-bar-bg);
|
|
285
|
+
}
|
|
286
|
+
.alwith-workspace-tabbar::after {
|
|
287
|
+
content: "";
|
|
288
|
+
position: absolute;
|
|
289
|
+
inset-inline: 0;
|
|
290
|
+
bottom: 0;
|
|
291
|
+
height: 2px;
|
|
292
|
+
background: var(--tab-rail-bg);
|
|
293
|
+
pointer-events: none;
|
|
294
|
+
}
|
|
295
|
+
.alwith-workspace-tabbar[data-empty="true"] {
|
|
296
|
+
background: transparent;
|
|
297
|
+
}
|
|
298
|
+
.alwith-workspace-tabbar[data-empty="true"]::after {
|
|
299
|
+
display: none;
|
|
300
|
+
}
|
|
301
|
+
.alwith-workspace-tabbar > :not(.alwith-workspace-tab-scroll) {
|
|
302
|
+
align-self: center;
|
|
303
|
+
flex-shrink: 0;
|
|
304
|
+
}
|
|
305
|
+
.alwith-workspace-tab-scroll {
|
|
306
|
+
display: flex;
|
|
307
|
+
position: relative;
|
|
308
|
+
flex: 1;
|
|
309
|
+
min-width: 0;
|
|
310
|
+
height: 100%;
|
|
311
|
+
align-items: end;
|
|
312
|
+
overflow-x: auto;
|
|
313
|
+
overflow-y: hidden;
|
|
314
|
+
scrollbar-width: none;
|
|
315
|
+
overscroll-behavior-x: contain;
|
|
316
|
+
}
|
|
317
|
+
.alwith-workspace-tab-scroll::-webkit-scrollbar {
|
|
318
|
+
display: none;
|
|
319
|
+
}
|
|
320
|
+
.alwith-workspace-tablist {
|
|
321
|
+
display: contents;
|
|
322
|
+
}
|
|
323
|
+
.alwith-workspace-tab {
|
|
324
|
+
position: relative;
|
|
325
|
+
display: flex;
|
|
326
|
+
align-items: center;
|
|
327
|
+
flex-shrink: 0;
|
|
328
|
+
height: 32px;
|
|
329
|
+
min-width: 88px;
|
|
330
|
+
max-width: 168px;
|
|
331
|
+
padding-inline: 12px;
|
|
332
|
+
margin-inline: 2px;
|
|
333
|
+
margin-bottom: 1px;
|
|
334
|
+
color: var(--tab-inactive-fg);
|
|
335
|
+
border-radius: 8px;
|
|
336
|
+
touch-action: none;
|
|
337
|
+
user-select: none;
|
|
338
|
+
}
|
|
339
|
+
.alwith-workspace-tab:first-child {
|
|
340
|
+
margin-inline-start: 0;
|
|
341
|
+
}
|
|
342
|
+
.alwith-workspace-tab[data-active="true"] {
|
|
343
|
+
z-index: 1;
|
|
344
|
+
color: var(--tab-active-fg);
|
|
345
|
+
background: var(--tab-active-bg);
|
|
346
|
+
border-radius: 6px 6px 0 0;
|
|
347
|
+
box-shadow: inset 0 2px 0 var(--tab-accent);
|
|
348
|
+
}
|
|
349
|
+
.alwith-workspace-tab[data-active="true"]::before,
|
|
350
|
+
.alwith-workspace-tab[data-active="true"]::after {
|
|
351
|
+
content: "";
|
|
352
|
+
position: absolute;
|
|
353
|
+
bottom: 0;
|
|
354
|
+
height: 18px;
|
|
355
|
+
width: 18px;
|
|
356
|
+
pointer-events: none;
|
|
357
|
+
}
|
|
358
|
+
.alwith-workspace-tab[data-active="true"]::before {
|
|
359
|
+
left: -18px;
|
|
360
|
+
background: radial-gradient(circle at 0% 0%, transparent 18px, var(--tab-rail-bg) 18.5px);
|
|
361
|
+
}
|
|
362
|
+
.alwith-workspace-tab[data-active="true"]::after {
|
|
363
|
+
right: -18px;
|
|
364
|
+
background: radial-gradient(circle at 100% 0%, transparent 18px, var(--tab-rail-bg) 18.5px);
|
|
365
|
+
}
|
|
366
|
+
.alwith-workspace-tab[data-divider="true"] {
|
|
367
|
+
background-image: linear-gradient(var(--tab-divider), var(--tab-divider));
|
|
368
|
+
background-position: left center;
|
|
369
|
+
background-size: 1px 16px;
|
|
370
|
+
background-repeat: no-repeat;
|
|
371
|
+
}
|
|
372
|
+
.alwith-workspace-tab[data-divider="true"]:hover,
|
|
373
|
+
.alwith-workspace-tab:hover + .alwith-workspace-tab {
|
|
374
|
+
background-image: none;
|
|
375
|
+
}
|
|
376
|
+
.alwith-workspace-tab[data-dragging="true"] {
|
|
377
|
+
opacity: 0.4;
|
|
378
|
+
}
|
|
379
|
+
.alwith-workspace-tab[data-drop-before="true"] {
|
|
380
|
+
outline: 2px solid var(--ring);
|
|
381
|
+
outline-offset: -2px;
|
|
382
|
+
}
|
|
383
|
+
.alwith-editor .alwith-workspace-tab button {
|
|
384
|
+
position: relative;
|
|
385
|
+
z-index: 1;
|
|
386
|
+
display: flex;
|
|
387
|
+
align-items: center;
|
|
388
|
+
min-width: 0;
|
|
389
|
+
border: 0;
|
|
390
|
+
background: transparent;
|
|
391
|
+
color: inherit;
|
|
392
|
+
padding: 0;
|
|
393
|
+
font-size: 12px;
|
|
394
|
+
}
|
|
395
|
+
.alwith-workspace-tab-content {
|
|
396
|
+
display: flex;
|
|
397
|
+
align-items: center;
|
|
398
|
+
min-width: 0;
|
|
399
|
+
gap: 4px;
|
|
400
|
+
flex: 1;
|
|
401
|
+
height: 100%;
|
|
402
|
+
font-size: 12px;
|
|
403
|
+
border-radius: 0;
|
|
404
|
+
}
|
|
405
|
+
.alwith-workspace-tab-title {
|
|
406
|
+
overflow: hidden;
|
|
407
|
+
text-overflow: ellipsis;
|
|
408
|
+
white-space: nowrap;
|
|
409
|
+
}
|
|
410
|
+
.alwith-workspace-tab[data-transient="true"] .alwith-workspace-tab-title {
|
|
411
|
+
font-style: italic;
|
|
412
|
+
}
|
|
413
|
+
.alwith-workspace-tab-icon {
|
|
414
|
+
display: flex;
|
|
415
|
+
flex-shrink: 0;
|
|
416
|
+
width: 16px;
|
|
417
|
+
height: 16px;
|
|
418
|
+
}
|
|
419
|
+
.alwith-workspace-tab-icon > * {
|
|
420
|
+
width: 100%;
|
|
421
|
+
height: 100%;
|
|
422
|
+
}
|
|
423
|
+
.alwith-editor .alwith-workspace-tab-close {
|
|
424
|
+
position: relative;
|
|
425
|
+
display: inline-flex;
|
|
426
|
+
align-items: center;
|
|
427
|
+
z-index: 1;
|
|
428
|
+
cursor: pointer;
|
|
429
|
+
width: 16px;
|
|
430
|
+
height: 16px;
|
|
431
|
+
flex-shrink: 0;
|
|
432
|
+
justify-content: center;
|
|
433
|
+
margin-inline-start: 4px;
|
|
434
|
+
border-radius: 4px;
|
|
435
|
+
opacity: 0;
|
|
436
|
+
}
|
|
437
|
+
.alwith-workspace-tab-close svg {
|
|
438
|
+
width: 12px;
|
|
439
|
+
height: 12px;
|
|
440
|
+
}
|
|
441
|
+
.alwith-editor .alwith-workspace-tab[data-active="true"] .alwith-workspace-tab-close,
|
|
442
|
+
.alwith-workspace-tab:hover .alwith-workspace-tab-close,
|
|
443
|
+
.alwith-workspace-tab:focus-within .alwith-workspace-tab-close {
|
|
444
|
+
opacity: 0.5;
|
|
445
|
+
}
|
|
446
|
+
.alwith-editor .alwith-workspace-tab-close:hover {
|
|
447
|
+
opacity: 1;
|
|
448
|
+
background: var(--muted);
|
|
449
|
+
}
|
|
450
|
+
.alwith-workspace-tab[data-dirty="true"] .alwith-workspace-tab-close {
|
|
451
|
+
opacity: 0.7;
|
|
452
|
+
}
|
|
453
|
+
.alwith-workspace-tab[data-dirty="true"] .alwith-workspace-tab-close::before {
|
|
454
|
+
content: "";
|
|
455
|
+
position: absolute;
|
|
456
|
+
width: 6px;
|
|
457
|
+
height: 6px;
|
|
458
|
+
border-radius: 50%;
|
|
459
|
+
background: currentColor;
|
|
460
|
+
}
|
|
461
|
+
.alwith-workspace-tab[data-dirty="true"] .alwith-workspace-tab-close svg {
|
|
462
|
+
opacity: 0;
|
|
463
|
+
}
|
|
464
|
+
.alwith-workspace-tab[data-dirty="true"]:hover .alwith-workspace-tab-close::before,
|
|
465
|
+
.alwith-workspace-tab[data-dirty="true"]:focus-within .alwith-workspace-tab-close::before {
|
|
466
|
+
display: none;
|
|
467
|
+
}
|
|
468
|
+
.alwith-workspace-tab[data-dirty="true"]:hover .alwith-workspace-tab-close svg,
|
|
469
|
+
.alwith-workspace-tab[data-dirty="true"]:focus-within .alwith-workspace-tab-close svg {
|
|
470
|
+
opacity: 1;
|
|
471
|
+
}
|
|
472
|
+
.alwith-editor .alwith-workspace-new-tab {
|
|
473
|
+
display: flex;
|
|
474
|
+
align-items: center;
|
|
475
|
+
justify-content: center;
|
|
476
|
+
align-self: center;
|
|
477
|
+
width: 32px;
|
|
478
|
+
height: 32px;
|
|
479
|
+
padding: 0;
|
|
480
|
+
margin-inline-start: 2px;
|
|
481
|
+
flex-shrink: 0;
|
|
482
|
+
border: 0;
|
|
483
|
+
background: transparent;
|
|
484
|
+
color: var(--muted-foreground);
|
|
485
|
+
}
|
|
486
|
+
.alwith-editor .alwith-workspace-new-tab:hover {
|
|
487
|
+
background: var(--accent);
|
|
488
|
+
}
|
|
489
|
+
.alwith-workspace-new-tab svg {
|
|
490
|
+
width: 16px;
|
|
491
|
+
height: 16px;
|
|
492
|
+
}
|
|
493
|
+
.alwith-workspace-tab-space {
|
|
494
|
+
height: 100%;
|
|
495
|
+
min-width: 32px;
|
|
496
|
+
flex: 1;
|
|
497
|
+
}
|
|
498
|
+
.alwith-editor-menu-separator {
|
|
499
|
+
height: 1px;
|
|
500
|
+
margin: 4px -4px;
|
|
501
|
+
background: var(--border);
|
|
502
|
+
}
|
|
503
|
+
.alwith-workspace-new-content {
|
|
504
|
+
flex: 1;
|
|
505
|
+
min-height: 0;
|
|
506
|
+
overflow: auto;
|
|
507
|
+
padding: 30px 40px;
|
|
508
|
+
}
|
|
509
|
+
.alwith-editor .alwith-workspace-tutorial {
|
|
510
|
+
display: block;
|
|
511
|
+
width: 190px;
|
|
512
|
+
overflow: hidden;
|
|
513
|
+
padding: 0;
|
|
514
|
+
text-align: start;
|
|
515
|
+
background: var(--card);
|
|
516
|
+
border: 0.5px solid var(--border);
|
|
517
|
+
border-radius: 14px;
|
|
518
|
+
}
|
|
519
|
+
.alwith-editor .alwith-workspace-tutorial:hover {
|
|
520
|
+
background: var(--card);
|
|
521
|
+
box-shadow: 0 0 16px color-mix(in srgb, var(--foreground) 8%, transparent);
|
|
522
|
+
}
|
|
523
|
+
.alwith-workspace-tutorial-hero {
|
|
524
|
+
display: flex;
|
|
525
|
+
align-items: center;
|
|
526
|
+
justify-content: center;
|
|
527
|
+
height: 100px;
|
|
528
|
+
border-bottom: 0.5px solid var(--border);
|
|
529
|
+
background: var(--workspace-tutorial-background, var(--accent));
|
|
530
|
+
}
|
|
531
|
+
.alwith-workspace-tutorial-hero img {
|
|
532
|
+
width: 100px;
|
|
533
|
+
height: 100px;
|
|
534
|
+
}
|
|
535
|
+
.alwith-workspace-tutorial-copy {
|
|
536
|
+
display: block;
|
|
537
|
+
padding: 12px;
|
|
538
|
+
}
|
|
539
|
+
.alwith-workspace-tutorial-copy strong {
|
|
540
|
+
display: block;
|
|
541
|
+
font-size: 14px;
|
|
542
|
+
font-weight: 600;
|
|
543
|
+
margin-bottom: 4px;
|
|
544
|
+
}
|
|
545
|
+
.alwith-workspace-tutorial-copy > span {
|
|
546
|
+
font-size: 11px;
|
|
547
|
+
font-weight: 500;
|
|
548
|
+
color: var(--workspace-tutorial-link, var(--primary));
|
|
549
|
+
}
|
|
550
|
+
.alwith-quick-start {
|
|
551
|
+
padding: 32px;
|
|
552
|
+
}
|
|
553
|
+
.alwith-quick-start h2,
|
|
554
|
+
.alwith-quick-start-tip h2 {
|
|
555
|
+
margin: 0;
|
|
556
|
+
font-size: 24px;
|
|
557
|
+
font-weight: 600;
|
|
558
|
+
letter-spacing: -0.025em;
|
|
559
|
+
line-height: 1.3;
|
|
560
|
+
}
|
|
561
|
+
.alwith-quick-start p {
|
|
562
|
+
margin-top: 8px;
|
|
563
|
+
color: var(--muted-foreground);
|
|
564
|
+
font-size: 14px;
|
|
565
|
+
white-space: pre-line;
|
|
566
|
+
}
|
|
567
|
+
.alwith-quick-start button {
|
|
568
|
+
font: inherit;
|
|
569
|
+
cursor: pointer;
|
|
570
|
+
}
|
|
571
|
+
.alwith-quick-start-roles {
|
|
572
|
+
display: grid;
|
|
573
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
574
|
+
gap: 12px;
|
|
575
|
+
margin-top: 24px;
|
|
576
|
+
}
|
|
577
|
+
.alwith-quick-start-roles button {
|
|
578
|
+
display: flex;
|
|
579
|
+
align-items: center;
|
|
580
|
+
height: 48px;
|
|
581
|
+
padding-inline: 16px;
|
|
582
|
+
border: 1px solid var(--border);
|
|
583
|
+
border-radius: 12px;
|
|
584
|
+
font-size: 14px;
|
|
585
|
+
background: transparent;
|
|
586
|
+
}
|
|
587
|
+
.alwith-quick-start-roles button[aria-pressed="true"] {
|
|
588
|
+
border-color: var(--ring);
|
|
589
|
+
background: color-mix(in srgb, var(--ring) 8%, transparent);
|
|
590
|
+
}
|
|
591
|
+
.alwith-quick-start-makes {
|
|
592
|
+
display: flex;
|
|
593
|
+
flex-wrap: wrap;
|
|
594
|
+
gap: 8px;
|
|
595
|
+
margin-top: 24px;
|
|
596
|
+
}
|
|
597
|
+
.alwith-quick-start-makes button {
|
|
598
|
+
padding: 8px 16px;
|
|
599
|
+
border-radius: 999px;
|
|
600
|
+
border: 1px solid var(--border);
|
|
601
|
+
font-size: 14px;
|
|
602
|
+
background: transparent;
|
|
603
|
+
}
|
|
604
|
+
.alwith-quick-start-makes button[aria-pressed="true"] {
|
|
605
|
+
background: var(--primary);
|
|
606
|
+
color: var(--primary-foreground);
|
|
607
|
+
border-color: var(--primary);
|
|
608
|
+
}
|
|
609
|
+
.alwith-quick-start-ready {
|
|
610
|
+
padding-block: 48px;
|
|
611
|
+
text-align: center;
|
|
612
|
+
}
|
|
613
|
+
.alwith-quick-start-footer {
|
|
614
|
+
display: flex;
|
|
615
|
+
justify-content: space-between;
|
|
616
|
+
margin-top: 32px;
|
|
617
|
+
}
|
|
618
|
+
.alwith-quick-start-footer button {
|
|
619
|
+
height: 36px;
|
|
620
|
+
border: 0;
|
|
621
|
+
padding-inline: 16px;
|
|
622
|
+
border-radius: 8px;
|
|
623
|
+
background: transparent;
|
|
624
|
+
color: var(--muted-foreground);
|
|
625
|
+
}
|
|
626
|
+
.alwith-quick-start-footer button:last-child {
|
|
627
|
+
background: var(--primary);
|
|
628
|
+
color: var(--primary-foreground);
|
|
629
|
+
}
|
|
630
|
+
.alwith-quick-start-tip {
|
|
631
|
+
position: relative;
|
|
632
|
+
display: flex;
|
|
633
|
+
height: 580px;
|
|
634
|
+
max-height: calc(100dvh - 4rem);
|
|
635
|
+
overflow: hidden;
|
|
636
|
+
color: var(--workspace-tip-foreground);
|
|
637
|
+
background: var(--workspace-tip-purple);
|
|
638
|
+
}
|
|
639
|
+
.alwith-quick-start-tip[data-tip="1"] {
|
|
640
|
+
background: var(--workspace-tip-blue);
|
|
641
|
+
}
|
|
642
|
+
.alwith-quick-start-tip[data-tip="2"] {
|
|
643
|
+
background: var(--workspace-tip-orange);
|
|
644
|
+
}
|
|
645
|
+
.alwith-quick-start-tip[data-tip="3"] {
|
|
646
|
+
background: var(--workspace-tip-pink);
|
|
647
|
+
}
|
|
648
|
+
.alwith-quick-start-tip[data-tip="4"] {
|
|
649
|
+
background: var(--workspace-tip-yellow);
|
|
650
|
+
}
|
|
651
|
+
.alwith-quick-start-tip[data-tip="5"] {
|
|
652
|
+
background: var(--workspace-tip-green);
|
|
653
|
+
}
|
|
654
|
+
.alwith-quick-start-decoration {
|
|
655
|
+
position: absolute;
|
|
656
|
+
inset: 0;
|
|
657
|
+
width: 100%;
|
|
658
|
+
height: 100%;
|
|
659
|
+
object-fit: cover;
|
|
660
|
+
pointer-events: none;
|
|
661
|
+
}
|
|
662
|
+
.alwith-quick-start-tip-copy {
|
|
663
|
+
pointer-events: none;
|
|
664
|
+
position: relative;
|
|
665
|
+
display: flex;
|
|
666
|
+
flex: 1;
|
|
667
|
+
flex-direction: column;
|
|
668
|
+
justify-content: end;
|
|
669
|
+
gap: 10px;
|
|
670
|
+
padding: 24px 28px 32px;
|
|
671
|
+
}
|
|
672
|
+
.alwith-quick-start-tip-copy > img {
|
|
673
|
+
width: 88px;
|
|
674
|
+
height: 88px;
|
|
675
|
+
margin-bottom: 12px;
|
|
676
|
+
filter: brightness(0) invert(1);
|
|
677
|
+
}
|
|
678
|
+
.alwith-quick-start-tip-copy > p {
|
|
679
|
+
margin: 0;
|
|
680
|
+
font-size: 14px;
|
|
681
|
+
line-height: 1.5;
|
|
682
|
+
}
|
|
683
|
+
.alwith-quick-start-progress {
|
|
684
|
+
pointer-events: none;
|
|
685
|
+
position: absolute;
|
|
686
|
+
z-index: 1;
|
|
687
|
+
top: 14px;
|
|
688
|
+
inset-inline: 16px;
|
|
689
|
+
display: flex;
|
|
690
|
+
gap: 4px;
|
|
691
|
+
}
|
|
692
|
+
.alwith-quick-start-progress span {
|
|
693
|
+
height: 3px;
|
|
694
|
+
flex: 1;
|
|
695
|
+
border-radius: 2px;
|
|
696
|
+
background: currentColor;
|
|
697
|
+
opacity: 0.3;
|
|
698
|
+
}
|
|
699
|
+
.alwith-quick-start-progress span[data-complete="true"] {
|
|
700
|
+
opacity: 0.95;
|
|
701
|
+
}
|
|
702
|
+
.alwith-quick-start-previous,
|
|
703
|
+
.alwith-quick-start-next {
|
|
704
|
+
position: absolute;
|
|
705
|
+
top: 30px;
|
|
706
|
+
bottom: 0;
|
|
707
|
+
width: 50%;
|
|
708
|
+
background: transparent;
|
|
709
|
+
cursor: pointer;
|
|
710
|
+
}
|
|
711
|
+
.alwith-quick-start-previous {
|
|
712
|
+
inset-inline-start: 0;
|
|
713
|
+
}
|
|
714
|
+
.alwith-quick-start-next {
|
|
715
|
+
inset-inline-end: 0;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
.alwith-quick-start-roles button {
|
|
719
|
+
gap: 12px;
|
|
720
|
+
}
|
|
721
|
+
.alwith-quick-start-roles svg {
|
|
722
|
+
width: 16px;
|
|
723
|
+
height: 16px;
|
|
724
|
+
flex-shrink: 0;
|
|
725
|
+
color: var(--muted-foreground);
|
|
726
|
+
}
|