Merge main (d49d3d10) into the renderer branch

This commit is contained in:
Sameh Khamis committed 2026-11-14 17:21:53 -08:00
commit 489c316556
134 files changed
+4980 -229

No files matched your search

+37
View File
@@ -0,0 +1,37 @@
/* Visual in the left column: it takes clicks (the column itself lets them
through to the globe) and stays inside the column, scrolling as a whole. */
#left-panel-stack > #pp-toggles {
position: relative;
inset: auto;
flex: 0 1 var(--left-panel-allocated-height, auto);
min-height: 0;
max-height: var(--left-panel-allocated-height, 100%);
overflow-y: auto;
pointer-events: auto;
}
#left-panel-stack > #pp-toggles.collapsed {
display: none;
}
/* ── Expanded panel width ───────────────────────────────────────────────
Data Layers opens 15px wider than it used to (280 → 295px), and that is
the narrowest any side panel opens to; wider ones (Context, CCTV,
Authoring) keep their own width. */
:root {
--side-panel-min-expanded-width: 295px;
}
#data-panel,
#utilities-panel {
--panel-expanded-width: var(--side-panel-min-expanded-width);
}
#left-panel-stack > #pp-toggles:not(.collapsed) {
--pp-expanded-width: var(--side-panel-min-expanded-width);
width: var(--side-panel-min-expanded-width);
}
:is(#left-panel-stack, #right-context-rail) > [data-panel-id]:not(.collapsed) {
min-width: var(--side-panel-min-expanded-width);
}
+4 -2
View File
@@ -129,7 +129,9 @@ body.mobile-shell #right-context-rail {
body.mobile-shell[data-mobile-sheet='layers'] #left-panel-stack,
body.mobile-shell[data-mobile-sheet='cameras'] #right-context-rail,
body.mobile-shell[data-mobile-sheet='context'] #right-context-rail,
body.mobile-shell[data-mobile-sheet='more'] #right-context-rail {
/* Visual opens from the left rail on wider screens, so it lives in the left
stack and the More sheet is that stack showing Visual alone. */
body.mobile-shell[data-mobile-sheet='more'] #left-panel-stack {
position: fixed;
top: auto;
right: 0;
@@ -189,7 +191,7 @@ body.mobile-shell[data-mobile-sheet='context']
body.mobile-shell[data-mobile-sheet='context']
#right-context-rail
> #recent-imagery-panel:not([hidden]),
body.mobile-shell[data-mobile-sheet='more'] #right-context-rail > #pp-toggles {
body.mobile-shell[data-mobile-sheet='more'] #left-panel-stack > #pp-toggles {
position: relative;
inset: auto;
display: block;
+3 -1
View File
@@ -310,8 +310,10 @@
bottom: 12vh;
}
/* Minimal keeps its coordinates in the corner block, where the other layouts
have them; the full-width strip would only repeat the same position. */
#intel-hud[data-variant='minimal'] .hud-bottom-bar {
display: flex;
display: none;
bottom: calc(12vh + 4rem);
}
+100
View File
@@ -0,0 +1,100 @@
/* ── Panels over the rail ───────────────────────────────────────────────
Each panel header's edge switch (UiPanelEdge) slides that side's open
panels over their rail to the screen edge; the rail stays underneath. */
.ui-panel-edge {
display: grid;
flex: none;
place-items: center;
width: 22px;
height: 22px;
padding: 0;
color: rgba(206, 232, 239, 0.6);
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 6px;
cursor: pointer;
}
.ui-panel-edge .material-symbols-outlined {
font-size: 14px;
}
.ui-panel-edge:hover,
.ui-panel-edge:focus-visible {
color: var(--text-primary, #e8eaed);
border-color: rgba(255, 255, 255, 0.24);
}
.ui-panel-edge[aria-pressed='true'] {
color: #36dcff;
background: rgba(54, 220, 255, 0.12);
border-color: rgba(54, 220, 255, 0.45);
}
/* Collapsed panels hide the switch; it only means something once open. */
.panel-collapsible.collapsed .ui-panel-edge {
display: none;
}
/* Right: open panels move right by the rail's width and sit over it. */
body.panels-edge-right:not(.mobile-shell):not(.cockpit-mode)
#right-context-rail
> :not(.gev-panel-rail) {
z-index: 2;
transform: translateX(var(--panel-rail-clearance, 48px));
}
/* Left: the same, moving left. */
body.panels-edge-left:not(.mobile-shell):not(.cockpit-mode)
#left-panel-stack
> :not(.gev-panel-rail) {
z-index: 2;
transform: translateX(calc(-1 * var(--panel-rail-clearance, 48px)));
}
body.mobile-shell .ui-panel-edge,
body.cockpit-mode .ui-panel-edge {
display: none;
}
/* ── Edge mode with a panel open: the rail's icons move to a row along the
top of the panel, and the panel steps down to make room. ── */
:root {
--edge-rail-row: 50px;
}
body.panels-edge-left:not(.mobile-shell):not(.cockpit-mode)
.gev-panel-rail--left:has(.ui-rail--collapsible:not(.ui-rail--expanded)),
body.panels-edge-right:not(.mobile-shell):not(.cockpit-mode)
.gev-panel-rail--right:has(.ui-rail--collapsible:not(.ui-rail--expanded)) {
top: 0 !important;
z-index: 3;
}
body.panels-edge-left:not(.mobile-shell):not(.cockpit-mode)
.gev-panel-rail--left
.ui-rail--collapsible:not(.ui-rail--expanded),
body.panels-edge-right:not(.mobile-shell):not(.cockpit-mode)
.gev-panel-rail--right
.ui-rail--collapsible:not(.ui-rail--expanded) {
flex-direction: row;
width: max-content;
gap: 4px;
}
body.panels-edge-left:not(.mobile-shell):not(.cockpit-mode)
#left-panel-stack
> :not(.gev-panel-rail):not(.collapsed) {
transform: translate(
calc(-1 * var(--panel-rail-clearance, 48px)),
var(--edge-rail-row)
);
max-height: calc(100% - var(--edge-rail-row)) !important;
}
body.panels-edge-right:not(.mobile-shell):not(.cockpit-mode)
#right-context-rail
> :not(.gev-panel-rail):not(.collapsed) {
transform: translate(var(--panel-rail-clearance, 48px), var(--edge-rail-row));
max-height: calc(100% - var(--edge-rail-row)) !important;
}
+103
View File
@@ -0,0 +1,103 @@
/* ── Side rails: sliding highlight and edge scrolling ──────────────────
The open item's highlight is drawn once per rail, under the icons, and
slides from item to item when the panel changes. With the pointer in a
screen edge's strip, the rail's border lights up a little to say the wheel
now steps through its panels; the panel that opens slides in from the
direction of travel. */
.ui-rail {
position: relative;
transition:
border-color 240ms ease,
border-radius var(--transition-fast);
}
.ui-rail.ui-rail--edge-hot {
border-color: rgba(48, 194, 224, 0.4);
}
/* The highlight itself, matching an open item's own look. */
.ui-rail::before {
position: absolute;
top: 0;
left: 0;
z-index: 0;
width: var(--rail-glide-w, 32px);
height: var(--rail-glide-h, 32px);
background: var(--accent-dim);
border: 1px solid var(--accent-dim);
border-radius: var(--btn-radius);
box-sizing: border-box;
content: '';
opacity: 0;
pointer-events: none;
transform: translate(var(--rail-glide-x, 0), var(--rail-glide-y, 0));
/* Only the position slides. The size follows at once: it changes only
when the rail changes shape (its labelled pills folding to icons as a
panel opens), and a size easing there reads as a stretch. */
transition:
transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
border-radius var(--transition-fast),
opacity 200ms ease;
}
.ui-rail--expanded::before {
border-radius: 16px;
}
.ui-rail.ui-rail--glide::before {
opacity: 1;
}
.ui-rail.ui-rail--glide-jump::before {
transition: opacity 200ms ease;
}
/* While the shared highlight shows, the items stay clear and sit above it;
the open item keeps its accent colour, which eases in as it arrives. */
.ui-rail--glide .ui-rail__item {
z-index: 1;
transition:
color 300ms ease,
background var(--transition-fast),
border-color var(--transition-fast),
border-radius var(--transition-fast);
}
.ui-rail--glide .ui-rail__item--on,
.ui-rail--glide .ui-rail__item--on:hover:not(:disabled) {
background: transparent;
border-color: transparent;
}
.rail-switch-down {
animation: rail-switch-down 340ms cubic-bezier(0.22, 1, 0.36, 1);
}
.rail-switch-up {
animation: rail-switch-up 340ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes rail-switch-down {
from {
opacity: 0;
translate: 0 16px;
}
}
@keyframes rail-switch-up {
from {
opacity: 0;
translate: 0 -16px;
}
}
@media (prefers-reduced-motion: reduce) {
.ui-rail::before {
transition: opacity 200ms ease;
}
.rail-switch-down,
.rail-switch-up {
animation: none;
}
}
+282
View File
@@ -0,0 +1,282 @@
/* The left rail's icons keep their places whether or not a panel is open;
only the highlight moves to the open one. */
/* With nothing open, the icons and their names split into two glass panels
side by side: the plain icon rail, and a name panel beside it with one row
per icon. A name is part of its button, so clicking it opens that panel. */
.gev-panel-rail--left .ui-rail--expanded {
position: relative;
border-radius: calc(var(--btn-radius) + 4px);
}
.gev-panel-rail--left .ui-rail--expanded .ui-rail__item {
width: 32px;
border-radius: var(--btn-radius);
}
.gev-panel-rail--left .ui-rail--expanded::after {
content: '';
position: absolute;
top: -1px;
bottom: -1px;
left: calc(100% + 6px);
width: 170px;
border: 1px solid var(--glass-border);
border-radius: calc(var(--btn-radius) + 4px);
background: var(--glass-bg);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
pointer-events: none;
}
.gev-panel-rail--left .ui-rail--expanded .ui-rail__label {
position: absolute;
z-index: 1;
top: 0;
bottom: 0;
/* Past the rail's padding and border, the 6px gap, and the name panel's
border and inner padding. */
left: calc(100% + 24px);
display: flex;
align-items: center;
max-width: 150px;
margin: 0;
}
.gev-panel-rail--left .ui-rail--expanded .ui-rail__item:hover .ui-rail__label {
color: var(--text-primary);
}
/* The column rises to sit just under the HUD readout instead of leaving a
gap above it, with or without a panel open, so opening one doesn't move
the rail down. */
#left-panel-stack {
top: calc(
var(--left-stack-safe-top, var(--left-stack-top)) +
var(--panel-rail-lift, 0px)
);
}
/* The right rail splits the same way with nothing open, mirrored: the icon
rail stays on the screen edge and the name panel sits to its left. */
.gev-panel-rail--right .ui-rail--expanded {
position: relative;
border-radius: calc(var(--btn-radius) + 4px);
}
.gev-panel-rail--right .ui-rail--expanded .ui-rail__item {
width: 32px;
border-radius: var(--btn-radius);
}
.gev-panel-rail--right .ui-rail--expanded::after {
content: '';
position: absolute;
top: -1px;
bottom: -1px;
right: calc(100% + 6px);
width: 170px;
border: 1px solid var(--glass-border);
border-radius: calc(var(--btn-radius) + 4px);
background: var(--glass-bg);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
pointer-events: none;
}
.gev-panel-rail--right .ui-rail--expanded .ui-rail__label {
position: absolute;
z-index: 1;
top: 0;
bottom: 0;
/* From the button's left edge back past the rail's padding and border,
the 6px gap and the 170px name panel, to the panel's inner padding. */
left: -168px;
display: flex;
align-items: center;
max-width: 150px;
margin: 0;
}
.gev-panel-rail--right .ui-rail--expanded .ui-rail__item:hover .ui-rail__label {
color: var(--text-primary);
}
/* In clean view the screen-edge gutters stay empty: the HUD's vertical edge
readouts (ONA / COLL on the left, BAND / BITS / LVL on the right) are not
shown. Cyber lays its HUD out differently and keeps them. */
:root:not([data-ui-theme='cyber']) body.ui-clean-view #intel-hud .hud-edge {
display: none !important;
}
/* The bottom-right readout (GSD / ALT / AIS) has one more line than the
bottom-left one (MGRS / coordinates); it drops by that line so the two
corners start level. */
#intel-hud[data-variant='tactical'] .hud-bottom-right {
bottom: calc(2vh + 6.5rem - 26px);
}
@media (min-width: 1200px) {
#intel-hud[data-variant='tactical'] .hud-bottom-right {
bottom: calc(4.2rem - 26px);
}
}
/* ── Contrast: rails and name panels read clearly over dark space as well
as bright imagery. ── */
:is(.gev-panel-rail--left, .gev-panel-rail--right) .ui-rail {
background: rgba(16, 20, 28, 0.82) !important;
border-color: rgba(255, 255, 255, 0.14) !important;
box-shadow:
0 6px 20px rgba(0, 0, 0, 0.45),
inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
:is(.gev-panel-rail--left, .gev-panel-rail--right) .ui-rail--expanded::after {
background: rgba(16, 20, 28, 0.82) !important;
border-color: rgba(255, 255, 255, 0.14) !important;
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}
:is(.gev-panel-rail--left, .gev-panel-rail--right) .ui-rail__item {
color: rgba(225, 236, 242, 0.88);
}
:is(.gev-panel-rail--left, .gev-panel-rail--right) .ui-rail__label {
color: rgba(225, 236, 242, 0.82) !important;
}
:is(.gev-panel-rail--left, .gev-panel-rail--right) .ui-rail__item:hover {
color: #fff;
}
/* The open item takes the accent colour; its highlight is the rail's shared
one, which slides to it. The button carries no fill of its own: as a rail
folds its labelled pills to icons, a fill on the shrinking button would
read as the highlight stretching. */
:is(.gev-panel-rail--left, .gev-panel-rail--right)
.ui-rail__item.ui-rail__item--on {
color: #00d4ff !important;
}
:is(.gev-panel-rail--left, .gev-panel-rail--right)
.ui-rail:not(.ui-rail--glide)
.ui-rail__item.ui-rail__item--on {
background: none;
border-color: transparent;
}
:is(.gev-panel-rail--left, .gev-panel-rail--right) .ui-rail::before {
background: rgba(0, 212, 255, 0.15);
border-color: rgba(0, 212, 255, 0.28);
}
/* ── The open icon is its own island ──
With a panel open, the rail's glass is drawn in pieces behind its icons:
one piece for the open icon, and one for each run of icons above and below
it. The icons keep their places, open or not; the spacing between them is
what leaves room for the break. */
:is(.gev-panel-rail--left, .gev-panel-rail--right) .ui-rail {
gap: 12px;
}
:is(
body:not(.panels-edge-left) .gev-panel-rail--left,
body:not(.panels-edge-right) .gev-panel-rail--right
)
.ui-rail--collapsible:not(.ui-rail--expanded):has(.ui-rail__item--on) {
background: none !important;
border-color: transparent !important;
box-shadow: none !important;
backdrop-filter: none;
-webkit-backdrop-filter: none;
}
:is(
body:not(.panels-edge-left) .gev-panel-rail--left,
body:not(.panels-edge-right) .gev-panel-rail--right
)
.ui-rail--collapsible:not(.ui-rail--expanded):has(.ui-rail__item--on)
> .ui-tooltip::before {
position: absolute;
inset: -6px -5px;
z-index: -1;
background: rgba(16, 20, 28, 0.82);
border: solid rgba(255, 255, 255, 0.14);
border-width: 0 1px;
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
content: '';
pointer-events: none;
}
/* The ends of the rail. */
:is(
body:not(.panels-edge-left) .gev-panel-rail--left,
body:not(.panels-edge-right) .gev-panel-rail--right
)
.ui-rail--collapsible:not(.ui-rail--expanded):has(.ui-rail__item--on)
> .ui-tooltip:first-child::before {
top: -5px;
border-top-width: 1px;
border-top-left-radius: 14px;
border-top-right-radius: 14px;
}
:is(
body:not(.panels-edge-left) .gev-panel-rail--left,
body:not(.panels-edge-right) .gev-panel-rail--right
)
.ui-rail--collapsible:not(.ui-rail--expanded):has(.ui-rail__item--on)
> .ui-tooltip:last-child::before {
bottom: -5px;
border-bottom-width: 1px;
border-bottom-left-radius: 14px;
border-bottom-right-radius: 14px;
}
/* The runs stop short of the open icon. */
:is(
body:not(.panels-edge-left) .gev-panel-rail--left,
body:not(.panels-edge-right) .gev-panel-rail--right
)
.ui-rail--collapsible:not(.ui-rail--expanded):has(.ui-rail__item--on)
> .ui-tooltip:has(+ .ui-tooltip > .ui-rail__item--on)::before {
bottom: -1px;
border-bottom-width: 1px;
border-bottom-left-radius: 14px;
border-bottom-right-radius: 14px;
}
:is(
body:not(.panels-edge-left) .gev-panel-rail--left,
body:not(.panels-edge-right) .gev-panel-rail--right
)
.ui-rail--collapsible:not(.ui-rail--expanded):has(.ui-rail__item--on)
> .ui-tooltip:has(> .ui-rail__item--on)
+ .ui-tooltip::before {
top: -1px;
border-top-width: 1px;
border-top-left-radius: 14px;
border-top-right-radius: 14px;
}
/* The open icon's own piece. */
:is(
body:not(.panels-edge-left) .gev-panel-rail--left,
body:not(.panels-edge-right) .gev-panel-rail--right
)
.ui-rail--collapsible:not(.ui-rail--expanded):has(.ui-rail__item--on)
> .ui-tooltip:has(> .ui-rail__item--on)::before {
inset: -4px -5px;
border-width: 1px;
border-radius: 14px;
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}
/* The side rails fold their labels away at once when a panel opens, and back
when it closes: easing the labels' width made every button visibly
stretch and shrink. Only their fade eases. */
:is(.gev-panel-rail--left, .gev-panel-rail--right) .ui-rail__label {
transition: opacity var(--transition-fast);
}
+44
View File
@@ -242,3 +242,47 @@ html[dir='rtl'] select.gev-field--compact {
html[dir='rtl'] .rail-card-scale {
direction: ltr;
}
/* ── Side rails, mirrored ──────────────────────────────────────────────
The left stack sits on the right edge, so the left rail's name panel
opens to its left and the right rail's to its right, each toward the
middle of the screen, as they do in left-to-right. */
html[dir='rtl'] .gev-panel-rail--left .ui-rail--expanded::after {
right: calc(100% + 6px);
left: auto;
}
html[dir='rtl'] .gev-panel-rail--left .ui-rail--expanded .ui-rail__label {
right: calc(100% + 24px);
left: auto;
}
html[dir='rtl'] .gev-panel-rail--right .ui-rail--expanded::after {
right: auto;
left: calc(100% + 6px);
}
html[dir='rtl'] .gev-panel-rail--right .ui-rail--expanded .ui-rail__label {
right: auto;
left: calc(100% + 24px);
}
/* Panels moved to the screen edge slide over their rail toward that edge. */
html[dir='rtl']
body.panels-edge-left:not(.mobile-shell):not(.cockpit-mode)
#left-panel-stack
> :not(.gev-panel-rail) {
transform: translateX(var(--panel-rail-clearance, 48px));
}
html[dir='rtl']
body.panels-edge-left:not(.mobile-shell):not(.cockpit-mode)
#left-panel-stack
> :not(.gev-panel-rail):not(.collapsed) {
transform: translate(var(--panel-rail-clearance, 48px), var(--edge-rail-row));
}
html[dir='rtl']
body.panels-edge-right:not(.mobile-shell):not(.cockpit-mode)
#right-context-rail
> :not(.gev-panel-rail) {
transform: translate(
calc(-1 * var(--panel-rail-clearance, 48px)),
var(--edge-rail-row)
);
}