Loading files
e5b871ed5This file is pinned to the selected release. Download the original to open it in your design tool.
/* ── RampPanel: its own classes ─────────────────────────────────────────
Moved out of PatternLab.module.css on 2026-09; only this file uses them. */
.rampToggle {
display: inline-flex;
align-items: center;
gap: 5px;
cursor: pointer;
color: rgba(23, 21, 18, 0.75);
user-select: none;
}
.rampToggle input {
accent-color: #171512;
}
.paletteActions {
display: grid;
grid-template-columns: max-content 1fr;
align-items: center;
gap: 6px 8px;
font-family: var(--font-inter), system-ui, sans-serif;
font-size: 11px;
}
.paletteActions button {
border-radius: 4px;
font-size: 12px;
min-height: 30px;
border: 1px solid rgba(23, 21, 18, 0.22);
background: #fffdf8;
color: #171512;
padding: 4px 8px;
font-family: inherit;
cursor: pointer;
}
.paletteActions .paletteRandom {
background: #171512;
color: #fffdf8;
}
.paletteHistory {
grid-column: 2;
grid-row: 1;
justify-self: end;
display: flex;
gap: 4px;
margin-left: auto;
}
.paletteHistory button {
font-size: 11px;
padding: 4px 6px;
}
.paletteActions button:disabled {
opacity: 0.4;
cursor: default;
}
.paletteActions button:hover:not(:disabled) {
border-color: #171512;
}
.paletteActions button:focus-visible {
outline: 2px solid #171512;
outline-offset: 2px;
}
.paletteActions > label {
grid-column: 1 / -1;
}
.rampTrack {
position: relative;
height: 34px;
cursor: copy;
touch-action: none;
user-select: none;
}
.rampBar {
display: block;
width: 100%;
height: 100%;
border: 1px solid rgba(23, 21, 18, 0.22);
pointer-events: none;
}
.rampHandle {
position: absolute;
top: -4px;
bottom: -4px;
width: 14px;
margin-left: -7px;
padding: 0;
border: none;
background: transparent;
cursor: ew-resize;
touch-action: none;
}
.rampHandle span {
position: absolute;
top: 0;
bottom: 0;
left: 50%;
width: 4px;
margin-left: -2px;
border: 1px solid #171512;
box-shadow: 0 0 0 1px #f7f3ea;
pointer-events: none;
}
.rampHandle:focus-visible {
outline: 1px dashed #171512;
outline-offset: 2px;
}
.rampHandleActive span {
width: 8px;
margin-left: -4px;
border-width: 2px;
}
.rampLuma {
display: block;
width: 100%;
height: 8px;
margin-top: 6px;
border: 1px solid rgba(23, 21, 18, 0.22);
}
.rampLumaRow {
display: flex;
align-items: baseline;
gap: 8px;
font-family: var(--font-inter), system-ui, sans-serif;
font-size: 11px;
color: #756f64;
text-transform: none;
}
.rampLumaBadge {
margin-left: auto;
}
.rampLumaMixed {
color: #171512;
}
.rampStopEdit {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 10px;
}
.rampStopEdit input[type="color"] {
width: 38px;
height: 26px;
padding: 0;
border: 1px solid rgba(23, 21, 18, 0.22);
background: #ffffff;
cursor: pointer;
}
.rampStopPos {
font-variant-numeric: tabular-nums;
font-family: var(--font-inter), system-ui, sans-serif;
font-size: 11px;
}
.rampStopDelete {
min-height: 28px;
border-radius: 4px;
border: 1px solid rgba(23, 21, 18, 0.22);
background: #ffffff;
color: #171512;
padding: 0 8px;
font: inherit;
font-family: var(--font-inter), system-ui, sans-serif;
font-size: 11px;
text-transform: none;
cursor: pointer;
}
.rampStopDelete:hover:not(:disabled) {
border-color: #b3261e;
color: #b3261e;
}
.rampStopDelete:disabled {
opacity: 0.4;
cursor: default;
}
.rampResetBtn {
min-height: 28px;
border-radius: 4px;
border: 1px solid rgba(23, 21, 18, 0.22);
background: #ffffff;
color: #171512;
padding: 0 8px;
font: inherit;
font-family: var(--font-inter), system-ui, sans-serif;
font-size: 11px;
text-transform: none;
cursor: pointer;
}
.rampResetBtn:hover {
border-color: #171512;
background: #f0eae1;
}
.rampHint {
margin-left: auto;
font-family: var(--font-inter), system-ui, sans-serif;
font-size: 11px;
color: #756f64;
text-transform: none;
}
@container ramp-controls (max-width: 210px) {
.paletteActions {
display: flex;
flex-wrap: wrap;
}
.paletteActions > label {
flex-basis: 100%;
}
.paletteHistory {
margin-left: 0;
}
}