Files
planet/frontend/public/earth/css/legend.css
2026-04-11 03:42:35 +08:00

86 lines
2.0 KiB
CSS

/* legend */
.hud-panel-legend {
bottom: var(--hud-offset);
left: var(--hud-offset);
border-radius: var(--hud-radius);
padding: var(--hud-panel-padding);
width: calc(236px * var(--hud-scale));
z-index: 10;
font-size: var(--hud-font-size);
}
.hud-panel-legend .legend-title {
margin-bottom: 0;
}
.hud-panel-legend .legend-list {
display: flex;
flex-direction: column;
gap: calc(9px * var(--hud-scale));
max-height: calc(214px * var(--hud-scale));
overflow-y: auto;
padding-right: calc(4px * var(--hud-scale));
scrollbar-width: thin;
scrollbar-color: rgba(160, 186, 216, 0.32) transparent;
}
.hud-panel-legend .legend-list::-webkit-scrollbar {
width: 6px;
}
.hud-panel-legend .legend-list::-webkit-scrollbar-track {
background: transparent;
}
.hud-panel-legend .legend-list::-webkit-scrollbar-thumb {
background: linear-gradient(180deg, rgba(210, 225, 242, 0.2), rgba(126, 154, 185, 0.28));
border-radius: 999px;
}
.hud-panel-legend .legend-item {
display: flex;
align-items: center;
gap: calc(10px * var(--hud-scale));
padding: calc(9px * var(--hud-scale)) calc(10px * var(--hud-scale));
border-radius: calc(14px * var(--hud-scale));
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
rgba(255, 255, 255, 0.018);
border: 1px solid rgba(214, 229, 245, 0.07);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.hud-panel-legend .legend-color {
width: calc(16px * var(--hud-scale));
height: calc(16px * var(--hud-scale));
border-radius: 999px;
margin-right: 0;
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.28),
0 0 0 3px rgba(255, 255, 255, 0.04);
}
.hud-panel-legend .legend-item span {
color: var(--hud-text);
font-size: calc(0.84rem * var(--hud-scale));
font-weight: 500;
line-height: 1.35;
}
.legend-color-americas {
background-color: #ff4444;
}
.legend-color-au-a {
background-color: #44ff44;
}
.legend-color-au-b {
background-color: #4444ff;
}
.legend-color-default {
background-color: #ffff44;
}