feat(ui): one-line header with every action in the Menu
Zone tabs, the BPM readout and the Menu share one line at every width. The header buttons and the Beat/Downbeat switch move into the Menu (the narrow-screen layout, now everywhere), and the brightness slider sits at the bottom of the Menu, under its items. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b2cd242390
commit
011883a6a8
2 files changed
+49
-56
No files matched your search
+45
-52
@@ -68,12 +68,13 @@ body {
|
|||||||
height: 100vh;
|
height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* One header line: zone tabs, then BPM and the Menu; every action is in the Menu */
|
||||||
header {
|
header {
|
||||||
background-color: #1a1a1a;
|
background-color: #1a1a1a;
|
||||||
padding: 0.75rem 1rem;
|
padding: 0.75rem 1rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: row;
|
||||||
align-items: stretch;
|
align-items: center;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
border-bottom: 2px solid #4a4a4a;
|
border-bottom: 2px solid #4a4a4a;
|
||||||
gap: 0.65rem;
|
gap: 0.65rem;
|
||||||
@@ -84,23 +85,24 @@ header h1 {
|
|||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Top header row: BPM, brightness, desktop buttons, mobile menu (above zone tabs) */
|
/* After the zone tabs: BPM and the Menu */
|
||||||
.header-end {
|
.header-end {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
flex-wrap: wrap;
|
flex-wrap: nowrap;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
margin-left: 0;
|
margin-left: auto;
|
||||||
width: 100%;
|
flex: 0 0 auto;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
|
order: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-actions {
|
/* The row of header buttons stays in the page for the Menu to forward clicks to, but is not shown;
|
||||||
display: flex;
|
the Beat/Downbeat switch is in the Menu too */
|
||||||
gap: 0.5rem;
|
.header-actions,
|
||||||
flex-wrap: wrap;
|
#seq-switch-toggle-wrap {
|
||||||
justify-content: flex-end;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.zones-menu-mobile {
|
.zones-menu-mobile {
|
||||||
@@ -166,7 +168,7 @@ header h1 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.header-menu-mobile {
|
.header-menu-mobile {
|
||||||
display: none;
|
display: flex;
|
||||||
position: relative;
|
position: relative;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
@@ -175,6 +177,7 @@ header h1 {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 100%;
|
top: 100%;
|
||||||
right: 0;
|
right: 0;
|
||||||
|
max-width: min(16rem, calc(100vw - 1rem));
|
||||||
background-color: #1a1a1a;
|
background-color: #1a1a1a;
|
||||||
border: 1px solid #4a4a4a;
|
border: 1px solid #4a4a4a;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
@@ -204,8 +207,9 @@ header h1 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.menu-brightness-control {
|
.menu-brightness-control {
|
||||||
padding: 0.45rem 0.75rem 0.55rem;
|
padding: 0.55rem 0.75rem 0.45rem;
|
||||||
border-bottom: 1px solid #333;
|
border-top: 1px solid #333;
|
||||||
|
margin-top: 0.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-brightness-control label {
|
.menu-brightness-control label {
|
||||||
@@ -219,6 +223,29 @@ header h1 {
|
|||||||
width: 100%;
|
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 {
|
.header-brightness-control {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -460,12 +487,11 @@ body.preset-ui-run .edit-mode-only {
|
|||||||
.zones-container {
|
.zones-container {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
flex: 0 0 auto;
|
flex: 1 1 auto;
|
||||||
width: 100%;
|
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
align-self: stretch;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
order: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.zones-list {
|
.zones-list {
|
||||||
@@ -1588,8 +1614,6 @@ html.simulated-bpm-mode .seq-switch-toggle-wrap {
|
|||||||
/* Mobile-friendly layout */
|
/* Mobile-friendly layout */
|
||||||
@media (max-width: 1000px) {
|
@media (max-width: 1000px) {
|
||||||
header {
|
header {
|
||||||
flex-direction: column;
|
|
||||||
align-items: stretch;
|
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1597,41 +1621,10 @@ html.simulated-bpm-mode .seq-switch-toggle-wrap {
|
|||||||
font-size: 1.1rem;
|
font-size: 1.1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* On mobile, hide header buttons; all actions (including Zones) are in the Menu dropdown */
|
|
||||||
.header-actions {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Beat/downbeat toggle lives in the mobile menu only */
|
|
||||||
#seq-switch-toggle-wrap {
|
|
||||||
display: none !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.main-menu-dropdown {
|
.main-menu-dropdown {
|
||||||
max-width: min(16rem, calc(100vw - 1rem));
|
max-width: min(16rem, calc(100vw - 1rem));
|
||||||
}
|
}
|
||||||
|
|
||||||
#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%);
|
|
||||||
}
|
|
||||||
|
|
||||||
.zones-menu-mobile {
|
.zones-menu-mobile {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -1653,8 +1646,8 @@ html.simulated-bpm-mode .seq-switch-toggle-wrap {
|
|||||||
|
|
||||||
.header-end {
|
.header-end {
|
||||||
gap: 0.35rem;
|
gap: 0.35rem;
|
||||||
flex-shrink: 0;
|
flex: 1 1 auto;
|
||||||
flex-wrap: nowrap;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-end .audio-top-indicator {
|
.header-end .audio-top-indicator {
|
||||||
|
|||||||
@@ -59,10 +59,6 @@
|
|||||||
<span class="nav-slide-toggle-side-label nav-slide-toggle-side-label--downbeat">Downbeat</span>
|
<span class="nav-slide-toggle-side-label nav-slide-toggle-side-label--downbeat">Downbeat</span>
|
||||||
</div>
|
</div>
|
||||||
<button type="button" class="ui-mode-toggle" id="ui-mode-toggle-mobile" aria-pressed="false">Edit mode</button>
|
<button type="button" class="ui-mode-toggle" id="ui-mode-toggle-mobile" aria-pressed="false">Edit mode</button>
|
||||||
<div class="menu-brightness-control">
|
|
||||||
<label for="menu-brightness-slider">Brightness</label>
|
|
||||||
<input type="range" id="menu-brightness-slider" min="0" max="255" value="255">
|
|
||||||
</div>
|
|
||||||
<button type="button" data-target="profiles-btn">Profiles</button>
|
<button type="button" data-target="profiles-btn">Profiles</button>
|
||||||
<button type="button" class="edit-mode-only" data-target="devices-btn">Devices</button>
|
<button type="button" class="edit-mode-only" data-target="devices-btn">Devices</button>
|
||||||
<button type="button" class="edit-mode-only" data-target="groups-btn">Groups</button>
|
<button type="button" class="edit-mode-only" data-target="groups-btn">Groups</button>
|
||||||
@@ -75,6 +71,10 @@
|
|||||||
<button type="button" data-target="audio-btn">Audio</button>
|
<button type="button" data-target="audio-btn">Audio</button>
|
||||||
<button type="button" class="edit-mode-only" data-target="settings-btn">Settings</button>
|
<button type="button" class="edit-mode-only" data-target="settings-btn">Settings</button>
|
||||||
<button type="button" data-target="help-btn">Help</button>
|
<button type="button" data-target="help-btn">Help</button>
|
||||||
|
<div class="menu-brightness-control">
|
||||||
|
<label for="menu-brightness-slider">Brightness</label>
|
||||||
|
<input type="range" id="menu-brightness-slider" min="0" max="255" value="255">
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user