MediaWiki:DataMaps.css: Difference between revisions
Jump to navigation
Jump to search
Labels: out-specify Leaflet's tooltip box, halo text, hide minor labels when far out |
Region outline + region label styles |
||
| Line 1: | Line 1: | ||
/* Interactive maps (Extension:DataMaps) site styles. Labels are bound in MediaWiki:DataMaps.js. */ | /* Interactive maps (Extension:DataMaps) site styles. Labels and regions are bound in MediaWiki:DataMaps.js. */ | ||
/* Leaflet's own tooltip stylesheet loads after this one, so out-specify it. */ | /* Leaflet's own tooltip stylesheet loads after this one, so out-specify it. */ | ||
| Line 30: | Line 30: | ||
towns, ruins, wilds and rumours only once zoomed in a little. */ | 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 { | .ext-datamaps-container[data-dn-label-tier="far"] .leaflet-tooltip.dn-map-label-minor { | ||
display: none; | |||
} | |||
/* Region outlines on the overview map (Map:Faerun) */ | |||
.ext-datamaps-container .dn-region { | |||
cursor: pointer; | |||
} | |||
.ext-datamaps-container .leaflet-tooltip.dn-region-label { | |||
background: transparent; | |||
border: 0; | |||
box-shadow: none; | |||
padding: 0; | |||
font-family: Georgia, "Palatino Linotype", "Book Antiqua", serif; | |||
font-size: 22px; | |||
font-weight: 700; | |||
font-variant: small-caps; | |||
letter-spacing: 0.06em; | |||
color: #2a1d0c; | |||
text-shadow: | |||
0 0 3px #fff, 0 0 6px #fff, 0 0 10px #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-region-label::before { | |||
display: none; | display: none; | ||
} | } | ||
Revision as of 19:19, 29 August 2026
/* Interactive maps (Extension:DataMaps) site styles. Labels and regions 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;
}
/* Region outlines on the overview map (Map:Faerun) */
.ext-datamaps-container .dn-region {
cursor: pointer;
}
.ext-datamaps-container .leaflet-tooltip.dn-region-label {
background: transparent;
border: 0;
box-shadow: none;
padding: 0;
font-family: Georgia, "Palatino Linotype", "Book Antiqua", serif;
font-size: 22px;
font-weight: 700;
font-variant: small-caps;
letter-spacing: 0.06em;
color: #2a1d0c;
text-shadow:
0 0 3px #fff, 0 0 6px #fff, 0 0 10px #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-region-label::before {
display: none;
}