Refine viewer ship rail layout

This commit is contained in:
2026-03-13 15:29:06 -04:00
parent bf744ec43e
commit 0ec47888eb
3 changed files with 83 additions and 36 deletions

View File

@@ -326,31 +326,34 @@ canvas {
.ship-strip {
position: absolute;
left: 20px;
bottom: 20px;
width: min(920px, calc(100vw - 440px));
min-height: 140px;
border-radius: 24px;
padding: 16px;
left: 0;
right: 0;
bottom: 0;
width: 100vw;
min-height: 128px;
border-radius: 0;
padding: 0;
display: flex;
align-items: stretch;
gap: 12px;
gap: 0;
overflow-x: auto;
overflow-y: hidden;
pointer-events: auto;
scrollbar-width: thin;
background: linear-gradient(180deg, rgba(5, 10, 18, 0), rgba(5, 10, 18, 0.92) 28%);
}
.ship-card {
border-radius: 18px;
border: 1px solid rgba(127, 214, 255, 0.14);
background: linear-gradient(180deg, rgba(11, 23, 43, 0.85), rgba(7, 15, 28, 0.9));
padding: 14px;
min-width: 220px;
max-width: 220px;
border-radius: 0;
border-top: 1px solid rgba(127, 214, 255, 0.14);
border-right: 1px solid rgba(127, 214, 255, 0.1);
background: linear-gradient(180deg, rgba(10, 20, 36, 0.96), rgba(6, 12, 22, 0.98));
padding: 10px 12px 12px;
min-width: 208px;
max-width: 208px;
display: flex;
flex-direction: column;
gap: 8px;
gap: 6px;
color: var(--text);
cursor: pointer;
transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
@@ -363,7 +366,7 @@ canvas {
}
.ship-card.is-selected {
border-color: rgba(255, 191, 105, 0.82);
border-top-color: rgba(255, 191, 105, 0.82);
background: linear-gradient(180deg, rgba(31, 33, 20, 0.9), rgba(20, 18, 10, 0.92));
}
@@ -378,28 +381,66 @@ canvas {
gap: 10px;
}
.ship-card h3 {
font-size: 0.82rem;
line-height: 1.15;
letter-spacing: 0.04em;
}
.ship-card-meta {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 6px;
}
.ship-card-badge {
padding: 4px 8px;
padding: 3px 8px;
border-radius: 999px;
background: rgba(127, 214, 255, 0.12);
color: var(--accent);
font-size: 0.68rem;
font-size: 0.64rem;
letter-spacing: 0.12em;
text-transform: uppercase;
}
.ship-card p {
margin: 6px 0 0;
margin: 2px 0 0;
color: var(--muted);
line-height: 1.45;
line-height: 1.35;
font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
font-size: 0.77rem;
font-size: 0.72rem;
}
.ship-card-header + p {
font-size: 0.62rem;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.ship-card-ai {
margin-top: 2px;
padding-top: 6px;
border-top: 1px solid rgba(127, 214, 255, 0.08);
}
.ship-card-section-title {
margin: 0;
color: var(--accent);
letter-spacing: 0.14em;
text-transform: uppercase;
}
.ship-card-history-button {
margin-top: auto;
padding: 8px 12px;
align-self: flex-start;
width: 24px;
height: 24px;
padding: 0;
display: inline-flex;
align-items: center;
justify-content: center;
align-self: flex-end;
font-size: 0.78rem;
line-height: 1;
}
.swatch {
@@ -411,8 +452,7 @@ canvas {
@media (max-width: 1080px) {
.ship-strip {
right: 20px;
width: auto;
width: 100vw;
}
}
@@ -452,11 +492,11 @@ canvas {
}
.ship-strip {
left: 20px;
right: 20px;
bottom: 20px;
width: auto;
min-height: 126px;
left: 0;
right: 0;
bottom: 0;
width: 100vw;
min-height: 120px;
}
.history-window {