533 lines
10 KiB
CSS
533 lines
10 KiB
CSS
/* ===== OPLabs Band Bus - ModGUI Styles ===== */
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
:root {
|
|
--bg-primary: #1a1a2e;
|
|
--bg-secondary: #16213e;
|
|
--bg-surface: #0f3460;
|
|
--text-primary: #e0e0e0;
|
|
--text-secondary: #a0a0b0;
|
|
--accent-blue: #4fc3f7;
|
|
--accent-orange: #ff8c00;
|
|
--meter-green: #4caf50;
|
|
--meter-yellow: #ff9800;
|
|
--meter-red: #f44336;
|
|
--mute-red: #e53935;
|
|
--solo-yellow: #ffc107;
|
|
--border-color: #2a2a4a;
|
|
--channel-width: 80px;
|
|
--meter-width: 28px;
|
|
--master-meter-width: 36px;
|
|
}
|
|
|
|
html, body {
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
font-size: 11px;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
}
|
|
|
|
/* ===== Bus Bridge Container ===== */
|
|
.bus-bridge {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
width: 100%;
|
|
padding: 4px;
|
|
gap: 3px;
|
|
background: var(--bg-primary);
|
|
}
|
|
|
|
/* ===== 8-Channel Strip Row ===== */
|
|
.bus-channels {
|
|
display: flex;
|
|
gap: 3px;
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
|
|
/* ===== Individual Channel Strip (Mini) ===== */
|
|
.ch-strip {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--bg-secondary);
|
|
border-radius: 4px;
|
|
border: 1px solid var(--border-color);
|
|
border-top: 2px solid var(--accent-orange);
|
|
padding: 3px 2px;
|
|
gap: 2px;
|
|
align-items: center;
|
|
position: relative;
|
|
}
|
|
|
|
.ch-strip.muted {
|
|
border-top-color: var(--mute-red);
|
|
opacity: 0.65;
|
|
}
|
|
|
|
.ch-strip-label {
|
|
font-size: 9px;
|
|
font-weight: 700;
|
|
color: var(--text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.3px;
|
|
text-align: center;
|
|
line-height: 1.2;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
width: 100%;
|
|
}
|
|
|
|
/* Mini Mute Button */
|
|
.ch-strip-mute {
|
|
width: 24px;
|
|
height: 18px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 3px;
|
|
font-size: 9px;
|
|
font-weight: 800;
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
background: var(--bg-primary);
|
|
color: var(--text-secondary);
|
|
line-height: 1;
|
|
padding: 0;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.ch-strip-mute:hover {
|
|
filter: brightness(1.3);
|
|
}
|
|
|
|
.ch-strip-mute.active {
|
|
background: var(--mute-red);
|
|
color: #fff;
|
|
border-color: var(--mute-red);
|
|
box-shadow: 0 0 6px rgba(229, 57, 53, 0.35);
|
|
}
|
|
|
|
/* ===== Mini Level Meter ===== */
|
|
.ch-strip-meter {
|
|
display: flex;
|
|
gap: 1px;
|
|
height: 100%;
|
|
width: 100%;
|
|
min-height: 20px;
|
|
flex: 1;
|
|
}
|
|
|
|
.ch-strip-meter .meter-channel {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 0;
|
|
min-width: 0;
|
|
}
|
|
|
|
.ch-strip-meter .meter-label {
|
|
font-size: 7px;
|
|
font-weight: 700;
|
|
color: var(--text-secondary);
|
|
line-height: 1;
|
|
}
|
|
|
|
.ch-strip-meter .meter-track {
|
|
flex: 1;
|
|
width: 100%;
|
|
min-width: 8px;
|
|
background: var(--bg-primary);
|
|
border-radius: 2px;
|
|
position: relative;
|
|
overflow: hidden;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.ch-strip-meter .meter-fill {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 0%;
|
|
background: var(--meter-green);
|
|
transition: height 0.05s linear, background 0.1s ease;
|
|
border-radius: 0 0 1px 1px;
|
|
}
|
|
|
|
.ch-strip-meter .meter-fill.warm {
|
|
background: var(--meter-yellow);
|
|
}
|
|
|
|
.ch-strip-meter .meter-fill.hot {
|
|
background: var(--meter-red);
|
|
}
|
|
|
|
.ch-strip-meter .meter-peak {
|
|
position: absolute;
|
|
left: 1px;
|
|
right: 1px;
|
|
height: 2px;
|
|
background: rgba(255, 255, 255, 0.85);
|
|
border-radius: 1px;
|
|
transition: bottom 0.1s ease;
|
|
z-index: 2;
|
|
}
|
|
|
|
/* ===== Mini Vertical Fader ===== */
|
|
.ch-strip-fader {
|
|
width: 100%;
|
|
height: 50px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 1px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.ch-strip-fader .fader-label {
|
|
font-size: 7px;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.ch-strip-fader .fader-track {
|
|
width: 12px;
|
|
flex: 1;
|
|
background: var(--bg-primary);
|
|
border-radius: 3px;
|
|
border: 1px solid var(--border-color);
|
|
position: relative;
|
|
cursor: pointer;
|
|
touch-action: none;
|
|
min-height: 20px;
|
|
}
|
|
|
|
.ch-strip-fader .fader-fill {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 1px;
|
|
right: 1px;
|
|
height: 50%;
|
|
background: var(--accent-blue);
|
|
border-radius: 0 0 2px 2px;
|
|
opacity: 0.5;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.ch-strip-fader .fader-thumb {
|
|
position: absolute;
|
|
left: -3px;
|
|
right: -3px;
|
|
height: 6px;
|
|
background: var(--accent-blue);
|
|
border-radius: 2px;
|
|
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
cursor: pointer;
|
|
touch-action: none;
|
|
z-index: 2;
|
|
transition: background 0.1s;
|
|
}
|
|
|
|
.ch-strip-fader .fader-thumb:hover,
|
|
.ch-strip-fader .fader-thumb:active {
|
|
background: #81d4fa;
|
|
}
|
|
|
|
.ch-strip-fader .fader-value {
|
|
font-size: 7px;
|
|
font-weight: 600;
|
|
font-family: 'Courier New', monospace;
|
|
color: var(--text-secondary);
|
|
line-height: 1;
|
|
}
|
|
|
|
/* ===== Divider ===== */
|
|
.bus-divider {
|
|
height: 1px;
|
|
background: var(--border-color);
|
|
margin: 1px 0;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* ===== Master Section ===== */
|
|
.master-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 3px;
|
|
padding: 3px 4px;
|
|
background: var(--bg-secondary);
|
|
border-radius: 4px;
|
|
border: 1px solid var(--border-color);
|
|
border-top: 2px solid var(--accent-orange);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.master-section.muted {
|
|
border-top-color: var(--mute-red);
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.master-label {
|
|
font-size: 10px;
|
|
font-weight: 800;
|
|
color: var(--text-primary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
text-align: center;
|
|
}
|
|
|
|
.master-controls {
|
|
display: flex;
|
|
gap: 6px;
|
|
align-items: stretch;
|
|
}
|
|
|
|
/* Master Mute Button */
|
|
.master-btn {
|
|
width: 32px;
|
|
min-height: 40px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 4px;
|
|
font-size: 13px;
|
|
font-weight: 800;
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
background: var(--bg-primary);
|
|
color: var(--text-secondary);
|
|
flex-shrink: 0;
|
|
align-self: center;
|
|
}
|
|
|
|
.master-btn:hover {
|
|
filter: brightness(1.3);
|
|
}
|
|
|
|
.master-btn.mute.active {
|
|
background: var(--mute-red);
|
|
color: #fff;
|
|
border-color: var(--mute-red);
|
|
box-shadow: 0 0 8px rgba(229, 57, 53, 0.4);
|
|
}
|
|
|
|
/* Master Stereo Meters */
|
|
.master-meters {
|
|
display: flex;
|
|
gap: 3px;
|
|
flex: 1;
|
|
height: 60px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.master-meter-channel {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 1px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.master-meter-channel .meter-label {
|
|
font-size: 9px;
|
|
font-weight: 700;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.master-meter-channel .meter-track {
|
|
flex: 1;
|
|
width: 100%;
|
|
max-width: var(--master-meter-width);
|
|
background: var(--bg-primary);
|
|
border-radius: 3px;
|
|
position: relative;
|
|
overflow: hidden;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.master-meter-channel .meter-fill {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 0%;
|
|
background: var(--meter-green);
|
|
transition: height 0.05s linear, background 0.1s ease;
|
|
border-radius: 0 0 2px 2px;
|
|
}
|
|
|
|
.master-meter-channel .meter-fill.warm {
|
|
background: var(--meter-yellow);
|
|
}
|
|
|
|
.master-meter-channel .meter-fill.hot {
|
|
background: var(--meter-red);
|
|
}
|
|
|
|
.master-meter-channel .meter-peak {
|
|
position: absolute;
|
|
left: 1px;
|
|
right: 1px;
|
|
height: 2px;
|
|
background: rgba(255, 255, 255, 0.9);
|
|
border-radius: 1px;
|
|
transition: bottom 0.1s ease;
|
|
z-index: 2;
|
|
}
|
|
|
|
.master-meter-channel .meter-tick {
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
height: 1px;
|
|
background: rgba(255, 255, 255, 0.08);
|
|
z-index: 1;
|
|
}
|
|
|
|
/* Master Fader */
|
|
.master-fader-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 2px;
|
|
width: 40px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.master-fader-section .fader-label {
|
|
font-size: 8px;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.master-fader-section .fader-track {
|
|
width: 16px;
|
|
flex: 1;
|
|
min-height: 40px;
|
|
background: var(--bg-primary);
|
|
border-radius: 4px;
|
|
border: 1px solid var(--border-color);
|
|
position: relative;
|
|
cursor: pointer;
|
|
touch-action: none;
|
|
}
|
|
|
|
.master-fader-section .fader-fill {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 1px;
|
|
right: 1px;
|
|
height: 50%;
|
|
background: var(--accent-orange);
|
|
border-radius: 0 0 3px 3px;
|
|
opacity: 0.4;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.master-fader-section .fader-thumb {
|
|
position: absolute;
|
|
left: -4px;
|
|
right: -4px;
|
|
height: 8px;
|
|
background: var(--accent-orange);
|
|
border-radius: 2px;
|
|
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
cursor: pointer;
|
|
touch-action: none;
|
|
z-index: 2;
|
|
transition: background 0.1s;
|
|
}
|
|
|
|
.master-fader-section .fader-thumb:hover,
|
|
.master-fader-section .fader-thumb:active {
|
|
background: #ffab40;
|
|
}
|
|
|
|
.master-fader-section .fader-value {
|
|
font-size: 9px;
|
|
font-weight: 700;
|
|
font-family: 'Courier New', monospace;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* ===== Bus Readout Bar ===== */
|
|
.bus-readout-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
padding: 2px 4px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.bus-readout-title {
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
color: var(--text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.bus-readout {
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
font-family: 'Courier New', monospace;
|
|
color: var(--accent-blue);
|
|
}
|
|
|
|
.bus-readout span.hot {
|
|
color: var(--meter-red);
|
|
font-weight: 700;
|
|
}
|
|
|
|
/* ===== Responsive ===== */
|
|
@media (max-height: 280px) {
|
|
.ch-strip-fader { height: 30px; }
|
|
.master-meters { height: 36px; }
|
|
.master-fader-section .fader-track { min-height: 24px; }
|
|
.master-label { font-size: 8px; }
|
|
.ch-strip-label { font-size: 7px; }
|
|
}
|
|
|
|
@media (max-height: 350px) {
|
|
.ch-strip-fader { height: 36px; }
|
|
.master-meters { height: 40px; }
|
|
}
|
|
|
|
@media (min-height: 450px) {
|
|
.ch-strip-fader { height: 60px; }
|
|
.master-meters { height: 70px; }
|
|
:root { --channel-width: 90px; }
|
|
:root { --master-meter-width: 44px; }
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
:root { --channel-width: 60px; }
|
|
.ch-strip-label { font-size: 7px; }
|
|
.ch-strip-mute { width: 20px; height: 16px; font-size: 8px; }
|
|
.ch-strip-fader .fader-track { width: 10px; }
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
:root { --channel-width: 50px; }
|
|
.ch-strip { padding: 2px 1px; }
|
|
.bus-channels { gap: 2px; }
|
|
}
|