Max level: grey zone between the limit and a knob set above it, red above the knob
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
06bc767f2c
commit
dc355fa160
2 files changed
+20
-4
No files matched your search
+10
-2
@@ -687,13 +687,18 @@ button.devadd .plus svg { width: 32px; height: 32px; fill: none; stroke: current
|
||||
.scanrow small { display: block; color: var(--dim); font-size: 12px; }
|
||||
|
||||
/* ---- software max level: a striped "locked" zone in the track above the limit, behind the knob */
|
||||
:root { --limstripe: repeating-linear-gradient(-45deg, #ef444466 0 3px, #ef444414 3px 6px); }
|
||||
input[type=range].haslim { --p: calc(13px + var(--lim) * (100% - 26px)); }
|
||||
:root { --limgrey: repeating-linear-gradient(-45deg, #8a95a366 0 3px, #8a95a314 3px 6px); --limstripe: repeating-linear-gradient(-45deg, #ef444466 0 3px, #ef444414 3px 6px); }
|
||||
/* --p = limit, --q = knob: between them (knob above the limit, set on the DSP) the stripes turn grey, above the knob red */
|
||||
input[type=range].haslim { --p: calc(13px + var(--lim) * (100% - 26px)); --q: calc(13px + var(--val, var(--lim)) * (100% - 26px)); }
|
||||
input[type=range].haslim::-webkit-slider-runnable-track {
|
||||
background: linear-gradient(90deg, var(--line) 0 var(--p), #f87171 var(--p) calc(var(--p) + 2px), transparent calc(var(--p) + 2px)),
|
||||
var(--limgrey) var(--p) 0 / calc(var(--q) - var(--p)) 100% no-repeat,
|
||||
linear-gradient(var(--line), var(--line)) var(--p) 0 / calc(var(--q) - var(--p)) 100% no-repeat,
|
||||
var(--limstripe) var(--line); }
|
||||
input[type=range].haslim::-moz-range-track {
|
||||
background: linear-gradient(90deg, var(--line) 0 var(--p), #f87171 var(--p) calc(var(--p) + 2px), transparent calc(var(--p) + 2px)),
|
||||
var(--limgrey) var(--p) 0 / calc(var(--q) - var(--p)) 100% no-repeat,
|
||||
linear-gradient(var(--line), var(--line)) var(--p) 0 / calc(var(--q) - var(--p)) 100% no-repeat,
|
||||
var(--limstripe) var(--line); }
|
||||
.fader .limzone { position: absolute; left: var(--tx); width: 10px; margin-left: -5px; top: 12px; border-radius: 5px 5px 2px 2px;
|
||||
height: calc((1 - var(--f)) * (100% - 24px)); background: var(--limstripe); pointer-events: none; z-index: 0; }
|
||||
@@ -709,3 +714,6 @@ input[type=range].haslim::-moz-range-track {
|
||||
.mlval { font-size: 12px; color: var(--dim); text-align: right; font-variant-numeric: tabular-nums; }
|
||||
.mlval.on { color: var(--bad); font-weight: 600; }
|
||||
.mlwarn { grid-column: 2 / -1; color: var(--warn); font-size: 11px; margin-top: -4px; }
|
||||
.fader .limbelow { position: absolute; left: var(--tx); width: 10px; margin-left: -5px; pointer-events: none; z-index: 0;
|
||||
bottom: calc(12px + var(--f) * (100% - 24px)); height: calc(max(0, var(--v, 0) - var(--f)) * (100% - 24px));
|
||||
background: var(--limgrey), #0b0d10; border-radius: 2px; }
|
||||
Reference in new issue
Block a user