- led-simulator: the rig runs the C++ led-driver as WebAssembly (sim-driver/), one single-threaded worker per bar, no cross-origin isolation needed. Rooms (one JSON per room) with an on-page editor, and a pattern gallery. The Python server, Pyodide boot and ring buffer are removed. - sim-controller sim_rig.c: serves /sim/ from an embedded pack, the page's WebSocket and the rooms/flash API. The desktop build embeds it too. - bridge.c: a "browser" bridge kind that carries ESP-NOW frames to the page; devices announced through it are marked sim. - UI: Simulator in the Menu, split view with resize and pop-out, swipe between controller and rig on phones; SIM/REAL badges in Devices. - Fades: preset pushes and Wi-Fi driver bodies always carry fade and beat_time, so "off" no longer inherits an earlier fade. - Also the sequences-v2 work in progress: desktop port, bridge firmware, serial bridge, Wi-Fi drivers, sequence timeline, audio and API changes. - led-driver: ESP-NOW link, beat sync, control messages, sim hooks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3632 lines
71 KiB
CSS
3632 lines
71 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
|
background-color: #2e2e2e;
|
|
color: white;
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.sr-only {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
white-space: nowrap;
|
|
border: 0;
|
|
}
|
|
|
|
.device-form-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
|
|
gap: 0.75rem;
|
|
align-items: end;
|
|
}
|
|
|
|
.device-form-actions {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
#devices-modal select {
|
|
width: 100%;
|
|
max-width: 16rem;
|
|
padding: 0.35rem;
|
|
background-color: #2e2e2e;
|
|
border: 1px solid #4a4a4a;
|
|
border-radius: 4px;
|
|
color: white;
|
|
}
|
|
|
|
#edit-device-modal select {
|
|
width: 100%;
|
|
max-width: 20rem;
|
|
padding: 0.35rem;
|
|
background-color: #2e2e2e;
|
|
border: 1px solid #4a4a4a;
|
|
border-radius: 4px;
|
|
color: white;
|
|
}
|
|
|
|
.app-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100vh;
|
|
}
|
|
|
|
/* One header row: zone tabs, the BPM readout, the buttons, then the Menu (on narrow screens, just the Menu) */
|
|
header {
|
|
background-color: #1a1a1a;
|
|
padding: 0.75rem 1rem;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
border-bottom: 2px solid #4a4a4a;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
header h1 {
|
|
font-size: 1.35rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.header-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
flex: 0 1 auto;
|
|
flex-wrap: wrap;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.header-menu-mobile {
|
|
display: none;
|
|
position: relative;
|
|
}
|
|
|
|
.main-menu-dropdown {
|
|
position: absolute;
|
|
top: 100%;
|
|
right: 0;
|
|
max-width: min(16rem, calc(100vw - 1rem));
|
|
background-color: #1a1a1a;
|
|
border: 1px solid #4a4a4a;
|
|
border-radius: 4px;
|
|
padding: 0.25rem 0;
|
|
display: none;
|
|
min-width: 160px;
|
|
z-index: 1100;
|
|
}
|
|
|
|
.main-menu-dropdown.open {
|
|
display: block;
|
|
}
|
|
|
|
.main-menu-dropdown button {
|
|
width: 100%;
|
|
background: none;
|
|
border: none;
|
|
color: white;
|
|
text-align: left;
|
|
padding: 0.4rem 0.75rem;
|
|
font-size: 0.85rem;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.main-menu-dropdown button:hover {
|
|
background-color: #333;
|
|
}
|
|
|
|
/* Wide screens: the Menu holds the Edit mode actions and Run mode, the header keeps the rest */
|
|
@media (min-width: 1001px) {
|
|
.header-actions .edit-mode-only,
|
|
body.preset-ui-edit #ui-mode-toggle,
|
|
#main-menu-dropdown > :not(.edit-mode-only):not(.ui-mode-toggle) {
|
|
display: none;
|
|
}
|
|
|
|
.header-menu-mobile {
|
|
display: block;
|
|
}
|
|
|
|
body.preset-ui-run .header-menu-mobile {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.menu-brightness-control {
|
|
padding: 0.45rem 0.75rem 0.55rem;
|
|
border-bottom: 1px solid #333;
|
|
}
|
|
|
|
.menu-brightness-control label {
|
|
display: block;
|
|
font-size: 0.78rem;
|
|
color: #bdbdbd;
|
|
margin-bottom: 0.3rem;
|
|
}
|
|
|
|
.menu-brightness-control input[type="range"] {
|
|
width: 100%;
|
|
}
|
|
|
|
/* Beat/Downbeat switch in the Menu: compact so it fits the dropdown */
|
|
#seq-switch-toggle-wrap-mobile .nav-slide-toggle-side-label {
|
|
font-size: 0.7rem;
|
|
flex-shrink: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
#seq-switch-toggle-wrap-mobile .nav-slide-toggle-switch.seq-switch-toggle {
|
|
width: 3.6rem;
|
|
height: 1.25rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
#seq-switch-toggle-wrap-mobile .nav-slide-toggle-switch .nav-slide-toggle-thumb {
|
|
width: 0.9rem;
|
|
height: 0.9rem;
|
|
}
|
|
|
|
#seq-switch-toggle-wrap-mobile .nav-slide-toggle-switch.seq-switch-toggle--downbeat .nav-slide-toggle-thumb {
|
|
left: calc(100% - 0.9rem - 2px);
|
|
transform: translateY(-50%);
|
|
}
|
|
|
|
.header-brightness-control {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
min-width: 13rem;
|
|
padding: 0.2rem 0.1rem;
|
|
}
|
|
|
|
.header-brightness-control label {
|
|
font-size: 0.8rem;
|
|
color: #bdbdbd;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.header-brightness-control input[type="range"] {
|
|
width: 8.5rem;
|
|
}
|
|
|
|
.audio-top-indicator {
|
|
display: none;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
min-width: 9rem;
|
|
}
|
|
|
|
.audio-top-indicator.audio-running {
|
|
display: inline-flex;
|
|
}
|
|
|
|
.audio-top-indicator .audio-top-beat-sync {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.audio-beat-sync-btn,
|
|
.audio-top-beat-sync {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.4rem;
|
|
width: 100%;
|
|
min-height: 2.25rem;
|
|
padding: 0.3rem 0.55rem;
|
|
border: 1px solid #4a4a4a;
|
|
border-radius: 6px;
|
|
background-color: #1a1a1a;
|
|
cursor: pointer;
|
|
font-family: inherit;
|
|
text-align: left;
|
|
}
|
|
|
|
.audio-top-indicator.audio-simulated .audio-top-bpm-value,
|
|
#audio-modal-beat-sync.audio-simulated .audio-top-indicator-value {
|
|
color: #e6c200;
|
|
}
|
|
|
|
.audio-beat-sync-btn.flash-simulated,
|
|
.audio-top-beat-sync.flash-simulated {
|
|
background-color: #5a4a00;
|
|
border-color: #e6c200;
|
|
}
|
|
|
|
.audio-beat-sync-btn.flash-simulated .audio-top-indicator-value,
|
|
.audio-beat-sync-btn.flash-simulated .audio-top-indicator-label,
|
|
.audio-beat-sync-btn.flash-simulated .audio-top-beat-readout,
|
|
.audio-beat-sync-btn.flash-simulated .audio-top-beat-readout::before,
|
|
.audio-beat-sync-btn.flash-simulated .audio-top-bar-phase,
|
|
.audio-beat-sync-btn.flash-simulated .audio-top-bar-phase::before,
|
|
.audio-top-beat-sync.flash-simulated .audio-top-indicator-value,
|
|
.audio-top-beat-sync.flash-simulated .audio-top-indicator-label,
|
|
.audio-top-beat-sync.flash-simulated .audio-top-beat-readout,
|
|
.audio-top-beat-sync.flash-simulated .audio-top-beat-readout::before,
|
|
.audio-top-beat-sync.flash-simulated .audio-top-bar-phase,
|
|
.audio-top-beat-sync.flash-simulated .audio-top-bar-phase::before {
|
|
color: #fff9c4;
|
|
}
|
|
|
|
.audio-beat-sync-btn:disabled,
|
|
.audio-top-beat-sync:disabled {
|
|
cursor: default;
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.audio-beat-sync-btn:not(:disabled):hover,
|
|
.audio-top-beat-sync:not(:disabled):hover {
|
|
border-color: #6a6a6a;
|
|
background-color: #2a2a2a;
|
|
}
|
|
|
|
.audio-top-indicator-extra {
|
|
font-size: 0.62rem;
|
|
color: #9e9e9e;
|
|
line-height: 1.25;
|
|
text-align: right;
|
|
max-width: 16rem;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.audio-top-indicator-label {
|
|
font-size: 0.72rem;
|
|
color: #bdbdbd;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.audio-top-indicator-value {
|
|
font-size: 1rem;
|
|
font-weight: 700;
|
|
color: #ffd54f;
|
|
min-width: 2.4rem;
|
|
text-align: right;
|
|
}
|
|
|
|
.audio-top-beat-readout {
|
|
font-size: 0.75rem;
|
|
color: #b0bec5;
|
|
line-height: 1.25;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
flex: 1;
|
|
min-width: 2rem;
|
|
text-align: right;
|
|
}
|
|
|
|
.audio-top-beat-readout:empty {
|
|
display: none;
|
|
}
|
|
|
|
.audio-top-beat-readout:not(:empty)::before {
|
|
content: "·";
|
|
margin-right: 0.35rem;
|
|
color: #757575;
|
|
}
|
|
|
|
.audio-top-bar-phase {
|
|
font-size: 0.7rem;
|
|
color: #90a4ae;
|
|
line-height: 1.25;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.audio-top-bar-phase:empty {
|
|
display: none;
|
|
}
|
|
|
|
.audio-top-bar-phase:not(:empty)::before {
|
|
content: "·";
|
|
margin-right: 0.35rem;
|
|
color: #757575;
|
|
}
|
|
|
|
.audio-top-bar-phase.is-downbeat {
|
|
color: #ffab91;
|
|
}
|
|
|
|
.audio-top-indicator-subvalue {
|
|
font-size: 0.75rem;
|
|
color: #9e9e9e;
|
|
min-width: 2.2rem;
|
|
text-align: right;
|
|
}
|
|
|
|
.audio-beat-sync-btn.flash,
|
|
.audio-top-beat-sync.flash {
|
|
background-color: #ff5252;
|
|
border-color: #ff8a80;
|
|
}
|
|
|
|
.audio-beat-sync-btn.flash .audio-top-indicator-value,
|
|
.audio-beat-sync-btn.flash .audio-top-indicator-label,
|
|
.audio-beat-sync-btn.flash .audio-top-beat-readout,
|
|
.audio-beat-sync-btn.flash .audio-top-beat-readout::before,
|
|
.audio-beat-sync-btn.flash .audio-top-bar-phase,
|
|
.audio-beat-sync-btn.flash .audio-top-bar-phase::before,
|
|
.audio-top-beat-sync.flash .audio-top-indicator-value,
|
|
.audio-top-beat-sync.flash .audio-top-indicator-label,
|
|
.audio-top-beat-sync.flash .audio-top-beat-readout,
|
|
.audio-top-beat-sync.flash .audio-top-beat-readout::before,
|
|
.audio-top-beat-sync.flash .audio-top-bar-phase,
|
|
.audio-top-beat-sync.flash .audio-top-bar-phase::before {
|
|
color: #fff;
|
|
}
|
|
|
|
/* Header/menu actions that should only appear in Edit mode */
|
|
body.preset-ui-run .edit-mode-only {
|
|
display: none !important;
|
|
}
|
|
|
|
.btn {
|
|
padding: 0.45rem 0.9rem;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.btn-primary {
|
|
background-color: #4a4a4a;
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background-color: #5a5a5a;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background-color: #3a3a3a;
|
|
color: white;
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background-color: #4a4a4a;
|
|
}
|
|
|
|
.btn-danger {
|
|
background-color: #d32f2f;
|
|
color: white;
|
|
}
|
|
|
|
.btn-danger:hover {
|
|
background-color: #c62828;
|
|
}
|
|
|
|
.btn-small {
|
|
padding: 0.25rem 0.5rem;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.main-content {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.zones-container {
|
|
background-color: transparent;
|
|
padding: 0.5rem 0;
|
|
flex: 1 1 14rem;
|
|
min-width: 8rem;
|
|
align-self: stretch;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.audio-top-indicator {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.zones-list {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
overflow-x: auto;
|
|
padding-bottom: 0.25rem;
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.zone-button {
|
|
padding: 0.5rem 1rem;
|
|
background-color: #3a3a3a;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px 4px 0 0;
|
|
cursor: pointer;
|
|
font-size: 0.9rem;
|
|
white-space: nowrap;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.zone-button:hover {
|
|
background-color: #4a4a4a;
|
|
}
|
|
|
|
.zone-button.active {
|
|
background-color: #6a5acd;
|
|
color: white;
|
|
}
|
|
|
|
.zone-content {
|
|
flex: 1;
|
|
display: block;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
padding: 0.5rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px) + 3.5rem);
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
.presets-toolbar {
|
|
align-items: center;
|
|
}
|
|
|
|
.zone-brightness-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 0.25rem;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.zone-brightness-group label {
|
|
white-space: nowrap;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.left-panel {
|
|
flex: 0 0 50%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
overflow-y: auto;
|
|
border-right: 2px solid #4a4a4a;
|
|
padding-right: 1rem;
|
|
}
|
|
|
|
.right-panel {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
overflow-y: auto;
|
|
padding-left: 1rem;
|
|
}
|
|
|
|
.ids-display {
|
|
padding: 0.5rem;
|
|
background-color: #3a3a3a;
|
|
border-radius: 4px;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.left-panel-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.left-panel-toggle {
|
|
padding: 0.25rem 0.5rem;
|
|
min-width: 32px;
|
|
}
|
|
|
|
.left-panel-body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.left-panel.collapsed {
|
|
flex: 0 0 48px;
|
|
padding-right: 0.5rem;
|
|
}
|
|
|
|
.left-panel.collapsed .left-panel-body {
|
|
display: none;
|
|
}
|
|
|
|
.left-panel.collapsed .left-panel-toggle {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
.controls-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.control-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.control-group label {
|
|
min-width: 100px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.slider {
|
|
flex: 1;
|
|
height: 8px;
|
|
background-color: #3a3a3a;
|
|
border-radius: 4px;
|
|
outline: none;
|
|
-webkit-appearance: none;
|
|
margin: 0 0.5rem;
|
|
}
|
|
|
|
.slider::-webkit-slider-thumb {
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
width: 20px;
|
|
height: 20px;
|
|
background-color: #6a5acd;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.slider::-webkit-slider-thumb:hover {
|
|
background-color: #7a6add;
|
|
}
|
|
|
|
.slider::-moz-range-thumb {
|
|
width: 20px;
|
|
height: 20px;
|
|
background-color: #6a5acd;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
border: none;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.slider::-moz-range-thumb:hover {
|
|
background-color: #7a6add;
|
|
}
|
|
|
|
/* Red slider */
|
|
#red-slider {
|
|
accent-color: #ff0000;
|
|
}
|
|
|
|
#red-slider::-webkit-slider-thumb {
|
|
background-color: #ff0000;
|
|
}
|
|
|
|
#red-slider::-moz-range-thumb {
|
|
background-color: #ff0000;
|
|
}
|
|
|
|
/* Green slider */
|
|
#green-slider {
|
|
accent-color: #00ff00;
|
|
}
|
|
|
|
#green-slider::-webkit-slider-thumb {
|
|
background-color: #00ff00;
|
|
}
|
|
|
|
#green-slider::-moz-range-thumb {
|
|
background-color: #00ff00;
|
|
}
|
|
|
|
/* Blue slider */
|
|
#blue-slider {
|
|
accent-color: #0000ff;
|
|
}
|
|
|
|
#blue-slider::-webkit-slider-thumb {
|
|
background-color: #0000ff;
|
|
}
|
|
|
|
#blue-slider::-moz-range-thumb {
|
|
background-color: #0000ff;
|
|
}
|
|
|
|
/* Brightness slider */
|
|
#brightness-slider {
|
|
accent-color: #ffff00;
|
|
}
|
|
|
|
#brightness-slider::-webkit-slider-thumb {
|
|
background-color: #ffff00;
|
|
}
|
|
|
|
#brightness-slider::-moz-range-thumb {
|
|
background-color: #ffff00;
|
|
}
|
|
|
|
.slider-value {
|
|
min-width: 50px;
|
|
text-align: right;
|
|
font-weight: 500;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.n-params-section {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.n-params-section h3 {
|
|
margin-bottom: 0.5rem;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.n-params-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.n-param-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.n-param-group label {
|
|
flex: 1;
|
|
min-width: 0;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.preset-mode-field {
|
|
margin-top: 0.75rem;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.preset-mode-field label {
|
|
display: block;
|
|
font-weight: 500;
|
|
margin-bottom: 0.35rem;
|
|
}
|
|
|
|
.preset-mode-input {
|
|
display: block;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
box-sizing: border-box;
|
|
padding: 0.5rem 0.6rem;
|
|
background-color: #3a3a3a;
|
|
color: #fff;
|
|
border: 1px solid #4a4a4a;
|
|
border-radius: 4px;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.preset-mode-input:focus {
|
|
outline: none;
|
|
border-color: #6a9fff;
|
|
}
|
|
|
|
#preset-editor-modal .preset-mode-field {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.n-input {
|
|
flex: 0 0 var(--n-input-width, 5ch);
|
|
width: var(--n-input-width, 5ch);
|
|
max-width: 100%;
|
|
box-sizing: border-box;
|
|
padding: 0.5rem;
|
|
background-color: #3a3a3a;
|
|
color: white;
|
|
border: 1px solid #4a4a4a;
|
|
border-radius: 4px;
|
|
font-size: 1rem;
|
|
text-align: right;
|
|
}
|
|
|
|
.n-input:focus {
|
|
outline: none;
|
|
border-color: #6a5acd;
|
|
}
|
|
|
|
.patterns-section,
|
|
.presets-section,
|
|
.color-palette-section {
|
|
background-color: #1a1a1a;
|
|
border: 2px solid #4a4a4a;
|
|
border-radius: 4px;
|
|
padding: 1rem;
|
|
}
|
|
|
|
.patterns-section h3,
|
|
.presets-section h3,
|
|
.color-palette-section h3 {
|
|
margin-bottom: 1rem;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
/* Make the presets area fill available vertical space; no border around presets */
|
|
.presets-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
min-width: 0;
|
|
overflow-x: hidden;
|
|
border: none;
|
|
background-color: transparent;
|
|
padding: 0;
|
|
}
|
|
|
|
/* Zone preset selecting area: 8 columns on desktop, vertical scroll only */
|
|
#presets-list-zone {
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
display: grid;
|
|
grid-template-columns: repeat(8, minmax(0, 1fr));
|
|
/* min-content height prevents taller tiles (edit actions, wrapping) from overlapping the next row and stealing clicks */
|
|
grid-auto-rows: minmax(5rem, auto);
|
|
column-gap: 0.3rem;
|
|
row-gap: 0.3rem;
|
|
align-content: start;
|
|
width: 100%;
|
|
padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 5.5rem);
|
|
scroll-padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 5.5rem);
|
|
}
|
|
|
|
#presets-list-zone > :last-child {
|
|
margin-bottom: calc(env(safe-area-inset-bottom, 0px) + 2.5rem);
|
|
}
|
|
|
|
/* Settings modal layout */
|
|
.settings-section {
|
|
background-color: #1a1a1a;
|
|
border-radius: 8px;
|
|
padding: 1rem;
|
|
margin-top: 1rem;
|
|
border: 1px solid #4a4a4a;
|
|
}
|
|
|
|
.settings-section h3 {
|
|
font-size: 1.1rem;
|
|
margin-bottom: 0.75rem;
|
|
color: #fff;
|
|
border-bottom: 1px solid #4a4a4a;
|
|
padding-bottom: 0.25rem;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
margin-bottom: 0.5rem;
|
|
color: #ccc;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.form-group input[type="text"],
|
|
.form-group input[type="password"],
|
|
.form-group input[type="number"],
|
|
.form-group select {
|
|
width: 100%;
|
|
padding: 0.5rem;
|
|
background-color: #2e2e2e;
|
|
border: 1px solid #4a4a4a;
|
|
border-radius: 4px;
|
|
color: white;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.form-group small {
|
|
display: block;
|
|
margin-top: 0.25rem;
|
|
color: #888;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.form-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.status-info {
|
|
background-color: #2e2e2e;
|
|
border: 1px solid #4a4a4a;
|
|
border-radius: 4px;
|
|
padding: 0.75rem;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.status-info h3,
|
|
.status-info h4 {
|
|
font-size: 1rem;
|
|
margin-bottom: 0.5rem;
|
|
color: #fff;
|
|
}
|
|
|
|
.status-info p {
|
|
color: #aaa;
|
|
margin: 0.25rem 0;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.status-connected {
|
|
color: #4caf50;
|
|
}
|
|
|
|
.status-disconnected {
|
|
color: #f44336;
|
|
}
|
|
|
|
/* Devices modal: live TCP presence (Wi-Fi only) */
|
|
.device-kind-badge {
|
|
flex: none;
|
|
font-size: 0.75em;
|
|
line-height: 1;
|
|
padding: 0.25em 0.55em;
|
|
border-radius: 999px;
|
|
border: 1px solid;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.device-kind-badge--sim {
|
|
color: #8ec5ff;
|
|
border-color: #2f5b86;
|
|
background-color: #1d2a3a;
|
|
}
|
|
|
|
.device-kind-badge--real {
|
|
color: #b9c0cc;
|
|
border-color: #555;
|
|
background-color: #2e2e2e;
|
|
}
|
|
|
|
.device-status-dot {
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
align-self: center;
|
|
}
|
|
|
|
.device-status-dot--online {
|
|
background: #4caf50;
|
|
box-shadow: 0 0 6px rgba(76, 175, 80, 0.45);
|
|
}
|
|
|
|
.device-status-dot--offline {
|
|
background: #616161;
|
|
}
|
|
|
|
.device-status-dot--unknown {
|
|
background: #424242;
|
|
border: 1px solid #757575;
|
|
}
|
|
|
|
.device-status-dot--pinging {
|
|
background: #ffb300;
|
|
box-shadow: 0 0 6px rgba(255, 179, 0, 0.45);
|
|
}
|
|
|
|
.btn-group {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
margin-top: 0.75rem;
|
|
}
|
|
|
|
.btn-full {
|
|
flex: 1;
|
|
}
|
|
|
|
.message {
|
|
padding: 0.75rem;
|
|
border-radius: 4px;
|
|
margin-bottom: 1rem;
|
|
display: none;
|
|
}
|
|
|
|
.message.success {
|
|
background-color: #1b5e20;
|
|
color: #4caf50;
|
|
border: 1px solid #4caf50;
|
|
}
|
|
|
|
.message.error {
|
|
background-color: #5e1b1b;
|
|
color: #f44336;
|
|
border: 1px solid #f44336;
|
|
}
|
|
|
|
.message.show {
|
|
display: block;
|
|
}
|
|
|
|
.audio-bpm-readout {
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0.05em;
|
|
color: #ffd54f;
|
|
text-align: center;
|
|
padding: 0.4rem;
|
|
background-color: #1a1a1a;
|
|
border: 1px solid #4a4a4a;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.audio-bpm-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.audio-bpm-row .audio-bpm-readout {
|
|
flex: 0 0 auto;
|
|
min-width: 5rem;
|
|
}
|
|
|
|
#audio-modal .audio-settings-section {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
#audio-modal .audio-modal-beat-sync {
|
|
width: 100%;
|
|
}
|
|
|
|
#audio-modal .audio-modal-content {
|
|
max-width: 640px;
|
|
}
|
|
|
|
.audio-device-block {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.audio-device-select-row {
|
|
align-items: stretch;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.audio-device-select-row select {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
#audio-modal .audio-modal-beat-sync {
|
|
width: 100%;
|
|
}
|
|
|
|
.audio-volume-block {
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.audio-volume-header {
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
gap: 0.75rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.audio-volume-header label {
|
|
margin: 0;
|
|
}
|
|
|
|
.audio-volume-readout {
|
|
font-size: 0.9rem;
|
|
color: #e0e0e0;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.audio-volume-slider-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.audio-volume-slider {
|
|
--audio-volume-pct: 50%;
|
|
--audio-volume-unity: 50%;
|
|
flex: 1;
|
|
width: 100%;
|
|
height: 0.45rem;
|
|
margin: 0.35rem 0;
|
|
accent-color: #ff9800;
|
|
background: transparent;
|
|
}
|
|
|
|
.audio-volume-scale {
|
|
position: relative;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 0.72rem;
|
|
color: #9e9e9e;
|
|
margin: 0.15rem 0 0.45rem;
|
|
min-height: 1rem;
|
|
}
|
|
|
|
.audio-volume-scale-unity {
|
|
position: absolute;
|
|
left: var(--audio-volume-unity, 50%);
|
|
transform: translateX(-50%);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
#audio-modal .audio-volume-block {
|
|
--audio-volume-unity: 50%;
|
|
}
|
|
|
|
.audio-input-level-meter {
|
|
width: 100%;
|
|
height: 0.35rem;
|
|
border: none;
|
|
border-radius: 2px;
|
|
background: #2a2a2a;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.audio-input-level-bar {
|
|
height: 100%;
|
|
width: 0%;
|
|
background: #ff9800;
|
|
transition: width 60ms linear;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.audio-hit-type-readout {
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
letter-spacing: 0.04em;
|
|
color: #81d4fa;
|
|
text-transform: lowercase;
|
|
text-align: center;
|
|
padding: 0.35rem;
|
|
background-color: #1a1a1a;
|
|
border: 1px solid #4a4a4a;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.audio-beat-flash {
|
|
width: 100%;
|
|
height: 56px;
|
|
border-radius: 6px;
|
|
border: 1px solid #4a4a4a;
|
|
background: #202020;
|
|
box-shadow: inset 0 0 0 0 rgba(255, 82, 82, 0.5);
|
|
transition: background-color 80ms linear, box-shadow 120ms linear;
|
|
}
|
|
|
|
.audio-beat-flash.active {
|
|
background: #ff5252;
|
|
box-shadow: inset 0 0 24px 6px rgba(255, 255, 255, 0.35);
|
|
}
|
|
|
|
.patterns-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.presets-list {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.75rem;
|
|
width: 100%;
|
|
}
|
|
|
|
.pattern-button {
|
|
height: 5rem;
|
|
padding: 0 0.5rem;
|
|
background-color: #3a3a3a;
|
|
color: white;
|
|
border: 3px solid #000;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 0.85rem;
|
|
text-align: left;
|
|
transition: background-color 0.2s;
|
|
line-height: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
overflow: hidden;
|
|
box-shadow: none;
|
|
outline: none;
|
|
position: relative;
|
|
}
|
|
|
|
/* Preset tile: main button + optional edit/remove (Edit mode) */
|
|
.preset-tile-row {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: stretch;
|
|
min-width: 0;
|
|
min-height: 5rem;
|
|
}
|
|
|
|
.preset-tile-row-top {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: stretch;
|
|
flex: 1;
|
|
min-width: 0;
|
|
min-height: 5rem;
|
|
}
|
|
|
|
.preset-tile-main {
|
|
flex: 1;
|
|
min-width: 0;
|
|
height: 5rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 0.12rem;
|
|
}
|
|
|
|
.preset-tile-main .preset-tile-groups {
|
|
font-size: 0.68rem;
|
|
font-weight: 500;
|
|
line-height: 1.15;
|
|
opacity: 0.88;
|
|
text-align: center;
|
|
max-width: 100%;
|
|
padding: 0 0.35rem;
|
|
box-sizing: border-box;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.preset-tile-row--run .preset-tile-actions {
|
|
display: none;
|
|
}
|
|
|
|
/* Edit only beside the preset tile in edit mode. */
|
|
.preset-tile-actions {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: stretch;
|
|
gap: 0.2rem;
|
|
flex-shrink: 0;
|
|
padding: 0.15rem 0 0.15rem 0.25rem;
|
|
width: auto;
|
|
min-width: 0;
|
|
}
|
|
|
|
.preset-editor-modal-actions {
|
|
flex-wrap: wrap;
|
|
gap: 0.35rem;
|
|
}
|
|
|
|
.preset-tile-actions .btn {
|
|
width: 100%;
|
|
min-height: 2.35rem;
|
|
padding: 0.15rem 0.35rem;
|
|
font-size: 0.68rem;
|
|
line-height: 1.15;
|
|
white-space: normal;
|
|
}
|
|
|
|
.nav-slide-toggle-wrap {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.4rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
html.simulated-bpm-mode .seq-switch-toggle-wrap {
|
|
display: none !important;
|
|
}
|
|
|
|
.nav-slide-toggle-side-label {
|
|
font-size: 0.82rem;
|
|
color: #888;
|
|
user-select: none;
|
|
line-height: 1;
|
|
}
|
|
|
|
.nav-slide-toggle-wrap:not(.nav-slide-toggle-wrap--downbeat) .nav-slide-toggle-side-label--beat,
|
|
.nav-slide-toggle-wrap--downbeat .nav-slide-toggle-side-label--downbeat {
|
|
color: #e8e8e8;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.nav-slide-toggle-switch {
|
|
position: relative;
|
|
width: 2.75rem;
|
|
height: 1.4rem;
|
|
padding: 0;
|
|
margin: 0;
|
|
color: inherit;
|
|
font: inherit;
|
|
appearance: none;
|
|
border: 1px solid #4a4a4a;
|
|
border-radius: 999px;
|
|
background-color: #2a2a2a;
|
|
cursor: pointer;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.nav-slide-toggle-switch:hover {
|
|
border-color: #666;
|
|
}
|
|
|
|
.nav-slide-toggle-switch:focus-visible {
|
|
outline: 2px solid #7b6fd6;
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.nav-slide-toggle-track {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: inherit;
|
|
}
|
|
|
|
.nav-slide-toggle-thumb {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 2px;
|
|
width: 1rem;
|
|
height: 1rem;
|
|
border-radius: 50%;
|
|
background-color: #bdbdbd;
|
|
transform: translateY(-50%);
|
|
transition: left 0.2s ease, background-color 0.2s ease;
|
|
}
|
|
|
|
.nav-slide-toggle-switch.seq-switch-toggle--downbeat {
|
|
background-color: #4a3f8f;
|
|
border-color: #7b6fd6;
|
|
}
|
|
|
|
.nav-slide-toggle-switch.seq-switch-toggle--downbeat:hover {
|
|
background-color: #5a4f9f;
|
|
border-color: #8b7fe6;
|
|
}
|
|
|
|
.nav-slide-toggle-switch.seq-switch-toggle--downbeat .nav-slide-toggle-thumb {
|
|
left: calc(100% - 1rem - 2px);
|
|
transform: translateY(-50%);
|
|
background-color: #e8e4ff;
|
|
}
|
|
|
|
.nav-slide-toggle-switch.is-on {
|
|
background-color: #1b5e20;
|
|
border-color: #4caf50;
|
|
}
|
|
|
|
.nav-slide-toggle-switch.is-on .nav-slide-toggle-thumb {
|
|
left: calc(100% - 1rem - 2px);
|
|
background-color: #e8f5e9;
|
|
}
|
|
|
|
.main-menu-dropdown .nav-slide-toggle-wrap--mobile {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
box-sizing: border-box;
|
|
padding: 0.45rem 0.5rem;
|
|
border-bottom: 1px solid #333;
|
|
flex-shrink: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
/* Preset select buttons inside the zone grid */
|
|
#presets-list-zone .pattern-button {
|
|
display: flex;
|
|
}
|
|
.pattern-button .pattern-button-label {
|
|
text-shadow: 0 0 2px rgba(0,0,0,0.8), 0 1px 2px rgba(0,0,0,0.6);
|
|
}
|
|
|
|
.pattern-button:hover {
|
|
background-color: #4a4a4a;
|
|
}
|
|
|
|
.pattern-button.active {
|
|
background-color: #6a5acd;
|
|
color: white;
|
|
border-color: #ffffff;
|
|
}
|
|
.pattern-button.active[style*="background-image"] {
|
|
background-color: transparent;
|
|
}
|
|
|
|
.pattern-button.active::after {
|
|
content: '';
|
|
position: absolute;
|
|
inset: -3px;
|
|
border-radius: 7px;
|
|
padding: 3px;
|
|
pointer-events: none;
|
|
background: #ffffff;
|
|
-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
|
|
-webkit-mask-composite: xor;
|
|
mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
|
|
mask-composite: exclude;
|
|
}
|
|
|
|
.pattern-button.default-preset {
|
|
/* No border; active state shows selection */
|
|
}
|
|
|
|
.color-palette {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
margin-bottom: 1rem;
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.color-swatch {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0.5rem;
|
|
background-color: #3a3a3a;
|
|
border: 2px solid transparent;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: border-color 0.2s;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.color-swatch:hover {
|
|
border-color: #6a5acd;
|
|
}
|
|
|
|
.color-swatch.selected {
|
|
border-color: #FFD700;
|
|
border-width: 3px;
|
|
}
|
|
|
|
.color-swatch-preview {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 4px;
|
|
border: 1px solid #4a4a4a;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.color-swatch-label {
|
|
flex: 1;
|
|
font-size: 0.9rem;
|
|
min-width: 80px;
|
|
}
|
|
|
|
.color-picker-input {
|
|
width: 60px;
|
|
height: 40px;
|
|
border: 1px solid #4a4a4a;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
background: none;
|
|
padding: 0;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.color-picker-input::-webkit-color-swatch-wrapper {
|
|
padding: 0;
|
|
}
|
|
|
|
.color-picker-input::-webkit-color-swatch {
|
|
border: none;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.color-picker-input::-moz-color-swatch {
|
|
border: none;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.palette-actions {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.modal {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.7);
|
|
z-index: 1000;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.modal.active {
|
|
display: flex;
|
|
}
|
|
|
|
/* Stack sequence modals below groups / preset editor so in-modal actions stay visible */
|
|
#sequence-editor-modal.active,
|
|
#sequences-modal.active {
|
|
z-index: 1040;
|
|
}
|
|
#groups-modal.active,
|
|
#edit-group-modal.active,
|
|
#presets-modal.active {
|
|
z-index: 1050;
|
|
}
|
|
#preset-editor-modal.active {
|
|
z-index: 1060;
|
|
}
|
|
|
|
/* Child / overlay modals: must paint above preset editor (1060) and list modals (1050). */
|
|
#color-palette-modal.active,
|
|
#pattern-editor-modal.active,
|
|
#edit-device-modal.active,
|
|
#edit-zone-modal.active {
|
|
z-index: 1070;
|
|
}
|
|
|
|
/* Patterns library (often used next to presets); below preset editor, above sequences. */
|
|
#patterns-modal.active {
|
|
z-index: 1055;
|
|
}
|
|
|
|
/* Header / global dialogs */
|
|
#help-modal.active,
|
|
#audio-modal.active,
|
|
#settings-modal.active {
|
|
z-index: 1080;
|
|
}
|
|
|
|
/* JS-appended overlays (e.g. preset “From Palette”, add-preset-to-zone) — must sit above #preset-editor-modal */
|
|
.modal.modal-child-overlay.active {
|
|
z-index: 1080;
|
|
}
|
|
|
|
.modal-content {
|
|
background-color: #2e2e2e;
|
|
padding: 2rem;
|
|
border-radius: 8px;
|
|
min-width: 320px;
|
|
max-width: 500px;
|
|
}
|
|
|
|
.modal-content h2 {
|
|
margin-bottom: 1rem;
|
|
font-size: 1.3rem;
|
|
}
|
|
|
|
.modal-head {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 0.75rem;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.modal-head h2 {
|
|
margin: 0;
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.modal-top-actions {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
flex-wrap: wrap;
|
|
justify-content: flex-end;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.modal-content label {
|
|
display: block;
|
|
margin-top: 1rem;
|
|
margin-bottom: 0.5rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.modal-content input {
|
|
width: 100%;
|
|
padding: 0.5rem;
|
|
background-color: #3a3a3a;
|
|
color: white;
|
|
border: 1px solid #4a4a4a;
|
|
border-radius: 4px;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.modal-content input:focus {
|
|
outline: none;
|
|
border-color: #6a5acd;
|
|
}
|
|
|
|
.modal-actions {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
margin-top: 1.5rem;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
/* Scrollbar styling */
|
|
::-webkit-scrollbar {
|
|
width: 8px;
|
|
height: 8px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: #1a1a1a;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: #4a4a4a;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: #5a5a5a;
|
|
}
|
|
|
|
/* Mobile-friendly layout */
|
|
@media (max-width: 1000px) {
|
|
header {
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
header h1 {
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.main-menu-dropdown {
|
|
max-width: min(16rem, calc(100vw - 1rem));
|
|
}
|
|
|
|
.zones-container {
|
|
padding: 0.5rem 0;
|
|
border-bottom: none;
|
|
}
|
|
|
|
/* All actions are in the Menu */
|
|
.header-actions {
|
|
display: none;
|
|
}
|
|
|
|
.header-menu-mobile {
|
|
display: block;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.audio-top-indicator {
|
|
min-width: 5rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.audio-top-beat-sync {
|
|
padding: 0.2rem 0.4rem;
|
|
min-height: 2rem;
|
|
gap: 0.3rem;
|
|
}
|
|
|
|
.btn {
|
|
font-size: 0.8rem;
|
|
padding: 0.4rem 0.7rem;
|
|
}
|
|
|
|
.zone-content {
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.left-panel {
|
|
flex: 1;
|
|
border-right: none;
|
|
padding-right: 0;
|
|
}
|
|
|
|
.right-panel {
|
|
padding-left: 0;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
/* Hide the "Presets for ..." heading to save space on mobile */
|
|
.presets-section h3 {
|
|
display: none;
|
|
}
|
|
|
|
.modal-content {
|
|
min-width: 280px;
|
|
max-width: 95vw;
|
|
padding: 1.25rem;
|
|
max-height: calc(100dvh - 1rem);
|
|
overflow-y: auto;
|
|
padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
|
|
}
|
|
|
|
.form-row {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* Styles moved from inline <style> in templates/index.html */
|
|
.modal {
|
|
display: none;
|
|
position: fixed;
|
|
z-index: 1000;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0,0,0,0.7);
|
|
overflow-y: auto;
|
|
padding: 1rem;
|
|
-webkit-overflow-scrolling: touch;
|
|
overscroll-behavior: contain;
|
|
}
|
|
.modal.active {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.modal-content {
|
|
background-color: #2e2e2e;
|
|
padding: 2rem;
|
|
border-radius: 8px;
|
|
min-width: 400px;
|
|
max-width: 600px;
|
|
max-height: calc(100dvh - 2rem);
|
|
overflow-y: auto;
|
|
padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
/* Real-phone viewport fallback for browsers with unstable 100dvh behavior. */
|
|
@supports (-webkit-touch-callout: none) {
|
|
.modal {
|
|
min-height: -webkit-fill-available;
|
|
}
|
|
.modal-content {
|
|
max-height: calc(-webkit-fill-available - 2rem);
|
|
}
|
|
}
|
|
.modal-content label {
|
|
display: block;
|
|
margin-top: 1rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
.modal-content input[type="text"] {
|
|
width: 100%;
|
|
padding: 0.5rem;
|
|
background-color: #3a3a3a;
|
|
border: 1px solid #4a4a4a;
|
|
border-radius: 4px;
|
|
color: white;
|
|
}
|
|
.profiles-actions {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
margin-top: 1rem;
|
|
}
|
|
.profiles-actions input[type="text"] {
|
|
flex: 1;
|
|
}
|
|
.profiles-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
margin-top: 1rem;
|
|
max-height: 50vh;
|
|
overflow-y: auto;
|
|
}
|
|
.profiles-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 0.5rem;
|
|
padding: 0.5rem;
|
|
background-color: #3a3a3a;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.group-list-row {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.55rem;
|
|
padding: 0.65rem 0.75rem;
|
|
background-color: #3a3a3a;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.group-list-row-info {
|
|
min-width: 0;
|
|
}
|
|
|
|
.group-list-row-title {
|
|
font-weight: 600;
|
|
line-height: 1.35;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.group-list-row-meta {
|
|
margin-top: 0.15rem;
|
|
font-size: 0.8em;
|
|
line-height: 1.35;
|
|
text-align: left;
|
|
}
|
|
|
|
.group-list-row-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.35rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.zone-modal-create-row {
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
}
|
|
|
|
.zone-modal-create-row input[type="text"] {
|
|
flex: 1;
|
|
min-width: 8rem;
|
|
}
|
|
|
|
.zone-content-kind-row {
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
margin: 0.35rem 0 0.75rem;
|
|
}
|
|
|
|
.zone-content-kind-row label {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
margin: 0;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.zone-devices-label {
|
|
display: block;
|
|
margin-top: 0.75rem;
|
|
margin-bottom: 0.35rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.zone-devices-editor.zone-devices-panel {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
margin-bottom: 0.5rem;
|
|
max-height: 14rem;
|
|
overflow: hidden;
|
|
min-height: 0;
|
|
}
|
|
|
|
.zone-devices-list {
|
|
flex: 1 1 auto;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
padding-right: 0.15rem;
|
|
}
|
|
|
|
.zone-devices-add-slot {
|
|
flex: 0 0 auto;
|
|
padding-top: 0.5rem;
|
|
margin-top: 0.35rem;
|
|
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
/* Legacy: single container without panel split (prefer zone-devices-panel.js). */
|
|
.zone-devices-editor:not(.zone-devices-panel) {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
margin-bottom: 0.5rem;
|
|
max-height: 14rem;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.zone-device-row-label {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.zone-device-add-select {
|
|
flex: 1;
|
|
min-width: 10rem;
|
|
padding: 0.5rem;
|
|
background-color: #3a3a3a;
|
|
border: 1px solid #4a4a4a;
|
|
border-radius: 4px;
|
|
color: white;
|
|
}
|
|
|
|
.zone-device-add-picker {
|
|
flex: 1 1 100%;
|
|
min-width: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.35rem;
|
|
}
|
|
|
|
.zone-device-add-search {
|
|
width: 100%;
|
|
padding: 0.5rem;
|
|
background-color: #3a3a3a;
|
|
border: 1px solid #4a4a4a;
|
|
border-radius: 4px;
|
|
color: white;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.zone-device-add-search:focus {
|
|
outline: none;
|
|
border-color: #6a5acd;
|
|
}
|
|
|
|
.zone-device-add-results {
|
|
max-height: 10rem;
|
|
overflow-y: auto;
|
|
border: 1px solid #4a4a4a;
|
|
border-radius: 4px;
|
|
background-color: #3a3a3a;
|
|
}
|
|
|
|
.zone-device-add-results-empty {
|
|
padding: 0.5rem 0.6rem;
|
|
text-align: left;
|
|
}
|
|
|
|
.zone-device-add-result {
|
|
display: block;
|
|
width: 100%;
|
|
text-align: left;
|
|
padding: 0.45rem 0.6rem;
|
|
border: none;
|
|
border-bottom: 1px solid #4a4a4a;
|
|
background: transparent;
|
|
color: white;
|
|
cursor: pointer;
|
|
font: inherit;
|
|
}
|
|
|
|
.zone-device-add-result:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.zone-device-add-result:hover,
|
|
.zone-device-add-result:focus-visible {
|
|
background-color: #4a4a4a;
|
|
outline: none;
|
|
}
|
|
|
|
.zone-device-add-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding-right: 0.5rem;
|
|
border-bottom: 1px solid #4a4a4a;
|
|
}
|
|
|
|
.zone-device-add-row:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.zone-device-add-row .zone-device-add-result {
|
|
flex: 1;
|
|
width: auto;
|
|
min-width: 0;
|
|
border-bottom: none;
|
|
}
|
|
|
|
.zone-devices-add {
|
|
margin-top: 0;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.zone-presets-section-label {
|
|
display: block;
|
|
margin-top: 1rem;
|
|
margin-bottom: 0.35rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.edit-zone-presets-scroll {
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.edit-zone-presets-scroll .edit-zone-item-row {
|
|
padding: 0.25rem 0.4rem;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
/* Hide any text content in palette rows - only show color swatches */
|
|
#palette-container .profiles-row {
|
|
font-size: 0; /* Hide any text nodes */
|
|
}
|
|
#palette-container .profiles-row > * {
|
|
font-size: 1rem; /* Restore font size for buttons */
|
|
}
|
|
#palette-container .profiles-row > span:not(.btn),
|
|
#palette-container .profiles-row > label,
|
|
#palette-container .profiles-row::before,
|
|
#palette-container .profiles-row::after {
|
|
display: none !important;
|
|
content: none !important;
|
|
}
|
|
/* Preset colors container */
|
|
#preset-colors-container {
|
|
min-height: 80px;
|
|
padding: 0.5rem;
|
|
background-color: #2a2a2a;
|
|
border-radius: 4px;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
#preset-colors-container .muted-text {
|
|
color: #888;
|
|
font-size: 0.9rem;
|
|
padding: 1rem;
|
|
text-align: center;
|
|
}
|
|
.muted-text {
|
|
text-align: center;
|
|
color: #888;
|
|
}
|
|
.modal-actions {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
margin-top: 1.5rem;
|
|
justify-content: flex-end;
|
|
}
|
|
.error {
|
|
color: #d32f2f;
|
|
padding: 0.5rem;
|
|
background-color: #3a1a1a;
|
|
border-radius: 4px;
|
|
margin-top: 0.5rem;
|
|
}
|
|
/* Drag and drop styles for presets */
|
|
.draggable-preset {
|
|
cursor: move;
|
|
transition: opacity 0.2s, transform 0.2s;
|
|
}
|
|
.draggable-preset.dragging {
|
|
opacity: 0.5;
|
|
transform: scale(0.95);
|
|
}
|
|
.draggable-preset:hover {
|
|
opacity: 0.8;
|
|
}
|
|
/* Drag and drop styles for color swatches */
|
|
.draggable-color-swatch {
|
|
transition: opacity 0.2s, transform 0.2s;
|
|
}
|
|
.draggable-color-swatch.dragging-color {
|
|
opacity: 0.5;
|
|
transform: scale(0.9);
|
|
}
|
|
.draggable-color-swatch.drag-over-color {
|
|
transform: scale(1.1);
|
|
}
|
|
.color-swatches-container {
|
|
min-height: 80px;
|
|
}
|
|
/* Presets list: 3 columns on phone-sized screens */
|
|
@media (max-width: 600px) {
|
|
#presets-list-zone {
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 7rem);
|
|
scroll-padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 7rem);
|
|
}
|
|
}
|
|
/* Help modal readability */
|
|
#help-modal .modal-content,
|
|
#help-modal .help-modal-content {
|
|
max-width: 840px;
|
|
width: 95vw;
|
|
line-height: 1.6;
|
|
font-size: 0.95rem;
|
|
}
|
|
#help-modal .modal-head {
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
#help-modal .help-tabs {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.35rem;
|
|
margin: 0.5rem 0 1rem;
|
|
border-bottom: 1px solid #4a4a4a;
|
|
padding-bottom: 0.5rem;
|
|
}
|
|
#help-modal .help-tab-btn {
|
|
background: #3a3a3a;
|
|
color: #ccc;
|
|
border: 1px solid #4a4a4a;
|
|
border-radius: 4px 4px 0 0;
|
|
padding: 0.4rem 0.7rem;
|
|
font-size: 0.85rem;
|
|
cursor: pointer;
|
|
}
|
|
#help-modal .help-tab-btn:hover {
|
|
color: #fff;
|
|
border-color: #6a5acd;
|
|
}
|
|
#help-modal .help-tab-btn.active {
|
|
background: #1a1a1a;
|
|
color: #fff;
|
|
border-color: #6a5acd;
|
|
border-bottom-color: #1a1a1a;
|
|
margin-bottom: -1px;
|
|
}
|
|
#help-modal .help-tab-panel:not(.active) {
|
|
display: none;
|
|
}
|
|
#help-modal .help-tab-panel {
|
|
max-height: min(70vh, 640px);
|
|
overflow-y: auto;
|
|
padding-right: 0.25rem;
|
|
}
|
|
#help-modal .help-ui-preview {
|
|
margin: 0 0 1rem;
|
|
border: 1px solid #4a4a4a;
|
|
border-radius: 8px;
|
|
background: #1a1a1a;
|
|
overflow: hidden;
|
|
pointer-events: none;
|
|
user-select: none;
|
|
}
|
|
#help-modal .help-ui-preview-caption {
|
|
margin: -0.5rem 0 1rem;
|
|
color: #999;
|
|
font-size: 0.85rem;
|
|
text-align: left;
|
|
}
|
|
#help-modal .help-ui-preview .help-preview-surface {
|
|
background-color: #2e2e2e;
|
|
padding: 1.25rem;
|
|
border-radius: 0;
|
|
}
|
|
#help-modal .help-ui-preview .modal-content {
|
|
position: static;
|
|
max-width: none;
|
|
min-width: 0;
|
|
width: 100%;
|
|
margin: 0;
|
|
padding: 1.25rem;
|
|
box-shadow: none;
|
|
border-radius: 0;
|
|
}
|
|
#help-modal .help-ui-preview .modal-head {
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
#help-modal .help-ui-preview .profiles-list {
|
|
max-height: none;
|
|
margin-top: 0.75rem;
|
|
}
|
|
#help-modal .help-ui-preview .modal-actions {
|
|
margin-top: 0.75rem;
|
|
}
|
|
#help-modal .help-ui-preview--header .help-preview-header {
|
|
background-color: #1a1a1a;
|
|
padding: 0.75rem 1rem;
|
|
border-bottom: 2px solid #4a4a4a;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.65rem;
|
|
}
|
|
#help-modal .help-ui-preview--strip .zone-content {
|
|
padding: 0.5rem 0.75rem;
|
|
max-height: 11rem;
|
|
overflow: hidden;
|
|
}
|
|
#help-modal .help-ui-preview .help-preview-presets-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
grid-auto-rows: minmax(5rem, auto);
|
|
column-gap: 0.3rem;
|
|
row-gap: 0.3rem;
|
|
width: 100%;
|
|
}
|
|
#help-modal .help-ui-preview--mobile {
|
|
max-width: 220px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
#help-modal .help-ui-preview--mobile .help-preview-mobile-bar {
|
|
background-color: #1a1a1a;
|
|
padding: 0.75rem;
|
|
border-bottom: 1px solid #4a4a4a;
|
|
}
|
|
#help-modal .help-ui-preview--mobile .main-menu-dropdown {
|
|
display: block;
|
|
position: static;
|
|
border: none;
|
|
border-radius: 0;
|
|
min-width: 0;
|
|
}
|
|
#help-modal .help-ui-preview .preset-colors-container {
|
|
min-height: 5rem;
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
gap: 0.5rem;
|
|
align-items: flex-start;
|
|
padding: 0.5rem;
|
|
background-color: #2a2a2a;
|
|
border-radius: 4px;
|
|
}
|
|
#help-modal .help-ui-preview .help-preview-color-swatch {
|
|
position: relative;
|
|
width: 64px;
|
|
height: 64px;
|
|
border-radius: 8px;
|
|
border: 2px solid #4a4a4a;
|
|
flex-shrink: 0;
|
|
}
|
|
#help-modal .help-ui-preview .help-preview-p-badge {
|
|
position: absolute;
|
|
left: -6px;
|
|
top: -6px;
|
|
min-width: 18px;
|
|
height: 18px;
|
|
border-radius: 9px;
|
|
background: #3f51b5;
|
|
color: #fff;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: 1px solid rgba(255, 255, 255, 0.35);
|
|
}
|
|
#help-modal .help-ui-preview .settings-tabs {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.35rem;
|
|
margin: 0 0 0.75rem;
|
|
border-bottom: 1px solid #4a4a4a;
|
|
padding-bottom: 0.5rem;
|
|
}
|
|
#help-modal .help-ui-preview .settings-tab-btn {
|
|
background: #3a3a3a;
|
|
color: #ccc;
|
|
border: 1px solid #4a4a4a;
|
|
border-radius: 4px 4px 0 0;
|
|
padding: 0.45rem 0.85rem;
|
|
font-size: 0.95rem;
|
|
}
|
|
#help-modal .help-ui-preview .settings-tab-btn.active {
|
|
background: #1a1a1a;
|
|
color: #fff;
|
|
border-color: #6a5acd;
|
|
}
|
|
#help-modal .help-ui-preview .settings-section {
|
|
margin-top: 0;
|
|
}
|
|
#help-modal .help-ui-preview select {
|
|
padding: 0.35rem 0.5rem;
|
|
background-color: #2e2e2e;
|
|
border: 1px solid #4a4a4a;
|
|
border-radius: 4px;
|
|
color: white;
|
|
font-size: 0.9rem;
|
|
}
|
|
#help-modal .help-ui-preview .profiles-actions input[type="text"] {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
#help-modal .modal-content h3 {
|
|
margin-top: 1rem;
|
|
margin-bottom: 0.4rem;
|
|
font-size: 1.05rem;
|
|
font-weight: 600;
|
|
}
|
|
#help-modal .modal-content p {
|
|
text-align: left;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
#help-modal .modal-content ul {
|
|
margin-top: 0.25rem;
|
|
margin-left: 1.25rem;
|
|
padding-left: 0;
|
|
text-align: left;
|
|
}
|
|
#help-modal .modal-content li {
|
|
margin: 0.2rem 0;
|
|
line-height: 1.5;
|
|
}
|
|
#help-modal .muted-text {
|
|
text-align: left;
|
|
color: #bbb;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* Zone content placeholder (no zone selected) */
|
|
.zone-content-placeholder {
|
|
padding: 2rem;
|
|
text-align: center;
|
|
color: #aaa;
|
|
}
|
|
|
|
/* Preset editor: color actions row */
|
|
#preset-editor-modal .preset-colors-container + .profiles-actions {
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
/* Preset editor: brightness/delay field wrappers */
|
|
#preset-editor-modal .preset-editor-field {
|
|
flex: 1;
|
|
min-width: 10rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
#preset-editor-modal .preset-editor-field label {
|
|
align-self: stretch;
|
|
}
|
|
|
|
#preset-editor-modal .preset-editor-field input[type="number"] {
|
|
width: 100%;
|
|
min-width: 5.5rem;
|
|
max-width: 7rem;
|
|
box-sizing: border-box;
|
|
text-align: right;
|
|
}
|
|
|
|
/* Preset editor n-parameter inputs need extra room for values + spinner controls. */
|
|
#preset-editor-modal .n-input {
|
|
width: 6.5ch;
|
|
min-width: 5.5rem;
|
|
}
|
|
|
|
/* Pattern editor: numeric metadata row */
|
|
#pattern-editor-modal input[type="number"] {
|
|
width: var(--n-input-width, 5ch);
|
|
max-width: 100%;
|
|
box-sizing: border-box;
|
|
text-align: right;
|
|
}
|
|
|
|
/* Pattern editor: human-readable n labels (text), full width */
|
|
#pattern-editor-modal .n-params-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
#pattern-editor-modal .n-param-group:has(.pattern-n-readable-input) {
|
|
justify-content: stretch;
|
|
}
|
|
|
|
#pattern-editor-modal .n-param-group:has(.pattern-n-readable-input) label {
|
|
flex: 0 0 auto;
|
|
min-width: 2.25rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
#pattern-editor-modal .pattern-n-readable-input {
|
|
flex: 1 1 auto;
|
|
width: 100%;
|
|
min-width: 0;
|
|
text-align: left;
|
|
}
|
|
|
|
@supports not selector(:has(*)) {
|
|
#pattern-editor-modal #pattern-create-n-section .n-param-group {
|
|
justify-content: stretch;
|
|
}
|
|
}
|
|
|
|
.sequence-step-row.dragging {
|
|
opacity: 0.65;
|
|
}
|
|
|
|
/* Settings modal */
|
|
#settings-modal .modal-content {
|
|
max-width: 900px;
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
#settings-modal.settings-modal--led-tool .modal-content {
|
|
max-width: 960px;
|
|
width: 95vw;
|
|
}
|
|
|
|
#settings-modal .settings-tabs {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.35rem;
|
|
margin: 0.75rem 0 1rem;
|
|
border-bottom: 1px solid #4a4a4a;
|
|
padding-bottom: 0.5rem;
|
|
}
|
|
|
|
#settings-modal .settings-tab-btn {
|
|
background: #3a3a3a;
|
|
color: #ccc;
|
|
border: 1px solid #4a4a4a;
|
|
border-radius: 4px 4px 0 0;
|
|
padding: 0.45rem 0.85rem;
|
|
font-size: 0.95rem;
|
|
cursor: pointer;
|
|
}
|
|
|
|
#settings-modal .settings-tab-btn:hover {
|
|
color: #fff;
|
|
border-color: #6a5acd;
|
|
}
|
|
|
|
#settings-modal .settings-tab-btn.active {
|
|
background: #1a1a1a;
|
|
color: #fff;
|
|
border-color: #6a5acd;
|
|
border-bottom-color: #1a1a1a;
|
|
margin-bottom: -1px;
|
|
}
|
|
|
|
#settings-modal .settings-tab-panel:not(.active) {
|
|
display: none;
|
|
}
|
|
|
|
#settings-modal .settings-led-tool-iframe {
|
|
width: 100%;
|
|
height: min(75vh, 720px);
|
|
border: 1px solid #4a4a4a;
|
|
border-radius: 4px;
|
|
background: #0b1020;
|
|
}
|
|
|
|
#settings-modal .settings-section.ap-settings-section {
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
.settings-ping-results {
|
|
margin-top: 0.75rem;
|
|
min-height: 1.25rem;
|
|
}
|
|
|
|
.settings-ping-list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
font-family: monospace;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.settings-ping-list li {
|
|
padding: 0.35rem 0;
|
|
border-bottom: 1px solid #333;
|
|
}
|
|
|
|
.settings-ping-list li:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.settings-wifi-scan-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0.5rem 0 0;
|
|
}
|
|
|
|
.settings-wifi-scan-list li {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 0.35rem;
|
|
}
|
|
|
|
.settings-subheading {
|
|
margin: 0 0 0.35rem;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.settings-bridge-connection-details {
|
|
list-style: none;
|
|
margin: 0 0 0.75rem;
|
|
padding: 0;
|
|
}
|
|
|
|
.settings-bridge-connection-details li {
|
|
margin: 0.2rem 0;
|
|
}
|
|
|
|
.settings-bridge-profiles {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 1rem 0 0;
|
|
}
|
|
|
|
.settings-bridge-profile-item {
|
|
margin-bottom: 0.65rem;
|
|
padding-bottom: 0.65rem;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
.settings-bridge-profile-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.settings-bridge-profile-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 0.75rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.settings-bridge-groups-panel {
|
|
margin: 0.5rem 0 0 0.25rem;
|
|
padding: 0.5rem 0.75rem;
|
|
background: rgba(0, 0, 0, 0.2);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.settings-bridge-groups-hint {
|
|
margin: 0 0 0.5rem;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.settings-bridge-groups-checkboxes {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.35rem;
|
|
max-height: 14rem;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.settings-bridge-group-check {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 0.45rem;
|
|
font-size: 0.9rem;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.settings-bridge-group-check input:disabled + span {
|
|
opacity: 0.55;
|
|
}
|
|
|
|
.settings-bridge-profile-main {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.65rem;
|
|
flex: 1;
|
|
min-width: 10rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.settings-bridge-profile-label {
|
|
flex: 1 1 auto;
|
|
min-width: 8rem;
|
|
}
|
|
|
|
.settings-bridge-profile-status {
|
|
font-size: 0.85rem;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.settings-bridge-profile-status--connected {
|
|
color: #81c784;
|
|
}
|
|
|
|
.settings-bridge-profile-status--idle {
|
|
color: rgba(255, 255, 255, 0.45);
|
|
}
|
|
|
|
.settings-bridge-profile-actions {
|
|
display: flex;
|
|
gap: 0.4rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.settings-bridge-profile-delete {
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.settings-ping-empty {
|
|
margin: 0;
|
|
font-style: italic;
|
|
}
|
|
|
|
/* Outputs editor (from the v2 UI) */
|
|
.engine-form select {
|
|
width: 100%;
|
|
padding: 0.5rem;
|
|
background-color: #3a3a3a;
|
|
color: white;
|
|
border: 1px solid #4a4a4a;
|
|
border-radius: 4px;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.engine-form label.engine-check {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-weight: normal;
|
|
}
|
|
|
|
.engine-form label.engine-check input {
|
|
width: auto;
|
|
}
|
|
|
|
.engine-field[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
.engine-error {
|
|
margin-top: 0.75rem;
|
|
color: #ff6b6b;
|
|
}
|
|
|
|
/* Modal list search (list_search.js) */
|
|
.list-search-input {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
margin: 0.5rem 0;
|
|
padding: 0.5rem;
|
|
background-color: #3a3a3a;
|
|
border: 1px solid #4a4a4a;
|
|
border-radius: 4px;
|
|
color: white;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.list-search-input:focus {
|
|
outline: none;
|
|
border-color: #6a5acd;
|
|
}
|
|
|
|
.list-search-hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
/* Sequence editor: the timeline inspector's group and driver checkboxes */
|
|
.seq-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
/* Animation tiles: one shot, with progress while playing */
|
|
.animation-tile-row .sequence-tile-main {
|
|
position: relative;
|
|
overflow: hidden;
|
|
border-style: dashed;
|
|
}
|
|
|
|
.animation-tile-progress {
|
|
position: absolute;
|
|
left: 0;
|
|
bottom: 0;
|
|
height: 3px;
|
|
width: calc(var(--anim-progress, 0) * 100%);
|
|
background: #f5c542;
|
|
transition: width 0.2s linear;
|
|
}
|
|
|
|
.animation-tile-row.firing .sequence-tile-main {
|
|
border-color: #f5c542;
|
|
}
|
|
|
|
/* The modal's block labels and full-width inputs don't suit the sequence editor's compact rows */
|
|
#sequence-editor-modal .seq-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.3rem;
|
|
margin: 0;
|
|
font-weight: normal;
|
|
}
|
|
|
|
#sequence-editor-modal .seq-chip input[type="checkbox"] {
|
|
width: auto;
|
|
margin: 0;
|
|
}
|
|
|
|
/* Narrow screens: rows in the preset editor wrap instead of pushing the dialog sideways */
|
|
.profiles-actions {
|
|
flex-wrap: wrap;
|
|
}
|
|
.n-param-group {
|
|
flex-wrap: wrap;
|
|
}
|
|
.n-param-group input {
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
}
|
|
@media (max-width: 1000px) {
|
|
.modal-content {
|
|
min-width: 0;
|
|
max-width: 95vw;
|
|
box-sizing: border-box;
|
|
}
|
|
#preset-editor-modal .preset-editor-field {
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
}
|
|
}
|
|
/* Narrow screens: preset editor fields flow in rows, labels sit above their inputs */
|
|
@media (max-width: 1000px) {
|
|
#preset-editor-modal .profiles-actions {
|
|
flex-wrap: wrap;
|
|
gap: 0.75rem;
|
|
}
|
|
#preset-editor-modal .preset-editor-field {
|
|
flex: 1 1 8.5rem;
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
}
|
|
#preset-editor-modal .preset-editor-field input[type="number"] {
|
|
width: 100%;
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
}
|
|
#preset-editor-modal .n-param-group {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 0.25rem;
|
|
}
|
|
#preset-editor-modal .n-param-group label {
|
|
flex: none;
|
|
white-space: normal;
|
|
}
|
|
#preset-editor-modal .n-param-group .n-input {
|
|
width: 100%;
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
}
|
|
|
|
/* Settings > Network > Bridges: one row per running bridge */
|
|
.bridge-row { margin: 10px 0; }
|
|
.bridge-row .btn-group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
|
|
.bridge-row .btn-group input[type="number"] { width: 6em; }
|
|
|
|
/* ---------------------------------------------------------------------------------------------
|
|
* Sequence timeline (seq_timeline.js): a DAW-style arrangement. Tracks are targets, clips are
|
|
* presets; --ppb is pixels per beat (or second), set on the canvas.
|
|
*/
|
|
#sequence-editor-modal .modal-content {
|
|
max-width: min(1280px, 96vw);
|
|
width: 96vw;
|
|
max-height: 94vh;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.tl {
|
|
--tl-head-w: 11rem;
|
|
--tl-track-h: 3.5rem;
|
|
margin: 0.5rem 0 0.75rem 0;
|
|
border: 1px solid #111;
|
|
border-radius: 6px;
|
|
background: #1c1c1f;
|
|
overflow: hidden;
|
|
user-select: none;
|
|
}
|
|
|
|
.tl[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
.tl-transport {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
padding: 0.45rem 0.6rem;
|
|
background: linear-gradient(#3a3a3f, #2b2b30);
|
|
border-bottom: 1px solid #111;
|
|
}
|
|
|
|
.tl-tgroup {
|
|
display: inline-flex;
|
|
border: 1px solid #111;
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.tl-tbtn,
|
|
.tl-seg button {
|
|
background: #45454c;
|
|
color: #eee;
|
|
border: 0;
|
|
border-right: 1px solid #222;
|
|
min-width: 2.1rem;
|
|
height: 1.9rem;
|
|
padding: 0 0.55rem;
|
|
font-size: 0.9rem;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.tl-tgroup > :last-child {
|
|
border-right: 0;
|
|
}
|
|
|
|
.tl-tbtn:hover,
|
|
.tl-seg button:hover {
|
|
background: #55555d;
|
|
}
|
|
|
|
#tl-play {
|
|
color: #6cdc6c;
|
|
}
|
|
|
|
#tl-stop {
|
|
color: #ddd;
|
|
}
|
|
|
|
.tl-seg button.on {
|
|
background: #f0a13c;
|
|
color: #111;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.tl-lcd {
|
|
display: inline-flex;
|
|
gap: 0.9rem;
|
|
align-items: baseline;
|
|
padding: 0.2rem 0.7rem;
|
|
background: #10161a;
|
|
color: #7fe0c8;
|
|
border: 1px solid #000;
|
|
border-radius: 4px;
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
font-size: 0.95rem;
|
|
min-width: 9.5rem;
|
|
}
|
|
|
|
#tl-pos {
|
|
font-size: 1.1rem;
|
|
min-width: 3.5rem;
|
|
}
|
|
|
|
#sequence-editor-modal .tl-tfield {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
margin: 0;
|
|
font-weight: normal;
|
|
font-size: 0.85rem;
|
|
color: #ccc;
|
|
}
|
|
|
|
.tl-tfield select {
|
|
height: 1.9rem;
|
|
background: #45454c;
|
|
color: #eee;
|
|
border: 1px solid #111;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.tl-spacer {
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
.tl-notice {
|
|
padding: 0.4rem 0.7rem;
|
|
background: #4a3b12;
|
|
color: #f5dc9a;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.tl-main {
|
|
display: flex;
|
|
align-items: stretch;
|
|
min-height: 14rem;
|
|
}
|
|
|
|
.tl-arrange {
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.tl-scroll {
|
|
flex: 1 1 auto;
|
|
overflow: auto;
|
|
max-height: 55vh;
|
|
background: #202024;
|
|
}
|
|
|
|
.tl-canvas {
|
|
position: relative;
|
|
width: max-content;
|
|
min-width: 100%;
|
|
}
|
|
|
|
.tl-row {
|
|
display: flex;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.tl-head {
|
|
position: sticky;
|
|
left: 0;
|
|
z-index: 3;
|
|
flex: 0 0 var(--tl-head-w);
|
|
width: var(--tl-head-w);
|
|
box-sizing: border-box;
|
|
padding: 0.35rem 1.9rem 0.35rem 0.75rem;
|
|
background: #2d2d33;
|
|
border-right: 1px solid #111;
|
|
border-bottom: 1px solid #18181b;
|
|
border-left: 5px solid var(--track-color, #666);
|
|
cursor: pointer;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.tl-track .tl-head:hover {
|
|
background: #36363d;
|
|
}
|
|
|
|
.tl-head.sel {
|
|
background: #3d3d48;
|
|
}
|
|
|
|
.tl-head-name {
|
|
font-weight: 600;
|
|
font-size: 0.88rem;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.tl-head-sum {
|
|
font-size: 0.72rem;
|
|
color: #9a9aa3;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
margin-top: 0.15rem;
|
|
}
|
|
|
|
.tl-head-btn {
|
|
position: absolute;
|
|
top: 0.35rem;
|
|
right: 0.35rem;
|
|
width: 1.3rem;
|
|
height: 1.3rem;
|
|
padding: 0;
|
|
border: 1px solid #111;
|
|
border-radius: 3px;
|
|
background: #45454c;
|
|
color: #f0a13c;
|
|
font-size: 0.7rem;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.tl-ruler-row {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 4;
|
|
}
|
|
|
|
.tl-corner {
|
|
z-index: 5;
|
|
height: 1.7rem;
|
|
padding: 0.3rem 0.75rem;
|
|
border-left-color: #2d2d33;
|
|
background: #26262b;
|
|
color: #888;
|
|
font-size: 0.72rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
cursor: default;
|
|
}
|
|
|
|
.tl-ruler {
|
|
position: relative;
|
|
flex: 0 0 auto;
|
|
height: 1.7rem;
|
|
background: #2a2a2f;
|
|
border-bottom: 1px solid #111;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.tl-tick {
|
|
position: absolute;
|
|
bottom: 0;
|
|
height: 30%;
|
|
border-left: 1px solid #555;
|
|
padding-left: 3px;
|
|
font-size: 0.65rem;
|
|
color: #888;
|
|
line-height: 1;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.tl-tick.major {
|
|
height: 100%;
|
|
border-left-color: #777;
|
|
color: #ddd;
|
|
font-size: 0.72rem;
|
|
padding-top: 0.15rem;
|
|
}
|
|
|
|
.tl-loop {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
height: 0.45rem;
|
|
background: rgba(240, 161, 60, 0.55);
|
|
border-right: 2px solid #f0a13c;
|
|
z-index: 2;
|
|
}
|
|
|
|
.tl-loop-end {
|
|
position: absolute;
|
|
right: -0.55rem;
|
|
top: 0;
|
|
width: 1.1rem;
|
|
height: 1.7rem;
|
|
cursor: ew-resize;
|
|
touch-action: none;
|
|
}
|
|
|
|
.tl-loop-end::after {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0.25rem;
|
|
top: 0;
|
|
border-left: 0.3rem solid transparent;
|
|
border-right: 0.3rem solid transparent;
|
|
border-top: 0.55rem solid #f0a13c;
|
|
}
|
|
|
|
.tl-endline {
|
|
position: absolute;
|
|
top: 1.7rem;
|
|
bottom: 0;
|
|
border-left: 2px dashed rgba(240, 161, 60, 0.6);
|
|
pointer-events: none;
|
|
z-index: 2;
|
|
}
|
|
|
|
.tl-lane {
|
|
position: relative;
|
|
flex: 0 0 auto;
|
|
height: var(--tl-track-h);
|
|
border-bottom: 1px solid #18181b;
|
|
background-color: #242428;
|
|
background-image:
|
|
linear-gradient(to right, rgba(255, 255, 255, 0.13) 1px, transparent 1px),
|
|
linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
|
|
linear-gradient(to right, rgba(255, 255, 255, 0.025) 50%, transparent 50%);
|
|
background-size:
|
|
calc(var(--ppb) * 4px) 100%,
|
|
calc(var(--ppb) * 1px) 100%,
|
|
calc(var(--ppb) * 8px) 100%;
|
|
}
|
|
|
|
.tl-track:nth-child(odd) .tl-lane {
|
|
background-color: #27272c;
|
|
}
|
|
|
|
.tl-clip {
|
|
--clip-fill: #6a5acd;
|
|
position: absolute;
|
|
top: 3px;
|
|
bottom: 3px;
|
|
box-sizing: border-box;
|
|
min-width: 6px;
|
|
border-radius: 4px;
|
|
border: 1px solid rgba(0, 0, 0, 0.6);
|
|
background: var(--clip-fill);
|
|
box-shadow: inset 0 1.15rem 0 rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
|
|
cursor: grab;
|
|
overflow: hidden;
|
|
touch-action: none;
|
|
z-index: 1;
|
|
}
|
|
|
|
.tl-clip.anim {
|
|
--clip-fill: repeating-linear-gradient(135deg, #8a6d1a 0 8px, #6e5714 8px 16px);
|
|
border-color: #f5c542;
|
|
}
|
|
|
|
.tl-clip:hover {
|
|
filter: brightness(1.12);
|
|
}
|
|
|
|
.tl-clip.sel {
|
|
outline: 2px solid #fff;
|
|
outline-offset: -1px;
|
|
z-index: 2;
|
|
}
|
|
|
|
.tl-clip.playing {
|
|
filter: brightness(1.35) saturate(1.2);
|
|
}
|
|
|
|
.tl-clip.dragging {
|
|
opacity: 0.35;
|
|
}
|
|
|
|
.tl-clip-name {
|
|
display: block;
|
|
padding: 0.1rem 0.4rem;
|
|
font-size: 0.72rem;
|
|
font-weight: 600;
|
|
color: #fff;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
pointer-events: none;
|
|
text-shadow: 0 1px 1px #000;
|
|
}
|
|
|
|
.tl-clip-edge {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 7px;
|
|
cursor: ew-resize;
|
|
}
|
|
|
|
.tl-clip-edge.l {
|
|
left: 0;
|
|
}
|
|
|
|
.tl-clip-edge.r {
|
|
right: 0;
|
|
}
|
|
|
|
.tl-clip-edge:hover {
|
|
background: rgba(255, 255, 255, 0.25);
|
|
}
|
|
|
|
.tl-ghost {
|
|
position: absolute;
|
|
top: 3px;
|
|
bottom: 3px;
|
|
border-radius: 4px;
|
|
border: 2px dashed #7fe0c8;
|
|
background: rgba(127, 224, 200, 0.15);
|
|
pointer-events: none;
|
|
z-index: 3;
|
|
}
|
|
|
|
.tl-ghost.bad {
|
|
border-color: #e8645a;
|
|
background: rgba(232, 100, 90, 0.15);
|
|
}
|
|
|
|
.tl-playhead {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 0;
|
|
border-left: 2px solid #ff5a4f;
|
|
pointer-events: none;
|
|
z-index: 6;
|
|
}
|
|
|
|
.tl-playhead::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: -7px;
|
|
top: 0;
|
|
border-left: 6px solid transparent;
|
|
border-right: 6px solid transparent;
|
|
border-top: 8px solid #ff5a4f;
|
|
}
|
|
|
|
.tl-playhead[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
.tl-empty {
|
|
padding: 1.25rem;
|
|
}
|
|
|
|
.tl-addtrack {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
align-items: center;
|
|
padding: 0.45rem 0.6rem;
|
|
background: #26262b;
|
|
border-top: 1px solid #111;
|
|
}
|
|
|
|
#sequence-editor-modal .tl-addtrack select {
|
|
width: auto;
|
|
margin: 0;
|
|
}
|
|
|
|
.tl-browser {
|
|
flex: 0 0 13rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.35rem;
|
|
padding: 0.5rem;
|
|
background: #26262b;
|
|
border-left: 1px solid #111;
|
|
min-width: 0;
|
|
}
|
|
|
|
.tl-browser-head {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 0.72rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
color: #999;
|
|
}
|
|
|
|
.tl-browser-head .tl-tbtn {
|
|
height: 1.5rem;
|
|
min-width: 1.6rem;
|
|
border: 1px solid #111;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
#sequence-editor-modal .tl-browser input[type='search'] {
|
|
width: 100%;
|
|
margin: 0;
|
|
padding: 0.3rem 0.45rem;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.tl-browser-list {
|
|
flex: 1 1 auto;
|
|
overflow-y: auto;
|
|
max-height: 50vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 3px;
|
|
}
|
|
|
|
.tl-browser-sec {
|
|
margin-top: 0.35rem;
|
|
font-size: 0.7rem;
|
|
color: #888;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.tl-chip {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.45rem;
|
|
padding: 0.3rem 0.4rem;
|
|
background: #34343a;
|
|
border: 1px solid #1a1a1d;
|
|
border-radius: 4px;
|
|
font-size: 0.82rem;
|
|
cursor: grab;
|
|
touch-action: pan-y;
|
|
}
|
|
|
|
.tl-chip:hover {
|
|
background: #3e3e45;
|
|
}
|
|
|
|
.tl-chip.on {
|
|
border-color: #f0a13c;
|
|
box-shadow: inset 3px 0 0 #f0a13c;
|
|
}
|
|
|
|
.tl-chip-sw {
|
|
flex: 0 0 1.6rem;
|
|
height: 1rem;
|
|
border-radius: 2px;
|
|
background: #777;
|
|
border: 1px solid rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
.tl-chip.anim .tl-chip-sw {
|
|
background: repeating-linear-gradient(135deg, #8a6d1a 0 4px, #6e5714 4px 8px);
|
|
border-color: #f5c542;
|
|
}
|
|
|
|
.tl-chip-name {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.tl-float {
|
|
position: fixed;
|
|
z-index: 2000;
|
|
pointer-events: none;
|
|
opacity: 0.9;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
.tl-inspector {
|
|
padding: 0.55rem 0.7rem;
|
|
background: #2a2a2f;
|
|
border-top: 1px solid #111;
|
|
min-height: 3rem;
|
|
text-align: left;
|
|
}
|
|
|
|
.tl-insp-title {
|
|
font-size: 0.72rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
color: #999;
|
|
margin-bottom: 0.3rem;
|
|
}
|
|
|
|
.tl-insp-row,
|
|
.tl-insp-btns,
|
|
.tl-insp-pick {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.6rem;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.tl-insp-btns {
|
|
margin-top: 0.5rem;
|
|
gap: 0.4rem;
|
|
}
|
|
|
|
.tl-insp-pick {
|
|
gap: 0.35rem 0.6rem;
|
|
align-items: center;
|
|
margin-top: 0.4rem;
|
|
}
|
|
|
|
.tl-insp-sub {
|
|
flex-basis: 100%;
|
|
text-align: left;
|
|
}
|
|
|
|
#sequence-editor-modal .tl-insp-field {
|
|
display: inline-flex;
|
|
flex-direction: column;
|
|
gap: 0.2rem;
|
|
margin: 0;
|
|
font-weight: normal;
|
|
font-size: 0.78rem;
|
|
color: #aaa;
|
|
}
|
|
|
|
#sequence-editor-modal .tl-insp-field input,
|
|
#sequence-editor-modal .tl-insp-field select {
|
|
margin: 0;
|
|
}
|
|
|
|
.tl-shake {
|
|
animation: tl-shake 0.3s;
|
|
}
|
|
|
|
@keyframes tl-shake {
|
|
25% { transform: translateX(-4px); }
|
|
75% { transform: translateX(4px); }
|
|
}
|
|
|
|
/* Phones: the browser sits above the tracks as a sideways strip */
|
|
@media (max-width: 700px) {
|
|
.tl {
|
|
--tl-head-w: 6.5rem;
|
|
}
|
|
.tl-main {
|
|
flex-direction: column-reverse;
|
|
}
|
|
.tl-browser {
|
|
flex: 0 0 auto;
|
|
border-left: 0;
|
|
border-bottom: 1px solid #111;
|
|
}
|
|
.tl-browser-list {
|
|
flex-direction: row;
|
|
overflow-x: auto;
|
|
overflow-y: hidden;
|
|
max-height: none;
|
|
padding-bottom: 2px;
|
|
}
|
|
.tl-browser-sec {
|
|
display: none;
|
|
}
|
|
.tl-chip {
|
|
flex: 0 0 auto;
|
|
touch-action: pan-x;
|
|
}
|
|
.tl-lcd {
|
|
min-width: 0;
|
|
}
|
|
#sequence-editor-modal .modal-content {
|
|
padding: 1rem 0.6rem;
|
|
}
|
|
}
|
|
|
|
/* Phones: the sequence editor fills the screen. Its header buttons share a row, the timeline keeps
|
|
* its bars wide (narrow track names), the inspector fields take the full width, and touch targets
|
|
* get bigger when the pointer is a finger. */
|
|
@media (max-width: 700px) {
|
|
#sequence-editor-modal {
|
|
padding: 0;
|
|
}
|
|
#sequence-editor-modal .modal-content {
|
|
width: 100vw;
|
|
max-width: 100vw;
|
|
height: 100dvh;
|
|
max-height: 100dvh;
|
|
border-radius: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
#sequence-editor-modal .modal-head {
|
|
margin-bottom: 0.5rem;
|
|
align-items: center;
|
|
}
|
|
#sequence-editor-modal .modal-head h2 {
|
|
font-size: 1.25rem;
|
|
}
|
|
#sequence-editor-modal .modal-top-actions {
|
|
flex: 1 1 100%;
|
|
display: flex;
|
|
gap: 0.4rem;
|
|
}
|
|
#sequence-editor-modal .modal-top-actions .btn {
|
|
flex: 1 1 0;
|
|
min-width: 0;
|
|
padding: 0.5rem 0.3rem;
|
|
white-space: nowrap;
|
|
}
|
|
#sequence-editor-modal #sequence-editor-name {
|
|
width: 100% !important;
|
|
max-width: 100% !important;
|
|
box-sizing: border-box;
|
|
}
|
|
#sequence-editor-modal .tl {
|
|
--tl-head-w: 5.25rem;
|
|
margin: 0.4rem 0;
|
|
}
|
|
#sequence-editor-modal .tl-transport {
|
|
gap: 0.4rem;
|
|
}
|
|
#sequence-editor-modal .tl-scroll {
|
|
max-height: none;
|
|
min-height: 8rem;
|
|
}
|
|
#sequence-editor-modal .tl-head {
|
|
padding: 0.3rem 0.9rem 0.3rem 0.5rem;
|
|
}
|
|
#sequence-editor-modal .tl-head-name {
|
|
font-size: 0.8rem;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
#sequence-editor-modal .tl-addtrack {
|
|
flex-wrap: wrap;
|
|
gap: 0.4rem;
|
|
}
|
|
#sequence-editor-modal .tl-addtrack select {
|
|
flex: 1 1 10rem;
|
|
min-width: 0;
|
|
}
|
|
#sequence-editor-modal .tl-inspector {
|
|
padding: 0.5rem;
|
|
}
|
|
#sequence-editor-modal .tl-inspector .muted-text {
|
|
font-size: 0.78rem;
|
|
}
|
|
#sequence-editor-modal .tl-insp-row > * {
|
|
flex: 1 1 100%;
|
|
min-width: 0;
|
|
}
|
|
#sequence-editor-modal .tl-insp-field input,
|
|
#sequence-editor-modal .tl-insp-field select {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
#sequence-editor-modal .tl-insp-btns .btn {
|
|
flex: 1 1 auto;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 700px) and (pointer: coarse) {
|
|
#sequence-editor-modal .tl {
|
|
--tl-track-h: 4.25rem;
|
|
}
|
|
#sequence-editor-modal .tl-clip-edge {
|
|
width: 18px;
|
|
}
|
|
#sequence-editor-modal .tl-tbtn,
|
|
#sequence-editor-modal .tl-head-btn {
|
|
min-width: 2.6rem;
|
|
min-height: 2.6rem;
|
|
}
|
|
#sequence-editor-modal .tl-chip {
|
|
padding: 0.6rem;
|
|
}
|
|
}
|
|
|
|
/* ---- Simulator beside the UI (sim_split.js, host builds): the controller left, the rig right ---- */
|
|
body.sim-split .app-container {
|
|
width: calc(100% - var(--sim-pane-w, 45%));
|
|
}
|
|
|
|
/* Dialogs stay over the controller's side, so the rig stays in view while editing devices */
|
|
body.sim-split .modal {
|
|
width: calc(100% - var(--sim-pane-w, 45%));
|
|
}
|
|
|
|
/* The controller's column is narrower than the window: the compact header, everything in the Menu */
|
|
body.sim-split .header-actions {
|
|
display: none;
|
|
}
|
|
|
|
body.sim-split .header-menu-mobile {
|
|
display: block;
|
|
margin-left: auto;
|
|
}
|
|
|
|
body.sim-split #main-menu-dropdown > :not(.edit-mode-only):not(.ui-mode-toggle) {
|
|
display: revert;
|
|
}
|
|
|
|
body.sim-split #main-menu-dropdown > .menu-brightness-control,
|
|
body.sim-split #main-menu-dropdown > .nav-slide-toggle-wrap {
|
|
display: block;
|
|
}
|
|
|
|
.sim-pane {
|
|
position: fixed;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
width: var(--sim-pane-w, 45%);
|
|
display: flex;
|
|
z-index: 900; /* under the controller's dialogs and menus */
|
|
background-color: #0e0f12;
|
|
}
|
|
|
|
.sim-pane-divider {
|
|
flex: none;
|
|
width: 6px;
|
|
cursor: col-resize;
|
|
background-color: #4a4a4a;
|
|
touch-action: none;
|
|
}
|
|
|
|
.sim-pane-divider:hover,
|
|
.sim-pane-divider:focus-visible,
|
|
body.sim-split-dragging .sim-pane-divider {
|
|
background-color: #5aa9ff;
|
|
outline: none;
|
|
}
|
|
|
|
.sim-pane-body {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.sim-pane-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.35rem 0.5rem;
|
|
background-color: #1a1a1a;
|
|
border-bottom: 2px solid #4a4a4a;
|
|
}
|
|
|
|
.sim-pane-title {
|
|
flex: 1;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.sim-pane-frame {
|
|
flex: 1;
|
|
width: 100%;
|
|
border: 0;
|
|
background-color: #0e0f12;
|
|
}
|
|
|
|
body.sim-split-dragging .sim-pane-frame {
|
|
pointer-events: none; /* the iframe would swallow the drag */
|
|
}
|
|
|
|
body.sim-split-dragging {
|
|
cursor: col-resize;
|
|
user-select: none;
|
|
}
|
|
|
|
/* The zone's presets fit the controller's column (8 fixed columns are sized for the whole window) */
|
|
body.sim-split #presets-list-zone {
|
|
grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
|
|
}
|
|
|
|
/* ---- Simulator on a phone (sim_split.js): two full-width pages, swipe or tap the pager to switch ---- */
|
|
body.sim-swipe .app-container,
|
|
body.sim-swipe .sim-pane {
|
|
transition: transform 0.25s ease;
|
|
will-change: transform;
|
|
}
|
|
|
|
body.sim-swipe .app-container {
|
|
transform: translateX(calc(var(--sim-page, 0) * -100vw + var(--sim-drag, 0px)));
|
|
}
|
|
|
|
body.sim-swipe .sim-pane {
|
|
left: 0;
|
|
right: auto;
|
|
width: 100vw;
|
|
transform: translateX(calc((1 - var(--sim-page, 0)) * 100vw + var(--sim-drag, 0px)));
|
|
}
|
|
|
|
body.sim-swipe .sim-pane-divider {
|
|
display: none;
|
|
}
|
|
|
|
/* While a finger drags the pages, they follow it without easing */
|
|
body.sim-swipe-dragging .app-container,
|
|
body.sim-swipe-dragging .sim-pane {
|
|
transition: none;
|
|
}
|
|
|
|
.sim-pager {
|
|
display: none;
|
|
}
|
|
|
|
body.sim-swipe .sim-pager {
|
|
display: flex;
|
|
position: fixed;
|
|
left: 50%;
|
|
bottom: calc(env(safe-area-inset-bottom, 0px) + 0.6rem);
|
|
transform: translateX(-50%);
|
|
z-index: 950;
|
|
padding: 0.2rem;
|
|
gap: 0.2rem;
|
|
background-color: rgba(26, 26, 26, 0.92);
|
|
border: 1px solid #4a4a4a;
|
|
border-radius: 999px;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
.sim-pager button {
|
|
border: 0;
|
|
border-radius: 999px;
|
|
padding: 0.35rem 0.85rem;
|
|
font-size: 0.8rem;
|
|
color: #b9c0cc;
|
|
background: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.sim-pager button[aria-pressed="true"] {
|
|
color: white;
|
|
background-color: #5aa9ff33;
|
|
box-shadow: inset 0 0 0 1px #5aa9ff;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
body.sim-swipe .app-container,
|
|
body.sim-swipe .sim-pane {
|
|
transition: none;
|
|
}
|
|
}
|