feat: adds fleet, windows, building
This commit is contained in:
273
src/style.css
273
src/style.css
@@ -163,6 +163,13 @@ canvas {
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.window-launchers,
|
||||
.fleet-actions {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.orders-panel .mode {
|
||||
color: var(--warning);
|
||||
text-shadow: 0 0 18px rgba(255, 191, 105, 0.24);
|
||||
@@ -170,11 +177,14 @@ canvas {
|
||||
|
||||
.orders {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(5, minmax(0, 1fr));
|
||||
grid-template-columns: repeat(6, minmax(0, 1fr));
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.orders button {
|
||||
.window-launchers button,
|
||||
.orders button,
|
||||
.fleet-actions button,
|
||||
.window-close {
|
||||
border: 1px solid rgba(126, 212, 255, 0.16);
|
||||
border-radius: 12px;
|
||||
background: linear-gradient(180deg, rgba(13, 30, 56, 0.95), rgba(8, 17, 33, 0.95));
|
||||
@@ -184,11 +194,14 @@ canvas {
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
cursor: pointer;
|
||||
transition: border-color 120ms ease, transform 120ms ease, background 120ms ease;
|
||||
transition: border-color 120ms ease, transform 120ms ease, background 120ms ease, opacity 120ms ease;
|
||||
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
|
||||
}
|
||||
|
||||
.orders button:hover {
|
||||
.orders button:hover,
|
||||
.window-launchers button:hover,
|
||||
.fleet-actions button:hover,
|
||||
.window-close:hover {
|
||||
border-color: rgba(126, 212, 255, 0.4);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
@@ -197,6 +210,12 @@ canvas {
|
||||
opacity: 0.45;
|
||||
}
|
||||
|
||||
button:disabled {
|
||||
opacity: 0.35;
|
||||
cursor: default;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.orders-panel .hint {
|
||||
color: var(--muted);
|
||||
line-height: 1.45;
|
||||
@@ -216,6 +235,242 @@ canvas {
|
||||
background: rgba(2, 6, 13, 0.92);
|
||||
}
|
||||
|
||||
.app-window {
|
||||
position: absolute;
|
||||
top: 104px;
|
||||
left: 50%;
|
||||
width: min(480px, calc(100vw - 48px));
|
||||
height: min(68vh, 680px);
|
||||
display: none;
|
||||
flex-direction: column;
|
||||
gap: 14px;
|
||||
padding: 18px;
|
||||
pointer-events: auto;
|
||||
backdrop-filter: blur(16px);
|
||||
background:
|
||||
linear-gradient(180deg, rgba(6, 13, 27, 0.94), rgba(4, 10, 21, 0.92)),
|
||||
radial-gradient(circle at top, rgba(126, 212, 255, 0.08), transparent 60%);
|
||||
border: 1px solid rgba(126, 212, 255, 0.2);
|
||||
border-radius: 18px;
|
||||
box-shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
|
||||
z-index: 4;
|
||||
}
|
||||
|
||||
.app-window[data-open="true"] {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.window-header {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
cursor: move;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.window-header h2,
|
||||
.window-header p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.window-header h2 {
|
||||
font-size: 0.95rem;
|
||||
letter-spacing: 0.16em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.window-subtitle {
|
||||
margin-top: 6px;
|
||||
color: var(--muted);
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.window-close {
|
||||
padding-inline: 14px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.fleet-actions {
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.window-body {
|
||||
overflow: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
padding-right: 4px;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.window-resize-handle {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
bottom: 10px;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border-right: 2px solid rgba(126, 212, 255, 0.42);
|
||||
border-bottom: 2px solid rgba(126, 212, 255, 0.42);
|
||||
border-radius: 0 0 8px 0;
|
||||
cursor: nwse-resize;
|
||||
}
|
||||
|
||||
.window-resize-handle::before,
|
||||
.window-resize-handle::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
right: 3px;
|
||||
bottom: 3px;
|
||||
border-right: 1px solid rgba(126, 212, 255, 0.24);
|
||||
border-bottom: 1px solid rgba(126, 212, 255, 0.24);
|
||||
}
|
||||
|
||||
.window-resize-handle::before {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
.window-resize-handle::after {
|
||||
width: 6px;
|
||||
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) {
|
||||
.summary,
|
||||
.details,
|
||||
@@ -242,4 +497,14 @@ canvas {
|
||||
.orders {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.window-launchers,
|
||||
.fleet-actions {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.app-window {
|
||||
top: 76px;
|
||||
width: calc(100vw - 32px);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user