Loading files
/* ── Layered lab: dock header + panel chrome ─────────────────────────────────
New-in-v2 styles only; knob/ramp/gallery/modal styles are shared from
PatternLab.module.css. */
.dockShell {
height: 100vh;
display: flex;
flex-direction: column;
background: #f7f3ea;
color: #171512;
font-family: var(--font-inter), system-ui, sans-serif;
overflow: hidden;
}
.dockHeader {
position: relative;
display: grid;
grid-template-columns: minmax(190px, 1fr) minmax(170px, 280px) minmax(0, 1fr);
align-items: center;
gap: 16px;
padding: 8px 14px;
border-bottom: 1px solid rgba(23, 21, 18, 0.18);
background: rgba(247, 243, 234, 0.95);
flex: 0 0 auto;
}
.dockHeaderGroup {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8px;
min-width: 0;
}
.dockHeaderGroup:last-child {
justify-content: flex-end;
flex-wrap: nowrap;
}
@media (max-width: 1160px) {
.dockHeader {
grid-template-columns: auto minmax(150px, 1fr) auto;
gap: 12px;
}
}
@media (max-width: 800px) {
.dockHeader {
grid-template-columns: minmax(0, 1fr) minmax(150px, 1fr);
gap: 8px 12px;
}
.dockHeaderGroup:last-child {
grid-column: 1 / -1;
justify-content: flex-start;
flex-wrap: wrap;
}
}
.dockHost {
flex: 1 1 auto;
min-height: 0;
position: relative;
padding: 8px;
}
.dockHost > div {
height: 100%;
width: 100%;
}
/* Panels dropdown */
.menuWrap {
position: relative;
}
.menuPop {
position: absolute;
top: calc(100% + 6px);
right: 0;
z-index: 60;
min-width: 190px;
display: flex;
flex-direction: column;
gap: 2px;
padding: 6px;
background: #fffdf8;
border: 1px solid rgba(23, 21, 18, 0.25);
border-radius: 6px;
box-shadow: 0 12px 32px rgba(23, 21, 18, 0.18);
}
.menuPop button {
appearance: none;
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
border: 0;
background: none;
padding: 8px 10px;
font-family: var(--font-inter), system-ui, sans-serif;
font-size: 12px;
text-transform: none;
letter-spacing: normal;
color: #171512;
cursor: pointer;
text-align: left;
}
.menuPop button:hover {
background: rgba(23, 21, 18, 0.07);
}
.menuPop button em {
font-style: normal;
color: rgba(23, 21, 18, 0.4);
}
/* ── Generic panel chrome ── */
.panel {
height: 100%;
display: flex;
flex-direction: column;
min-height: 0;
background: #fffdf8;
box-sizing: border-box;
}
.panelBar {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 6px;
padding: 6px 8px;
border-bottom: 1px solid rgba(23, 21, 18, 0.12);
background: #fbf7ee;
flex: 0 0 auto;
font-family: var(--font-inter), system-ui, sans-serif;
font-size: 12px;
}
.panelBar button {
min-height: 28px;
border-radius: 4px;
line-height: 18px;
appearance: none;
border: 1px solid rgba(23, 21, 18, 0.3);
background: #fffdf8;
color: #171512;
font-family: var(--font-inter), system-ui, sans-serif;
font-size: 12px;
text-transform: none;
letter-spacing: normal;
padding: 3px 8px;
cursor: pointer;
}
.panelBar button:hover {
background: #171512;
color: #f7f3ea;
}
.panelBar button:disabled {
opacity: 0.4;
cursor: default;
}
.panelBar button:disabled:hover {
background: #fffdf8;
color: #171512;
}
.panelBar button[data-active="true"] {
background: #171512;
color: #f7f3ea;
}
.panelBar select,
.panelBar input[type="number"] {
min-height: 28px;
border-radius: 4px;
border: 1px solid rgba(23, 21, 18, 0.3);
background: #fffdf8;
color: inherit;
font-family: inherit;
font-size: 12px;
padding: 3px 4px;
}
.panelBar input[type="number"] {
width: 52px;
}
.panelBar label {
display: inline-flex;
align-items: center;
gap: 4px;
text-transform: none;
color: rgba(23, 21, 18, 0.6);
}
.panelBody {
flex: 1 1 auto;
min-height: 0;
overflow: auto;
}
.panelHint {
text-wrap: pretty;
padding: 14px;
color: #756f64;
font-family: var(--font-inter), system-ui, sans-serif;
font-size: 12px;
line-height: 1.6;
text-transform: none;
}
.panelHint button {
appearance: none;
display: block;
border: 1px solid rgba(23, 21, 18, 0.35);
background: none;
font: inherit;
color: inherit;
padding: 3px 8px;
cursor: pointer;
margin-top: 8px;
}
.panelHint button:hover {
background: #171512;
color: #f7f3ea;
}
/* ── Preview panel ── */
.previewBody {
flex: 1 1 auto;
min-height: 0;
display: flex;
flex-direction: column;
gap: 8px;
padding: 10px;
overflow: auto;
}
.previewCanvasBox {
flex: 1 1 auto;
min-height: 120px;
display: flex;
align-items: center;
justify-content: center;
min-width: 0;
overflow: hidden;
}
.previewFrame {
background: #060505;
border: 1px solid #171512;
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
max-width: 100%;
max-height: 100%;
padding: 10px;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
}
.previewFrame canvas {
image-rendering: pixelated;
width: 100%;
height: 100%;
object-fit: contain;
}
/* Camera view frames arrive at output resolution — smooth them down, the
way the export will actually look, instead of nearest-neighbor grit. */
.previewFrame canvas.cameraCanvas {
image-rendering: auto;
}
/* ── Layers panel ── */
.layerList {
list-style: none;
margin: 0;
padding: 4px;
display: flex;
flex-direction: column;
gap: 2px;
}
.layerRow {
min-height: 34px;
border-radius: 4px;
display: flex;
align-items: center;
gap: 6px;
padding: 5px 6px;
border: 1px solid transparent;
background: #fbf7ee;
cursor: pointer;
user-select: none;
}
.layerRow:hover {
border-color: rgba(23, 21, 18, 0.25);
}
.layerRowActive {
background: #171512;
color: #f7f3ea;
border-color: #171512;
}
.layerRow[data-dragover="true"] {
border-top: 2px solid #ff4d00;
}
.layerEye {
appearance: none;
border: 0;
background: none;
color: inherit;
cursor: pointer;
font-size: 12px;
width: 20px;
padding: 0;
opacity: 0.85;
}
.layerEyeOff {
opacity: 0.3;
}
.layerName {
flex: 1 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 12px;
font-weight: 600;
}
.layerRenameInput {
flex: 1 1 auto;
min-width: 0;
border: 1px solid rgba(23, 21, 18, 0.4);
background: #fffdf8;
color: #171512;
font: inherit;
font-size: 12px;
padding: 1px 4px;
}
.layerType {
font-family: var(--font-inter), system-ui, sans-serif;
font-size: 11px;
letter-spacing: 0.06em;
padding: 1px 5px;
border: 1px solid currentColor;
opacity: 0.65;
flex: 0 0 auto;
}
.layerErrDot {
width: 8px;
height: 8px;
border-radius: 50%;
background: #d63e2e;
flex: 0 0 auto;
}
.layerMeta {
font-family: var(--font-inter), system-ui, sans-serif;
font-size: 11px;
opacity: 0.55;
flex: 0 0 auto;
}
.layerControls {
display: flex;
flex-direction: column;
gap: 8px;
padding: 10px;
border-top: 1px solid rgba(23, 21, 18, 0.12);
background: #fbf7ee;
flex: 0 0 auto;
font-family: var(--font-inter), system-ui, sans-serif;
font-size: 12px;
}
.layerControlRow {
display: flex;
align-items: center;
gap: 8px;
}
.layerControlRow > span {
width: 58px;
flex: 0 0 auto;
text-transform: none;
color: rgba(23, 21, 18, 0.6);
font-size: 11px;
}
.layerControlRow input[type="range"] {
flex: 1 1 auto;
min-width: 0;
accent-color: #171512;
}
.layerControlRow select {
min-height: 28px;
border-radius: 4px;
min-width: 0;
flex: 1 1 auto;
border: 1px solid rgba(23, 21, 18, 0.3);
background: #fffdf8;
font-family: inherit;
font-size: 12px;
padding: 2px 4px;
}
.layerControlValue {
width: 40px;
text-align: right;
flex: 0 0 auto;
font-size: 11px;
}
.layerMaskLabel {
display: inline-flex;
align-items: center;
gap: 4px;
font-size: 11px;
text-transform: none;
cursor: pointer;
}
/* ── Pixel editor panel ── */
.pixelViewport {
flex: 1 1 auto;
min-height: 0;
overflow: auto;
display: flex;
background: #eee8d8;
padding: 16px;
}
.pixelStage {
position: relative;
flex: 0 0 auto;
/* auto margins center when small AND keep every edge scrollable when zoomed */
margin: auto;
background: repeating-conic-gradient(#c9c2b1 0% 25%, #b5ad9a 0% 50%) 0 0 / 12px 12px;
box-shadow: 0 0 0 1px rgba(23, 21, 18, 0.5);
}
.pixelStage canvas {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
image-rendering: pixelated;
display: block;
}
.pixelStatus {
display: flex;
align-items: center;
gap: 10px;
padding: 4px 8px;
border-top: 1px solid rgba(23, 21, 18, 0.12);
font-family: var(--font-inter), system-ui, sans-serif;
font-size: 11px;
color: rgba(23, 21, 18, 0.6);
text-transform: none;
flex: 0 0 auto;
flex-wrap: wrap;
}
.colorWell {
width: 26px;
height: 22px;
padding: 0;
border: 1px solid rgba(23, 21, 18, 0.4);
background: none;
cursor: pointer;
}
.swatchRow {
display: inline-flex;
gap: 3px;
}
.swatch {
width: 16px;
height: 16px;
border: 1px solid rgba(23, 21, 18, 0.3);
padding: 0;
cursor: pointer;
background: none;
}
.panelBar .swatch {
width: 22px;
height: 22px;
min-height: 22px;
padding: 0;
border-radius: 3px;
}
.toolSep {
width: 1px;
align-self: stretch;
background: rgba(23, 21, 18, 0.15);
margin: 0 2px;
}
/* ── Ramp panel (dock variant) ── */
.rampDock {
container: ramp-controls / inline-size;
padding: 10px;
display: flex;
flex-direction: column;
gap: 8px;
}
.rampAlphaRow {
display: flex;
align-items: center;
gap: 8px;
font-family: var(--font-inter), system-ui, sans-serif;
font-size: 11px;
text-transform: none;
color: rgba(23, 21, 18, 0.65);
}
.rampAlphaRow input[type="range"] {
flex: 1 1 auto;
min-width: 0;
accent-color: #171512;
}
.rampAlphaValue {
width: 36px;
text-align: right;
}
/* Knobs panel: dock padding around the shared .controls block */
.knobsDock {
padding: 10px;
}
/* Compact scrollbars inside panels */
.panel ::-webkit-scrollbar {
width: 10px;
height: 10px;
}
.panel ::-webkit-scrollbar-thumb {
background: rgba(23, 21, 18, 0.25);
border: 3px solid #fffdf8;
border-radius: 6px;
}
/* Keyboard focus stays visible throughout the panel controls. */
.panelBar :is(button, select, input):focus-visible,
.menuPop button:focus-visible,
.layerControlRow select:focus-visible {
outline: 2px solid #9b4827;
outline-offset: 2px;
}
/* Scrolling keeps the ramp and controls at their intended height. */
.rampDock > * {
flex-shrink: 0;
}
98b423c28This file is pinned to the selected release. Download the original to open it in your design tool.