mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 00:32:21 +00:00
Move Visual to the left rail and let panels sit at the screen edge
The left rail holds Data Layers, Utilities, Authoring and Visual; the right rail holds Context, CCTV and Street Level. A button in each panel header moves that side's panels to the screen edge, with the rail as a row above them, and scrolling at a screen edge steps through a rail's panels. An open right panel starts just under the HUD readouts, and Context and CCTV take the column's full height. The right rail stays level with the left column's top whichever left panel is open, in both layouts. Co-authored-by: Sameh Khamis <[email protected]>
This commit is contained in:
1 parent
f0a8b1193a
commit
7ee047961b
16 files changed
+999
-12
No files matched your search
@@ -0,0 +1,50 @@
|
||||
/* ── Map attribution ───────────────────────────────────────────────────
|
||||
The required Cesium / imagery credits sit in a small glass pill. On wide
|
||||
screens it drops to the bottom-left corner, clear of the HUD's coordinate
|
||||
readout and left of the command dock; narrower screens keep the raised
|
||||
position the dock rules give it. Attribution must stay visible. */
|
||||
body:not(.ui-clean-view):not(.recording-mode) #cesium-credits,
|
||||
body.ui-clean-view #cesium-credits,
|
||||
body.recording-mode #cesium-credits {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
height: auto !important;
|
||||
padding: 0.3rem 0.75rem 0.3rem 0.45rem;
|
||||
background: var(--glass-bg);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: 999px;
|
||||
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
|
||||
backdrop-filter: blur(20px) saturate(1.3);
|
||||
-webkit-backdrop-filter: blur(20px) saturate(1.3);
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
#cesium-credits .cesium-widget-credits {
|
||||
position: static !important;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
width: auto !important;
|
||||
height: auto !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
#cesium-credits img {
|
||||
height: 18px;
|
||||
vertical-align: middle !important;
|
||||
}
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
body:not(.ui-clean-view):not(.recording-mode) #cesium-credits,
|
||||
body:not(.ui-clean-view):not(.recording-mode):has(
|
||||
#intel-hud[data-variant='minimal'].active
|
||||
)
|
||||
#cesium-credits {
|
||||
right: auto;
|
||||
bottom: 1.1rem;
|
||||
left: 1.5rem;
|
||||
/* Never reach under the centred command dock (about 30rem wide). */
|
||||
max-width: calc(50vw - 17rem);
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,167 @@
|
||||
/* On desktop and tablet the omnibox finds places and Visual (left rail)
|
||||
holds the presets, so the command dock keeps only voice. Phones keep the
|
||||
trays in their sheets. */
|
||||
body:not(.mobile-shell) #command-dock > #control-panel,
|
||||
body:not(.mobile-shell) #command-dock > #location-bar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* ── Visual: presets and map source at the top of the panel ─────────── */
|
||||
.visual-presets {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
padding: 2px 0 12px;
|
||||
margin-bottom: 10px;
|
||||
border-bottom: 1px solid var(--glass-border);
|
||||
}
|
||||
|
||||
.visual-presets__heading {
|
||||
margin: 4px 0 0;
|
||||
color: var(--text-secondary);
|
||||
font: 600 10px/1.2 var(--font-mono);
|
||||
letter-spacing: 0.14em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.visual-presets__heading--row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.visual-presets__status {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.visual-presets__status.warn {
|
||||
color: #ff9f43;
|
||||
}
|
||||
|
||||
.visual-presets__grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.visual-presets__style {
|
||||
position: relative;
|
||||
display: grid;
|
||||
justify-items: center;
|
||||
gap: 4px;
|
||||
padding: 9px 4px 7px;
|
||||
color: var(--text-secondary);
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: var(--btn-radius);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.visual-presets__style:hover {
|
||||
color: var(--text-primary);
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
}
|
||||
|
||||
.visual-presets__style.active {
|
||||
color: var(--accent);
|
||||
background: var(--accent-dim);
|
||||
border-color: var(--accent-dim);
|
||||
}
|
||||
|
||||
.visual-presets__icon {
|
||||
font-size: 15px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.visual-presets__label {
|
||||
font: 500 11px/1 var(--font-sans);
|
||||
}
|
||||
|
||||
.visual-presets__key {
|
||||
color: var(--text-secondary);
|
||||
font: 9px/1 var(--font-mono);
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.visual-presets__key {
|
||||
position: absolute;
|
||||
top: 4px;
|
||||
right: 5px;
|
||||
}
|
||||
|
||||
.visual-presets__chips {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.visual-presets__chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
padding: 5px 9px;
|
||||
color: var(--text-secondary);
|
||||
font: 500 11px/1.2 var(--font-sans);
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: 999px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.visual-presets__chip small {
|
||||
font-size: 9px;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.visual-presets__chip:hover {
|
||||
color: var(--text-primary);
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
}
|
||||
|
||||
.visual-presets__chip.active {
|
||||
color: var(--accent);
|
||||
background: var(--accent-dim);
|
||||
border-color: var(--accent-dim);
|
||||
}
|
||||
|
||||
.visual-presets__chip.unavailable {
|
||||
opacity: 0.45;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/* 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);
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
/* ── 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(.context-docked) #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 #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 {
|
||||
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 .gev-panel-rail--left:has(.ui-rail--collapsible:not(.ui-rail--expanded)),
|
||||
body.panels-edge-right:not(.context-docked) .gev-panel-rail--right:has(.ui-rail--collapsible:not(.ui-rail--expanded)) {
|
||||
top: 0 !important;
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
body.panels-edge-left .gev-panel-rail--left .ui-rail--collapsible:not(.ui-rail--expanded),
|
||||
body.panels-edge-right:not(.context-docked) .gev-panel-rail--right .ui-rail--collapsible:not(.ui-rail--expanded) {
|
||||
flex-direction: row;
|
||||
width: max-content;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
/* The open panel's icon joins the row instead of floating above it. */
|
||||
body.panels-edge-left .gev-panel-rail--left .ui-rail--collapsible:not(.ui-rail--expanded) .ui-tooltip {
|
||||
position: static !important;
|
||||
padding: 0 !important;
|
||||
border: 0 !important;
|
||||
background: none !important;
|
||||
backdrop-filter: none !important;
|
||||
-webkit-backdrop-filter: none !important;
|
||||
}
|
||||
|
||||
body.panels-edge-left #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(.context-docked) #right-context-rail > :not(.gev-panel-rail) {
|
||||
transform: translate(var(--panel-rail-clearance, 48px), var(--edge-rail-row));
|
||||
max-height: calc(100% - var(--edge-rail-row)) !important;
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
/* ── 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));
|
||||
transition:
|
||||
transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
|
||||
width 380ms cubic-bezier(0.22, 1, 0.36, 1),
|
||||
height 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;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,192 @@
|
||||
/* Experiment: with a left panel open, its rail icon leaves the rail and sits
|
||||
level with the panel's title, as the panel's own tab. The other icons stay
|
||||
in the rail underneath it and close the gap. With nothing open the rail keeps its
|
||||
labelled pills. */
|
||||
.gev-panel-rail--left:has(.ui-rail--collapsible:not(.ui-rail--expanded) .ui-rail__item--on) {
|
||||
/* The lifted chip (42px) centres on the panel title (26px into the
|
||||
stack); the rail starts 6px below the chip. */
|
||||
top: 53px;
|
||||
}
|
||||
|
||||
.gev-panel-rail--left .ui-rail--collapsible:not(.ui-rail--expanded) {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.gev-panel-rail--left
|
||||
.ui-rail--collapsible:not(.ui-rail--expanded)
|
||||
.ui-tooltip:has(> .ui-rail__item--on) {
|
||||
position: absolute;
|
||||
bottom: calc(100% + 6px);
|
||||
left: -1px;
|
||||
padding: 4px;
|
||||
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);
|
||||
}
|
||||
|
||||
.gev-panel-rail--left
|
||||
.ui-rail--collapsible:not(.ui-rail--expanded)
|
||||
.ui-tooltip:has(> .ui-rail__item--on)
|
||||
.ui-rail__item {
|
||||
width: 32px;
|
||||
}
|
||||
|
||||
/* 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's highlight sits on the button itself, so it shows wherever
|
||||
the button is (the lifted chip, the edge row). */
|
||||
:is(.gev-panel-rail--left, .gev-panel-rail--right) .ui-rail__item.ui-rail__item--on {
|
||||
color: #00d4ff !important;
|
||||
background: rgba(0, 212, 255, 0.15) !important;
|
||||
border-color: rgba(0, 212, 255, 0.15) !important;
|
||||
}
|
||||
|
||||
:is(.gev-panel-rail--left, .gev-panel-rail--right) .ui-rail.ui-rail--glide::before {
|
||||
display: none !important;
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
/* ── Shell spacing on wide screens ─────────────────────────────────────
|
||||
With the map credits in the bottom-left corner pill, the tactical HUD's
|
||||
corner readouts no longer need to stand clear of them, so they close the
|
||||
empty bands: the top readouts sit just under the title block and the
|
||||
bottom readouts just above the credits and the key chip. The side panels
|
||||
lay themselves out around the HUD, so they gain the space. The first-run
|
||||
card spans the same band. */
|
||||
@media (min-width: 1200px) {
|
||||
#intel-hud[data-variant='tactical'] .hud-top-left,
|
||||
#intel-hud[data-variant='tactical'] .hud-top-right {
|
||||
top: 102px;
|
||||
}
|
||||
|
||||
#intel-hud[data-variant='tactical'] .hud-bottom-left,
|
||||
#intel-hud[data-variant='tactical'] .hud-bottom-right {
|
||||
bottom: 4.2rem;
|
||||
}
|
||||
|
||||
#first-run-launcher {
|
||||
top: 102px;
|
||||
max-height: calc(100vh - 102px - 4.2rem);
|
||||
max-height: calc(100dvh - 102px - 4.2rem);
|
||||
}
|
||||
}
|
||||
|
||||
/* The active style already shows top right ("ACTIVE STYLE · NORMAL"), so the
|
||||
HUD's own style line is a duplicate wherever that indicator is shown. Phones
|
||||
hide the indicator (responsive.css), so they keep the HUD line. */
|
||||
@media (min-width: 721px) {
|
||||
body:not(.mobile-shell) #intel-hud #hud-mode {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user