Files
AV-Live/web_realart/public/control/control.css
T
L'électron rare 2d927107f1
CI build oscope-of / build-check (push) Has been cancelled
feat: web matrix arranger tab
2026-06-28 16:55:59 +02:00

117 lines
6.6 KiB
CSS

* { box-sizing: border-box; } body { margin: 0; background: #111; color: #eee;
font: 16px/1.3 -apple-system, system-ui, sans-serif; padding: 12px; }
header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 36px; }
h1 { font-size: 18px; margin: 4px 0; } h2 { font-size: 14px; color: #9af; margin: 16px 0 8px; text-transform: uppercase; letter-spacing: .06em; }
#status { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
#status.on { background: #4c8; } #status.off { background: #c44; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
button { background: #222; color: #eee; border: 1px solid #333; border-radius: 10px;
padding: 18px 10px; font-size: 16px; cursor: pointer; width: 100%; }
button:active { background: #2a2a2a; } button.armed { background: #2b6; color: #061; border-color: #4d9; font-weight: 700; }
button.wide { width: 100%; margin: 8px 0; background: #422; border-color: #633; }
label { display: block; margin: 10px 0; } input[type=range] { width: 100%; height: 36px; }
.pat-cell { display: flex; flex-direction: column; gap: 4px; }
.pat-cell input[type=range] { height: 20px; accent-color: #4c8; }
button.sel { background: #246; border-color: #4af; color: #8cf; }
.seq-block { margin: 8px 0; }
.seq-block h3 { font-size: 13px; color: #9af; margin: 8px 0 4px; }
.seq-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.seq-row button { min-width: 48px; padding: 12px 8px; font-size: 14px; }
/* --- Step editor --- */
.name-row { margin: 6px 0; }
.preset-name { background: #1a1a2e; color: #9af; border: 1px solid #335;
border-radius: 6px; padding: 6px 10px; font-size: 14px; width: 100%; }
.preset-name:focus { outline: none; border-color: #4af; }
.step-grid { margin: 8px 0; }
.step-row { display: flex; align-items: center; gap: 3px; margin: 3px 0; }
.step-row-label { width: 22px; font-size: 11px; color: #666; text-align: center;
flex-shrink: 0; font-weight: 700; letter-spacing: .04em; }
.step-cell { width: 38px; height: 38px; min-width: 38px; background: #1c1c1c;
border: 1px solid #333; border-radius: 4px; cursor: pointer; padding: 0;
flex-shrink: 0; transition: background 0.07s; }
.step-cell:active { opacity: 0.65; }
.step-cell.on { background: #2b6; border-color: #4d9; }
.mel-steps { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }
.mel-cell input[type=number] { width: 46px; height: 40px; background: #1c1c1c; color: #eee;
border: 1px solid #333; border-radius: 4px; text-align: center; font-size: 13px;
-moz-appearance: textfield; cursor: pointer; }
.mel-cell input[type=number]::-webkit-inner-spin-button,
.mel-cell input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.mel-cell input[type=number]:focus { outline: none; border-color: #4af; background: #1a2030; }
/* --- Tab bar --- */
.tab-bar { display: flex; gap: 4px; margin: 10px 0 6px; }
.tab-btn { background: #1a1a1a; color: #888; border: 1px solid #333; border-radius: 8px;
padding: 10px 8px; font-size: 13px; cursor: pointer; flex: 1; text-transform: uppercase;
letter-spacing: .04em; width: auto; }
.tab-btn.active { background: #246; color: #8cf; border-color: #4af; font-weight: 700; }
.tab-btn:active { background: #1c2a40; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
/* --- Beat flash dot --- */
.beat-dot { width: 14px; height: 14px; border-radius: 50%; background: #333;
display: inline-block; flex-shrink: 0; }
.beat-dot.flash { background: #f90; }
/* --- Master VU meter --- */
.vu-wrap { flex: 1; max-width: 200px; height: 14px; background: #222;
border: 1px solid #333; border-radius: 4px; overflow: hidden; }
.vu-bar { height: 100%; width: 0%; background: linear-gradient(to right, #2b6, #9d4, #fa0);
border-radius: 4px; transition: width 0.08s linear; }
/* --- Quantize selector --- */
.quant-bar { display: flex; align-items: center; gap: 6px; margin: 8px 0; flex-wrap: wrap; }
.quant-label { font-size: 13px; color: #888; flex-shrink: 0; }
.quant-btn { width: auto; padding: 8px 14px; font-size: 14px; flex-shrink: 0; }
.quant-btn.active { background: #246; color: #8cf; border-color: #4af; font-weight: 700; }
/* --- Queued state blink --- */
@keyframes queued-blink {
from { opacity: 1; }
to { opacity: 0.35; }
}
button.queued { animation: queued-blink 600ms ease-in-out infinite alternate; }
/* --- Sections tab --- */
.mode-bar { display: flex; align-items: center; gap: 6px; margin: 8px 0; flex-wrap: wrap; }
.mode-label { font-size: 13px; color: #888; flex-shrink: 0; }
.mode-btn { width: auto; padding: 8px 14px; font-size: 14px; flex-shrink: 0; }
.mode-btn.active { background: #246; color: #8cf; border-color: #4af; font-weight: 700; }
.scene-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.scene-slot { background: #1c1c1c; border: 2px solid #333; border-radius: 10px;
padding: 24px 10px; font-size: 22px; font-weight: 700; cursor: pointer; width: 100%; color: #666; }
.scene-slot.filled { background: #1a1a2e; border-color: #446; color: #8cf; }
.scene-slot.current { background: #2b6; border-color: #4d9; color: #061; font-weight: 900; }
.scene-slot.filled.current { background: #2b6; border-color: #4d9; color: #fff; }
.scene-nav { display: flex; gap: 8px; margin: 8px 0; }
.scene-nav button { flex: 1; font-size: 16px; padding: 16px; }
/* --- Matrix arranger (16x32) --- */
.matrix-transport { display: flex; gap: 8px; margin: 10px 0; }
.matrix-transport button { flex: 1; padding: 14px 10px; font-size: 14px; }
.matrix-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mrow { display: flex; align-items: center; }
.mvoice-label { width: 54px; font-size: 10px; color: #888; text-align: right;
padding-right: 6px; flex-shrink: 0; white-space: nowrap; overflow: hidden;
text-overflow: ellipsis; }
.mbar-num { width: 22px; font-size: 9px; color: #555; text-align: center;
flex-shrink: 0; height: 14px; line-height: 14px; }
.mcell { width: 22px; height: 22px; min-width: 22px; border: 1px solid;
border-radius: 2px; cursor: pointer; padding: 0; flex-shrink: 0; }
.mcell:active { opacity: 0.65; }
.mcell.m0 { background: #1a1a1a; border-color: #2a2a2a; }
.mcell.m1 { background: #c22; border-color: #e44; }
.mcell.m2 { background: #1a8; border-color: #2da; }
.mcell.m3 { background: #25b; border-color: #46e; }
.mcell.m4 { background: #990; border-color: #cc0; }
.mcell.m5 { background: #c60; border-color: #e80; }
.mcell.m6 { background: #82a; border-color: #a4d; }
.mcell.playing { box-shadow: 0 0 0 2px rgba(255,255,255,0.28),
inset 0 0 0 1px rgba(255,255,255,0.40); }