pixelkiln 0.109.0 → 0.111.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.
@@ -541,3 +541,51 @@ body[data-size="l"] .cell { height:210px; }
541
541
  .studio-tpl-preview[hidden] { display:none; }
542
542
  .studio-tpl-preview img { width:48px; height:48px; image-rendering:pixelated; object-fit:contain; background-color:var(--stage-bg); background-image:var(--stage-pattern); background-size:8px 8px; border:1px solid var(--line); }
543
543
  .studio-draft { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
544
+
545
+ /* ---- 3D models ---- */
546
+ .model-card .cell { background-image:none; background-color:var(--panel-deep); }
547
+ .model-glyph { display:grid; gap:4px; justify-items:center; text-align:center; color:var(--dim); font-size:11.5px; }
548
+ .model-glyph b { font:700 18px/1 var(--mono); color:var(--accent-soft); letter-spacing:.02em; }
549
+ .preview.model-stage { height:min(52vh, 440px); min-height:260px; max-height:none; padding:0; overflow:hidden; display:block; position:relative; }
550
+ .model-canvas { width:100%; height:100%; display:block; cursor:grab; touch-action:none; }
551
+ .model-canvas:active { cursor:grabbing; }
552
+ .model-canvas:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
553
+ .model-controls { display:grid; gap:8px; margin:0 0 6px; font-size:12.5px; }
554
+ .model-row { display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
555
+ .model-row .grow { flex:1; }
556
+ .model-row .lbl { color:var(--dim); font-size:12px; min-width:52px; }
557
+ .model-row button, .model-row select { padding:4px 9px; font-size:12px; }
558
+ .model-row select { background:var(--panel-deep); border:1px solid var(--line); color:var(--text); max-width:100%; }
559
+ .model-row button.chip { cursor:pointer; }
560
+ .model-hint { font-size:12px; }
561
+ .model-textures { display:grid; gap:8px; margin-top:8px; }
562
+ .model-texture { display:grid; grid-template-columns:72px 1fr; gap:6px 12px; align-items:start; border:1px solid var(--line);
563
+ background:var(--panel-deep); padding:8px; }
564
+ .model-texture canvas { width:72px; height:72px; display:block; background-color:var(--stage-bg); border:1px solid var(--line); }
565
+ .model-texture .tx { display:grid; gap:2px; min-width:0; font-size:12px; color:var(--dim); }
566
+ .model-texture .tx b { color:var(--text); font:600 12.5px/1.4 var(--mono); overflow-wrap:anywhere; }
567
+ .model-texture .acts { grid-column:1 / -1; display:flex; gap:6px; flex-wrap:wrap; }
568
+ .model-texture .acts button { padding:4px 10px; font-size:12px; }
569
+ .sheet.editor-host.with-legend { grid-template-rows:auto auto 1fr; }
570
+ .model-legend { display:flex; flex-wrap:wrap; gap:4px 14px; padding:7px 16px; border-bottom:1px solid var(--line);
571
+ font:11.5px/1.4 var(--mono); color:var(--dim); max-height:72px; overflow-y:auto; }
572
+ .model-legend span { display:inline-flex; align-items:center; gap:5px; white-space:nowrap; }
573
+ .model-legend i { width:10px; height:10px; display:block; border:1px solid rgba(0,0,0,.6); }
574
+ /* Editor sheet: a resizable left edge, and an optional pane beside the editor behind a divider. */
575
+ .sheet.editor-host .sheet-edge { position:absolute; left:-4px; top:0; bottom:0; width:8px; cursor:col-resize; z-index:2; }
576
+ .sheet.editor-host .sheet-edge:hover, .sheet.editor-host.resizing .sheet-edge { background:color-mix(in srgb, var(--accent) 40%, transparent); }
577
+ .sheet.editor-host.with-side { grid-template-columns:var(--side-w, 36%) 8px minmax(0, 1fr); }
578
+ .sheet.editor-host.with-side > .rbar, .sheet.editor-host.with-side > .sheet-below { grid-column:1 / -1; }
579
+ .sheet.editor-host .sheet-divider { cursor:col-resize; background:var(--line); border-left:1px solid var(--line-strong); border-right:1px solid var(--line-strong); }
580
+ .sheet.editor-host .sheet-divider:hover, .sheet.editor-host.resizing .sheet-divider { background:var(--accent); }
581
+ .sheet.editor-host.resizing { user-select:none; cursor:col-resize; }
582
+ .sheet.editor-host.resizing iframe { pointer-events:none; }
583
+ .sheet-side[hidden], .sheet-divider[hidden] { display:none; }
584
+ .model-side { display:grid; grid-template-rows:1fr auto auto; gap:8px; padding:10px; min-width:0; min-height:0; background:var(--panel); }
585
+ .model-side-stage { min-height:0; background-color:var(--stage-bg); background-image:var(--stage-pattern); background-size:12px 12px;
586
+ background-position:0 0,6px 6px; border:1px solid var(--line); }
587
+ /* Model card thumbnails: drawn by one viewer kept off screen. */
588
+ .model-thumb-host { position:fixed; left:-10000px; top:0; width:480px; height:480px; pointer-events:none; }
589
+ .model-card .cell { padding:0; }
590
+ .model-card .cell img.model-thumb { image-rendering:auto; width:100%; height:100%; object-fit:cover; }
591
+ .model-glyph[hidden] { display:none; }