Simplify simulation and restore ship browser

This commit is contained in:
2026-03-12 11:13:37 -04:00
parent 44311a8585
commit 9db53f1b48
10 changed files with 219 additions and 1089 deletions

View File

@@ -161,8 +161,7 @@ canvas {
letter-spacing: 0.14em;
}
.window-launchers,
.fleet-actions {
.window-launchers {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 10px;
@@ -174,7 +173,6 @@ canvas {
}
.window-launchers button,
.fleet-actions button,
.session-actions button,
.window-close {
border: 1px solid rgba(126, 212, 255, 0.16);
@@ -191,7 +189,6 @@ canvas {
}
.window-launchers button:hover,
.fleet-actions button:hover,
.session-actions button:hover,
.window-close:hover {
border-color: rgba(126, 212, 255, 0.4);
@@ -272,10 +269,6 @@ button:disabled {
cursor: pointer;
}
.fleet-actions {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.window-body {
overflow: auto;
display: flex;
@@ -285,6 +278,59 @@ button:disabled {
min-height: 0;
}
.ship-window-row {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 12px;
padding: 8px 10px;
border-bottom: 1px solid rgba(126, 212, 255, 0.1);
color: var(--muted);
cursor: pointer;
}
.ship-window-row:hover {
color: var(--text);
}
.ship-window-row[data-selected="true"] {
color: #ffbf69;
}
.ship-window-name {
color: inherit;
font-weight: 600;
line-height: 1.35;
}
.ship-window-meta {
color: inherit;
line-height: 1.35;
text-align: right;
font-size: 0.92em;
}
.ship-window-group + .ship-window-group {
margin-top: 10px;
}
.ship-window-group-title {
margin: 0 0 6px;
color: var(--text);
font-size: 0.8rem;
letter-spacing: 0.12em;
text-transform: uppercase;
cursor: pointer;
}
.ship-window-group-title:hover {
color: #ffbf69;
}
.ship-window-empty {
color: var(--muted);
}
.window-resize-handle {
position: absolute;
right: 10px;
@@ -317,141 +363,6 @@ button:disabled {
height: 6px;
}
.fleet-card {
border: 1px solid rgba(126, 212, 255, 0.14);
border-radius: 14px;
padding: 14px;
background:
linear-gradient(180deg, rgba(8, 18, 35, 0.84), rgba(5, 11, 22, 0.8)),
repeating-linear-gradient(
90deg,
rgba(126, 212, 255, 0.02) 0,
rgba(126, 212, 255, 0.02) 1px,
transparent 1px,
transparent 14px
);
}
.fleet-card[data-active="true"] {
border-color: rgba(255, 191, 105, 0.44);
box-shadow: inset 0 0 0 1px rgba(255, 191, 105, 0.16);
}
.fleet-select {
width: 100%;
margin-bottom: 10px;
}
.fleet-card-title,
.fleet-card-line,
.fleet-wing-line {
display: block;
color: var(--muted);
line-height: 1.45;
}
.fleet-card-title {
color: var(--text);
font-weight: 600;
margin-bottom: 4px;
}
.fleet-wing-line {
color: #bdd9ea;
}
.fleet-tree,
.fleet-tree-children {
display: flex;
flex-direction: column;
gap: 10px;
}
.fleet-tree-root,
.fleet-node-card {
position: relative;
border: 1px solid rgba(126, 212, 255, 0.14);
border-radius: 12px;
padding: 10px 12px;
background: linear-gradient(180deg, rgba(9, 20, 38, 0.88), rgba(5, 12, 24, 0.84));
cursor: pointer;
}
.fleet-tree-root::before,
.fleet-node-card::before {
content: "";
position: absolute;
left: -1px;
top: -1px;
bottom: -1px;
width: 3px;
border-radius: 12px 0 0 12px;
background: rgba(126, 212, 255, 0.48);
}
.fleet-tree-node {
position: relative;
margin-left: 18px;
padding-left: 18px;
}
.fleet-tree-node::before {
content: "";
position: absolute;
left: 0;
top: 0;
bottom: 18px;
width: 1px;
background: rgba(126, 212, 255, 0.18);
}
.fleet-tree-node::after {
content: "";
position: absolute;
left: 0;
top: 18px;
width: 14px;
height: 1px;
background: rgba(126, 212, 255, 0.18);
}
.ship-node .fleet-node-card::before {
background: rgba(255, 191, 105, 0.44);
}
.fleet-node-title,
.fleet-node-meta {
display: block;
}
.fleet-node-title {
color: var(--text);
font-weight: 600;
line-height: 1.35;
}
.fleet-node-meta {
color: var(--muted);
line-height: 1.4;
margin-top: 2px;
}
.fleet-tree-root:hover,
.fleet-node-card:hover {
border-color: rgba(126, 212, 255, 0.32);
}
.fleet-tree-root[data-selected="true"],
.fleet-node-card[data-selected="true"] {
border-color: rgba(255, 191, 105, 0.46);
box-shadow: inset 0 0 0 1px rgba(255, 191, 105, 0.16);
}
.fleet-tree-root[data-selected="true"]::before,
.fleet-node-card[data-selected="true"]::before {
background: rgba(255, 191, 105, 0.72);
}
@media (max-width: 900px) {
.details {
width: auto;
@@ -463,8 +374,7 @@ button:disabled {
bottom: 16px;
}
.window-launchers,
.fleet-actions {
.window-launchers {
grid-template-columns: repeat(2, minmax(0, 1fr));
}