Files
planet/frontend/public/earth/css/legend.css

60 lines
1.2 KiB
CSS

/* legend */
#legend {
bottom: 20px;
left: 20px;
border-radius: 18px;
padding: 15px;
width: 220px;
z-index: 10;
}
#legend .legend-title {
color: #4db8ff;
margin-bottom: 10px;
font-size: 1.1rem;
}
#legend .legend-list {
display: flex;
flex-direction: column;
gap: 8px;
max-height: 202px;
overflow-y: auto;
padding-right: 4px;
scrollbar-width: thin;
scrollbar-color: rgba(160, 220, 255, 0.4) transparent;
}
#legend .legend-list::-webkit-scrollbar {
width: 6px;
}
#legend .legend-list::-webkit-scrollbar-track {
background: transparent;
}
#legend .legend-list::-webkit-scrollbar-thumb {
background: linear-gradient(180deg, rgba(210, 237, 255, 0.28), rgba(110, 176, 255, 0.34));
border-radius: 999px;
}
#legend .legend-item {
display: flex;
align-items: center;
padding: 6px 8px;
border-radius: 10px;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(120, 180, 255, 0.02));
border: 1px solid rgba(225, 242, 255, 0.06);
}
#legend .legend-color {
width: 20px;
height: 20px;
border-radius: 6px;
margin-right: 10px;
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.2),
0 0 12px rgba(77, 184, 255, 0.18);
}