Refactor universe sim and observer HUD

This commit is contained in:
2026-03-12 00:53:52 -04:00
parent 5979a74d46
commit fbdf8d0d5a
11 changed files with 1832 additions and 622 deletions

View File

@@ -72,30 +72,28 @@ canvas {
margin: 0;
}
.summary {
top: 24px;
left: 24px;
width: min(380px, calc(100vw - 48px));
padding: 18px 20px;
}
.summary h1 {
font-size: 1rem;
letter-spacing: 0.22em;
text-transform: uppercase;
}
.summary p {
margin-top: 10px;
color: var(--muted);
line-height: 1.5;
.session-actions {
display: flex;
gap: 10px;
}
.details {
left: 24px;
right: 24px;
top: 24px;
width: min(320px, calc(100vw - 48px));
padding: 18px 20px;
bottom: 24px;
min-height: 138px;
padding: 16px 18px;
display: flex;
flex-direction: column;
gap: 12px;
pointer-events: auto;
}
.selection-meta {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 16px;
}
.details h2 {
@@ -105,85 +103,79 @@ canvas {
color: var(--accent);
}
.selection-strip {
display: flex;
gap: 10px;
overflow-x: auto;
overflow-y: hidden;
padding-bottom: 4px;
align-items: stretch;
}
.selection-strip-card {
flex: 0 0 auto;
border: 1px solid rgba(126, 212, 255, 0.18);
border-radius: 14px;
min-width: 180px;
padding: 10px 12px;
color: var(--text);
background: linear-gradient(180deg, rgba(13, 30, 56, 0.7), rgba(8, 17, 33, 0.82));
display: flex;
flex-direction: column;
gap: 4px;
}
.selection-strip-card-title {
font-size: 0.84rem;
font-weight: 600;
letter-spacing: 0.04em;
color: var(--text);
}
.selection-strip-card-line {
font-size: 0.76rem;
line-height: 1.35;
color: var(--muted);
white-space: nowrap;
}
.selection-strip-empty {
color: var(--muted);
font-size: 0.84rem;
padding: 8px 2px;
}
.details .content {
margin-top: 12px;
color: var(--muted);
line-height: 1.55;
white-space: pre-line;
}
.commandbar {
left: 24px;
right: 24px;
bottom: 24px;
min-height: 180px;
display: grid;
grid-template-columns: minmax(240px, 300px) 1fr minmax(220px, 260px);
gap: 16px;
padding: 16px;
align-items: stretch;
pointer-events: auto;
}
.selection-panel,
.orders-panel,
.minimap-panel {
border: 1px solid rgba(126, 212, 255, 0.14);
border-radius: 14px;
background:
linear-gradient(180deg, rgba(7, 15, 29, 0.82), rgba(4, 10, 20, 0.72)),
repeating-linear-gradient(
90deg,
rgba(126, 212, 255, 0.025) 0,
rgba(126, 212, 255, 0.025) 1px,
transparent 1px,
transparent 16px
);
padding: 14px 16px;
max-height: 132px;
overflow: auto;
}
.selection-title,
.orders-panel .mode {
.selection-meta .mode {
margin: 0;
font-size: 0.86rem;
text-transform: uppercase;
letter-spacing: 0.14em;
}
.selection-panel .compact {
margin-top: 10px;
color: var(--muted);
line-height: 1.45;
white-space: pre-line;
}
.orders-panel {
display: flex;
flex-direction: column;
gap: 14px;
}
.window-launchers,
.fleet-actions {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 10px;
}
.orders-panel .mode {
.selection-meta .mode {
color: var(--warning);
text-shadow: 0 0 18px rgba(255, 191, 105, 0.24);
}
.orders {
display: grid;
grid-template-columns: repeat(6, minmax(0, 1fr));
gap: 10px;
}
.window-launchers button,
.orders button,
.fleet-actions button,
.session-actions button,
.window-close {
border: 1px solid rgba(126, 212, 255, 0.16);
border-radius: 12px;
@@ -198,35 +190,20 @@ canvas {
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.orders button:hover,
.window-launchers button:hover,
.fleet-actions button:hover,
.session-actions button:hover,
.window-close:hover {
border-color: rgba(126, 212, 255, 0.4);
transform: translateY(-1px);
}
.orders[data-mode="none"] button:not([data-action="focus"]) {
opacity: 0.45;
}
button:disabled {
opacity: 0.35;
cursor: default;
transform: none;
}
.orders-panel .hint {
color: var(--muted);
line-height: 1.45;
}
.minimap-panel {
display: flex;
align-items: center;
justify-content: center;
}
.minimap {
width: 100%;
height: auto;
@@ -235,6 +212,10 @@ button:disabled {
background: rgba(2, 6, 13, 0.92);
}
.minimap-hidden {
display: none;
}
.app-window {
position: absolute;
top: 104px;
@@ -472,32 +453,16 @@ button:disabled {
}
@media (max-width: 900px) {
.summary,
.details,
.commandbar {
.details {
width: auto;
left: 16px;
right: 16px;
}
.summary,
.details {
width: auto;
}
.details {
top: auto;
bottom: 92px;
}
.commandbar {
grid-template-columns: 1fr;
bottom: 16px;
}
.orders {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.window-launchers,
.fleet-actions {
grid-template-columns: repeat(2, minmax(0, 1fr));