@atom63/slides 0.1.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -204,3 +204,280 @@
204
204
  opacity: 0.5;
205
205
  line-height: 1.4;
206
206
  }
207
+
208
+ /* DeckSurface present-mode container. */
209
+ .a63-surface {
210
+ position: relative;
211
+ width: 100%;
212
+ height: 100%;
213
+ }
214
+
215
+ /* Floating Edit button — top-right corner of present view. */
216
+ .a63-surface__edit {
217
+ position: absolute;
218
+ top: 0.6rem;
219
+ right: 0.6rem;
220
+ z-index: 10;
221
+ display: inline-flex;
222
+ align-items: center;
223
+ padding: 0.25rem 0.6rem;
224
+ border: 1px solid rgba(127, 127, 127, 0.4);
225
+ border-radius: 999px;
226
+ background: rgba(255, 255, 255, 0.85);
227
+ color: #1a1a1a;
228
+ font-size: 0.72rem;
229
+ font-weight: 600;
230
+ cursor: pointer;
231
+ backdrop-filter: blur(4px);
232
+ }
233
+
234
+ .a63-surface__edit:hover {
235
+ background: rgba(255, 255, 255, 0.95);
236
+ border-color: rgba(59, 130, 246, 0.6);
237
+ }
238
+
239
+ /* Toolbar actions group — flex row with consistent gap. */
240
+ .a63-editor__toolbar-actions {
241
+ display: flex;
242
+ align-items: center;
243
+ gap: 0.4rem;
244
+ }
245
+
246
+ /* Save and Present buttons — same pill look as the theme toggle. */
247
+ .a63-editor__save,
248
+ .a63-editor__present {
249
+ display: inline-flex;
250
+ align-items: center;
251
+ gap: 0.4rem;
252
+ padding: 0.25rem 0.6rem;
253
+ border: 1px solid rgba(127, 127, 127, 0.4);
254
+ border-radius: 999px;
255
+ background: transparent;
256
+ color: inherit;
257
+ font-size: 0.72rem;
258
+ font-weight: 600;
259
+ cursor: pointer;
260
+ }
261
+
262
+ .a63-editor__save:hover,
263
+ .a63-editor__present:hover {
264
+ background: rgba(127, 127, 127, 0.12);
265
+ }
266
+
267
+ /* ─── SlotForm — registry-driven prop editor ─────────────────────────────── */
268
+ .a63-form {
269
+ display: flex;
270
+ flex-direction: column;
271
+ gap: 0.75rem;
272
+ padding: 0.75rem;
273
+ }
274
+
275
+ .a63-form__field {
276
+ display: flex;
277
+ flex-direction: column;
278
+ gap: 0.25rem;
279
+ }
280
+
281
+ .a63-form__label-row {
282
+ display: flex;
283
+ align-items: baseline;
284
+ gap: 0.2rem;
285
+ }
286
+
287
+ .a63-form__label {
288
+ font-size: 0.75rem;
289
+ font-weight: 600;
290
+ color: #1a1a1a;
291
+ letter-spacing: 0.01em;
292
+ }
293
+
294
+ .a63-form__required {
295
+ color: #b91c1c;
296
+ }
297
+
298
+ .a63-form__input,
299
+ .a63-form__textarea {
300
+ width: 100%;
301
+ padding: 0.35rem 0.5rem;
302
+ border: 1px solid rgba(127, 127, 127, 0.35);
303
+ border-radius: 0.375rem;
304
+ background: #fff;
305
+ color: #1a1a1a;
306
+ font-size: 0.8rem;
307
+ font-family: inherit;
308
+ line-height: 1.4;
309
+ outline: none;
310
+ transition: border-color 0.12s ease;
311
+ }
312
+
313
+ .a63-form__input:focus,
314
+ .a63-form__textarea:focus {
315
+ border-color: rgba(59, 130, 246, 0.7);
316
+ }
317
+
318
+ .a63-form__textarea {
319
+ resize: vertical;
320
+ min-height: 4.5rem;
321
+ }
322
+
323
+ .a63-form__slots-note {
324
+ margin-top: 0.25rem;
325
+ padding: 0.4rem 0.55rem;
326
+ border-radius: 0.375rem;
327
+ background: rgba(127, 127, 127, 0.08);
328
+ font-size: 0.72rem;
329
+ color: #555;
330
+ line-height: 1.4;
331
+ }
332
+
333
+ .a63-form__unknown {
334
+ padding: 0.75rem;
335
+ font-size: 0.8rem;
336
+ color: #b91c1c;
337
+ }
338
+
339
+ /* TemplatePicker — loss warning + dismiss button */
340
+ .a63-form__picker-warning {
341
+ display: flex;
342
+ align-items: flex-start;
343
+ gap: 0.5rem;
344
+ margin-top: 0.35rem;
345
+ padding: 0.4rem 0.55rem;
346
+ border-radius: 0.375rem;
347
+ background: rgba(180, 83, 9, 0.1);
348
+ border: 1px solid rgba(180, 83, 9, 0.3);
349
+ font-size: 0.72rem;
350
+ color: #92400e;
351
+ line-height: 1.4;
352
+ }
353
+
354
+ .a63-form__picker-warning span {
355
+ flex: 1;
356
+ min-width: 0;
357
+ }
358
+
359
+ .a63-form__picker-dismiss {
360
+ flex: none;
361
+ background: transparent;
362
+ border: none;
363
+ padding: 0 0.25rem;
364
+ color: inherit;
365
+ font-size: 0.9rem;
366
+ line-height: 1;
367
+ cursor: pointer;
368
+ opacity: 0.7;
369
+ }
370
+
371
+ .a63-form__picker-dismiss:hover {
372
+ opacity: 1;
373
+ }
374
+
375
+ /* ─── Source | Form sub-toggle ───────────────────────────────────────────── */
376
+ .a63-editor__subtoggle {
377
+ display: inline-flex;
378
+ align-items: center;
379
+ border: 1px solid rgba(127, 127, 127, 0.4);
380
+ border-radius: 999px;
381
+ overflow: hidden;
382
+ }
383
+
384
+ .a63-editor__subtoggle-btn {
385
+ display: inline-flex;
386
+ align-items: center;
387
+ padding: 0.2rem 0.55rem;
388
+ border: none;
389
+ background: transparent;
390
+ color: inherit;
391
+ font-size: 0.72rem;
392
+ font-weight: 600;
393
+ cursor: pointer;
394
+ transition: background 0.1s ease;
395
+ }
396
+
397
+ .a63-editor__subtoggle-btn + .a63-editor__subtoggle-btn {
398
+ border-left: 1px solid rgba(127, 127, 127, 0.4);
399
+ }
400
+
401
+ .a63-editor__subtoggle-btn[aria-pressed='true'] {
402
+ background: rgba(59, 130, 246, 0.15);
403
+ color: #1d4ed8;
404
+ }
405
+
406
+ .a63-editor__subtoggle-btn:hover:not([aria-pressed='true']) {
407
+ background: rgba(127, 127, 127, 0.1);
408
+ }
409
+
410
+ /* ─── Form panel (right pane in Form mode) ───────────────────────────────── */
411
+ .a63-editor__form-panel {
412
+ flex: 1;
413
+ min-height: 0;
414
+ overflow-y: auto;
415
+ display: flex;
416
+ flex-direction: column;
417
+ }
418
+
419
+ /* Slide stepper — prev/next nav inside the form panel */
420
+ .a63-editor__slide-stepper {
421
+ display: flex;
422
+ align-items: center;
423
+ gap: 0.4rem;
424
+ padding: 0.4rem 0.75rem;
425
+ border-bottom: 1px solid rgba(127, 127, 127, 0.18);
426
+ flex: none;
427
+ }
428
+
429
+ .a63-editor__stepper-label {
430
+ flex: 1;
431
+ text-align: center;
432
+ font-size: 0.72rem;
433
+ font-weight: 600;
434
+ opacity: 0.7;
435
+ }
436
+
437
+ .a63-editor__stepper-btn {
438
+ display: inline-flex;
439
+ align-items: center;
440
+ justify-content: center;
441
+ width: 1.5rem;
442
+ height: 1.5rem;
443
+ border: 1px solid rgba(127, 127, 127, 0.4);
444
+ border-radius: 50%;
445
+ background: transparent;
446
+ color: inherit;
447
+ font-size: 1rem;
448
+ line-height: 1;
449
+ cursor: pointer;
450
+ }
451
+
452
+ .a63-editor__stepper-btn:disabled {
453
+ opacity: 0.3;
454
+ cursor: default;
455
+ }
456
+
457
+ .a63-editor__stepper-btn:not(:disabled):hover {
458
+ background: rgba(127, 127, 127, 0.1);
459
+ }
460
+
461
+ .a63-editor__form-fields {
462
+ flex: 1;
463
+ min-height: 0;
464
+ overflow-y: auto;
465
+ }
466
+
467
+ .a63-editor__form-opaque {
468
+ padding: 1rem 0.75rem;
469
+ display: flex;
470
+ flex-direction: column;
471
+ gap: 0.75rem;
472
+ }
473
+
474
+ .a63-editor__form-opaque p {
475
+ font-size: 0.82rem;
476
+ color: #555;
477
+ }
478
+
479
+ .a63-editor__form-empty {
480
+ padding: 1rem 0.75rem;
481
+ font-size: 0.82rem;
482
+ color: #555;
483
+ }