MediaWiki:DataMaps.css: Difference between revisions
Jump to navigation
Jump to search
Site styles for the interactive maps: printed-map style name labels |
Labels: out-specify Leaflet's tooltip box, halo text, hide minor labels when far out |
||
| Line 1: | Line 1: | ||
/* Interactive maps (Extension:DataMaps) site styles. Labels are bound in MediaWiki:DataMaps.js. */ | /* Interactive maps (Extension:DataMaps) site styles. Labels are bound in MediaWiki:DataMaps.js. */ | ||
.dn-map-label { | |||
background: | /* Leaflet's own tooltip stylesheet loads after this one, so out-specify it. */ | ||
.ext-datamaps-container .leaflet-tooltip.dn-map-label { | |||
background: transparent; | |||
border: 0; | border: 0; | ||
border-radius: 0; | border-radius: 0; | ||
| Line 19: | Line 21: | ||
pointer-events: none; | pointer-events: none; | ||
} | } | ||
.dn-map-label::before { | .ext-datamaps-container .leaflet-tooltip.dn-map-label::before { | ||
display: none; /* no tooltip arrow */ | display: none; /* no tooltip arrow */ | ||
} | } | ||
.dn-map-label-mini { | .ext-datamaps-container .leaflet-tooltip.dn-map-label-mini { | ||
font-size: 11px; | font-size: 11px; | ||
} | } | ||
/* | /* Cities, strongholds, themed sites and the party keep their labels at every zoom; | ||
.ext-datamaps-container .leaflet- | towns, ruins, wilds and rumours only once zoomed in a little. */ | ||
.ext-datamaps-container[data-dn-label-tier="far"] .leaflet-tooltip.dn-map-label-minor { | |||
display: none; | |||
} | } | ||
Revision as of 18:59, 29 August 2026
/* Interactive maps (Extension:DataMaps) site styles. Labels are bound in MediaWiki:DataMaps.js. */
/* Leaflet's own tooltip stylesheet loads after this one, so out-specify it. */
.ext-datamaps-container .leaflet-tooltip.dn-map-label {
background: transparent;
border: 0;
border-radius: 0;
box-shadow: none;
padding: 0;
margin: 0;
font-family: Georgia, "Palatino Linotype", "Book Antiqua", serif;
font-size: 14px;
font-weight: 700;
line-height: 1;
letter-spacing: 0.02em;
color: #1b1b1b;
text-shadow:
0 0 2px #fff, 0 0 3px #fff, 0 0 5px #fff,
1px 1px 0 #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff;
white-space: nowrap;
pointer-events: none;
}
.ext-datamaps-container .leaflet-tooltip.dn-map-label::before {
display: none; /* no tooltip arrow */
}
.ext-datamaps-container .leaflet-tooltip.dn-map-label-mini {
font-size: 11px;
}
/* Cities, strongholds, themed sites and the party keep their labels at every zoom;
towns, ruins, wilds and rumours only once zoomed in a little. */
.ext-datamaps-container[data-dn-label-tier="far"] .leaflet-tooltip.dn-map-label-minor {
display: none;
}