Loading files
ea39f3ad2This file is pinned to the selected release. Download the original to open it in your design tool.
/* ── HardwareModal: its own classes ─────────────────────────────────────────
Moved out of PatternLab.module.css on 2026-09; only this file uses them. */
/* ── Hardware flow (HardwareModal) ─────────────────────────────────────
The paste boxes are where the actual work lands, so they read as code:
monospace, a real field border, and the cream the rest of the lab uses.
Left unstyled they render as bare text on the modal background, which
looks like a layout bug rather than an input. */
.hwPaste {
display: block;
width: 100%;
padding: 10px 12px;
margin-top: 10px;
border-radius: 4px;
border: 1px solid rgba(23, 21, 18, 0.3);
background: #fffdf8;
color: #171512;
font-family: var(--font-jetbrains), monospace;
font-size: 13px;
line-height: 1.55;
resize: vertical;
}
.hwPaste:focus {
outline: 2px solid #9b4827;
outline-offset: 1px;
border-color: #171512;
}
.hwPaste::placeholder {
color: #756f64;
}
.hwField {
display: flex;
align-items: center;
gap: 8px;
margin: 0 0 12px;
font-size: 12px;
}
.hwField input {
border-radius: 4px;
min-width: 0;
flex: 1;
min-height: 30px;
padding: 4px 8px;
border: 1px solid rgba(23, 21, 18, 0.3);
background: #fffdf8;
color: #171512;
font: inherit;
font-size: 13px;
}
.hwField input:focus {
outline: 2px solid #9b4827;
outline-offset: 1px;
border-color: #171512;
}
/* One layer of a stack: its prompt, its paste box, and whether it parsed. */
.hwUnit {
margin: 0 0 10px;
padding: 10px;
border: 1px solid rgba(23, 21, 18, 0.2);
background: #fbf7ee;
}
.hwUnitHead {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
margin-bottom: 8px;
}
.hwUnitName {
flex: 1;
font-family: var(--font-jetbrains), monospace;
font-size: 12px;
font-weight: 700;
}
.hwUnitHead button {
min-height: 30px;
border-radius: 4px;
padding: 0 10px;
border: 1px solid rgba(23, 21, 18, 0.22);
background: #ffffff;
color: #171512;
font: inherit;
font-family: var(--font-inter), system-ui, sans-serif;
font-size: 12px;
text-transform: none;
cursor: pointer;
}
.hwUnitHead button:hover {
border-color: #171512;
}
/* Reads at a glance: did this layer's paste actually parse? */
.hwOk {
color: #2e7d4f;
font-family: var(--font-jetbrains), monospace;
font-size: 11px;
}
.hwBad {
color: #c2410c;
font-family: var(--font-jetbrains), monospace;
font-size: 11px;
}