180 lines
3.1 KiB
CSS
180 lines
3.1 KiB
CSS
.limiter-section {
|
|
container-type: size;
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
|
|
height: var(--dsp-control-heigth);
|
|
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: center;
|
|
|
|
box-sizing: border-box;
|
|
|
|
background: var(--bg-panel);
|
|
|
|
z-index: 20;
|
|
|
|
border-top: var(--border-width) solid var(--border-hairline);
|
|
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
}
|
|
|
|
.limiter-panels {
|
|
display: grid;
|
|
grid-auto-flow: column;
|
|
height: 100%;
|
|
gap: var(--space-2);
|
|
overflow-x: auto;
|
|
justify-content: center;
|
|
}
|
|
|
|
.limiter-panel {
|
|
position: relative;
|
|
height: 100%;
|
|
|
|
aspect-ratio: 0.5;
|
|
flex: 0 0 auto;
|
|
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
justify-content: flex-start;
|
|
|
|
border: var(--border-width) solid var(--border-hairline);
|
|
border-radius: var(--radius-md);
|
|
box-sizing: border-box;
|
|
background: var(--bg-void);
|
|
}
|
|
|
|
.limiter-panel__title {
|
|
flex: 0 0 auto;
|
|
width: 100%;
|
|
text-align: center;
|
|
font-family: var(--font-ui);
|
|
font-size: 4cqh;
|
|
font-weight: var(--font-weight-semibold);
|
|
padding-top: 2cqh;
|
|
padding-bottom: 2cqh;
|
|
border-bottom: var(--border-width) solid var(--border-hairline);
|
|
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.limiter-panel__grid {
|
|
flex: 1 1 auto;
|
|
min-height: 0;
|
|
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
grid-template-rows: repeat(2, 1fr);
|
|
grid-template-areas:
|
|
'threshold attack'
|
|
'threshold release';
|
|
gap: 2cqh;
|
|
|
|
padding: 2cqh;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.limiter-panel__cell--threshold {
|
|
grid-area: threshold;
|
|
}
|
|
.limiter-panel__cell--attack {
|
|
grid-area: attack;
|
|
}
|
|
.limiter-panel__cell--release {
|
|
grid-area: release;
|
|
}
|
|
|
|
.limiter-panel__cell {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
min-height: 0;
|
|
min-width: 0;
|
|
gap: 1cqh;
|
|
}
|
|
|
|
.limiter-panel__cell-label {
|
|
flex: 0 0 auto;
|
|
font-family: var(--font-ui);
|
|
font-size: 2.5cqh;
|
|
color: var(--text-muted);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.limiter-linear-graph-section {
|
|
flex: 0 0 calc(100% - var(--dsp-control-heigth));
|
|
min-height: 0;
|
|
|
|
display: flex;
|
|
flex-direction: row;
|
|
gap: 1cqh;
|
|
padding: 0.5cqh;
|
|
|
|
box-sizing: border-box;
|
|
background: var(--bg-panel);
|
|
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
}
|
|
|
|
.limiter-graph-panel {
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
border: var(--border-width) solid var(--border-hairline);
|
|
border-radius: var(--radius-md);
|
|
}
|
|
|
|
.limiter-meter-panel {
|
|
flex: 0 0 auto;
|
|
width: fit-content;
|
|
min-width: max-content;
|
|
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
border: var(--border-width) solid var(--border-hairline);
|
|
border-radius: var(--radius-md);
|
|
}
|
|
|
|
.limiter-graph__title {
|
|
flex: 0 0 auto;
|
|
|
|
text-align: center;
|
|
padding: 1cqh;
|
|
|
|
font-family: var(--font-ui);
|
|
font-size: 2.5cqh;
|
|
font-weight: var(--font-weight-semibold);
|
|
}
|
|
|
|
.limiter-graph__meters {
|
|
flex: 1;
|
|
min-height: 0;
|
|
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: stretch;
|
|
|
|
gap: 1cqh;
|
|
padding: 1cqh;
|
|
}
|
|
|
|
.limiter-graph-panel > .container {
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|