- refactor the /earth HUD into class-first CSS layers with dedicated base, hud, and toolbar responsibilities - clean up Earth markup and runtime DOM hooks so shared panel, toolbar, tooltip, and status classes stay consistent after dynamic updates - keep HUD scaling configurable through extracted constants and remove leftover legacy panel/toolbar styling paths - make planet.sh self-bootstrap Bun and uv by prepending local runtime bins to PATH and auto-installing missing tools in fresh environments - document Bun as the frontend package manager of record and sync repository version metadata to 0.24.1
173 lines
3.8 KiB
CSS
173 lines
3.8 KiB
CSS
/* info-panel */
|
|
|
|
.hud-panel-info {
|
|
top: var(--hud-offset);
|
|
left: var(--hud-offset);
|
|
border-radius: var(--hud-radius);
|
|
padding: calc(20px * var(--hud-scale));
|
|
width: calc(320px * var(--hud-scale));
|
|
z-index: 10;
|
|
font-size: var(--hud-font-size);
|
|
}
|
|
|
|
.hud-panel-info .earth-app-title {
|
|
font-size: calc(1.8rem * var(--hud-scale));
|
|
margin-bottom: var(--hud-gap-xs);
|
|
color: #4db8ff;
|
|
text-shadow: 0 0 10px rgba(77, 184, 255, 0.5);
|
|
text-align: center;
|
|
}
|
|
|
|
.hud-panel-info .subtitle {
|
|
margin-bottom: calc(20px * var(--hud-scale));
|
|
border-bottom: 1px solid rgba(255,255,255,0.1);
|
|
padding-bottom: calc(12px * var(--hud-scale));
|
|
text-align: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: calc(4px * var(--hud-scale));
|
|
}
|
|
|
|
.hud-panel-info .subtitle-main {
|
|
color: #d7e7f5;
|
|
font-size: calc(0.95rem * var(--hud-scale));
|
|
line-height: 1.35;
|
|
font-weight: 500;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
.hud-panel-info .subtitle-meta {
|
|
color: #8ea5bc;
|
|
font-size: calc(0.74rem * var(--hud-scale));
|
|
line-height: 1.3;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
/* Info Card - Unified details panel (inside info-panel) */
|
|
.info-card {
|
|
display: none;
|
|
margin-top: var(--hud-gap-lg);
|
|
background:
|
|
linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(110, 176, 255, 0.04)),
|
|
rgba(7, 18, 36, 0.2);
|
|
border-radius: calc(14px * var(--hud-scale));
|
|
border: 1px solid rgba(225, 242, 255, 0.12);
|
|
box-shadow:
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.08),
|
|
0 10px 24px rgba(0, 0, 0, 0.16);
|
|
padding: 0;
|
|
overflow: hidden;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.info-card.no-border {
|
|
background: transparent;
|
|
border: none;
|
|
}
|
|
|
|
.info-card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: calc(10px * var(--hud-scale)) calc(12px * var(--hud-scale));
|
|
background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(77, 184, 255, 0.06));
|
|
gap: var(--hud-gap-sm);
|
|
}
|
|
|
|
.info-card-icon {
|
|
font-size: calc(18px * var(--hud-scale));
|
|
}
|
|
|
|
.info-card-header h3 {
|
|
flex: 1;
|
|
margin: 0;
|
|
font-size: calc(1rem * var(--hud-scale));
|
|
color: #4db8ff;
|
|
}
|
|
|
|
.info-card-content {
|
|
padding: calc(10px * var(--hud-scale)) calc(12px * var(--hud-scale));
|
|
max-height: 40vh;
|
|
overflow-y: auto;
|
|
scrollbar-width: thin;
|
|
scrollbar-color: rgba(160, 220, 255, 0.45) transparent;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.info-card-content::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
|
|
.info-card-content::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
.info-card-content::-webkit-scrollbar-thumb {
|
|
background: linear-gradient(180deg, rgba(210, 237, 255, 0.32), rgba(110, 176, 255, 0.34));
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.info-card-content::-webkit-scrollbar-thumb:hover {
|
|
background: linear-gradient(180deg, rgba(232, 246, 255, 0.42), rgba(128, 198, 255, 0.46));
|
|
}
|
|
|
|
.info-card-property {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: calc(6px * var(--hud-scale));
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
|
pointer-events: auto;
|
|
gap: var(--hud-gap-sm);
|
|
}
|
|
|
|
.info-card-property:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.info-card-label {
|
|
color: #aaa;
|
|
font-size: calc(0.85rem * var(--hud-scale));
|
|
cursor: pointer;
|
|
transition: color 0.18s ease;
|
|
}
|
|
|
|
.info-card-label:hover {
|
|
color: #d9f1ff;
|
|
}
|
|
|
|
.info-card-value {
|
|
color: #4db8ff;
|
|
font-weight: 500;
|
|
font-size: calc(0.9rem * var(--hud-scale));
|
|
text-align: right;
|
|
max-width: calc(180px * var(--hud-scale));
|
|
word-break: break-word;
|
|
}
|
|
|
|
/* Cable type */
|
|
.info-card.cable {
|
|
border-color: rgba(255, 200, 0, 0.4);
|
|
}
|
|
|
|
.info-card.cable .info-card-header {
|
|
background: rgba(255, 200, 0, 0.15);
|
|
}
|
|
|
|
.info-card.cable .info-card-header h3 {
|
|
color: #ffc800;
|
|
}
|
|
|
|
/* Satellite type */
|
|
.info-card.satellite {
|
|
border-color: rgba(0, 229, 255, 0.4);
|
|
}
|
|
|
|
.info-card.satellite .info-card-header {
|
|
background: rgba(0, 229, 255, 0.15);
|
|
}
|
|
|
|
.info-card.satellite .info-card-header h3 {
|
|
color: #00e5ff;
|
|
}
|