MediaWiki:Common.css: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Die Seite wurde neu angelegt: „→Das folgende CSS wird für alle Benutzeroberflächen geladen.: // Hack to show icon on Kartographer maps. See https://phabricator.miraheze.org/T6656 mw.hook('wikipage.maps').add(function () { mw.util.addCSS('.leaflet-marker-icon { margin-left: initial !important; margin-top: initial !important; width: auto !important; height: auto !important; }'); new MutationObserver(function (mutations) { mutations.forEach(function (mutation) { if (mutation.…“) |
(kein Unterschied)
|
Version vom 28. März 2023, 22:58 Uhr
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */
// Hack to show icon on Kartographer maps. See https://phabricator.miraheze.org/T6656
mw.hook('wikipage.maps').add(function () {
mw.util.addCSS('.leaflet-marker-icon { margin-left: initial !important; margin-top: initial !important; width: auto !important; height: auto !important; }');
new MutationObserver(function (mutations) {
mutations.forEach(function (mutation) {
if (mutation.addedNodes.length) {
mutation.addedNodes[0].src = "https://openlayers.org/api/img/marker.png";
}
});
}).observe($('.leaflet-marker-pane').get(0), {
childList: true,
});
});