Template:LWMap/styles.css
Template page
More actions
/* Template:LWMap/styles.css
Landrace.Wiki map card styling for .lw-map (Leaflet) embeds
*/
.lw-map-card {
max-width: 1180px;
margin: 0.75rem 0 1.25rem 0;
border: 1px solid rgba(45, 106, 79, 0.18);
border-radius: 14px;
overflow: hidden;
background: #ffffff;
box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}
.lw-map-card__map {
background: #f7faf8;
}
/* Leaflet container lives inside .lw-map */
.lw-map.lw-map--region {
width: 100%;
height: 560px;
border: 0;
}
/* Responsive height */
@media (max-width: 900px) {
.lw-map.lw-map--region { height: 460px; }
}
@media (max-width: 600px) {
.lw-map.lw-map--region { height: 380px; }
}
.lw-map-card__footer {
display: flex;
gap: 0.75rem;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
padding: 0.65rem 0.85rem;
background: linear-gradient(180deg, #ffffff 0%, #f4f8f6 100%);
border-top: 1px solid rgba(45, 106, 79, 0.12);
}
.lw-map-card__legend {
display: flex;
gap: 0.45rem;
flex-wrap: wrap;
align-items: center;
}
.lw-map-card__hint {
font-size: 0.92rem;
color: rgba(0, 0, 0, 0.62);
}
/* Badges */
.lw-badge {
display: inline-flex;
align-items: center;
padding: 0.18rem 0.52rem;
border-radius: 999px;
font-size: 0.78rem;
line-height: 1.2;
border: 1px solid rgba(0, 0, 0, 0.12);
background: #ffffff;
color: rgba(0, 0, 0, 0.70);
white-space: nowrap;
}
/* Status hints (independent of marker colors unless JS ties into these) */
.lw-badge--critical { border-color: rgba(176, 0, 32, 0.35); color: rgba(176, 0, 32, 0.85); }
.lw-badge--high { border-color: rgba(255, 87, 34, 0.35); color: rgba(255, 87, 34, 0.85); }
.lw-badge--medium { border-color: rgba(245, 124, 0, 0.35); color: rgba(245, 124, 0, 0.85); }
.lw-badge--low { border-color: rgba( 46, 125, 50, 0.35); color: rgba( 46, 125, 50, 0.85); }
.lw-badge--unknown { border-color: rgba( 97, 97, 97, 0.35); color: rgba( 97, 97, 97, 0.85); }
/* Leaflet controls: match site UI */
.lw-map .leaflet-control-zoom,
.lw-map .leaflet-bar {
border: 1px solid rgba(45, 106, 79, 0.20) !important;
border-radius: 10px !important;
overflow: hidden;
box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
}
.lw-map .leaflet-bar a,
.lw-map .leaflet-control-zoom a {
background: rgba(255, 255, 255, 0.96) !important;
color: rgba(0, 0, 0, 0.75) !important;
transition: background 120ms ease, color 120ms ease;
}
.lw-map .leaflet-bar a:hover,
.lw-map .leaflet-control-zoom a:hover {
background: rgba(45, 106, 79, 0.10) !important;
color: rgba(45, 106, 79, 1) !important;
}
.lw-map .leaflet-control-attribution {
background: rgba(255, 255, 255, 0.75) !important;
border-radius: 8px;
padding: 2px 8px;
margin: 0 8px 8px 0;
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}