From 17d31e9f06e4e265e8d341f9e3e806eb2cb19291 Mon Sep 17 00:00:00 2001 From: Alexander Danilov Date: Mon, 16 Dec 2024 12:20:56 +0500 Subject: [PATCH 1/2] Fix zoom controls --- core/style.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/style.css b/core/style.css index 082774488..ce227da3c 100644 --- a/core/style.css +++ b/core/style.css @@ -1266,6 +1266,10 @@ td + td { box-shadow: none; } +.leaflet-bar a { + text-decoration: none; +} + .portal_details th, .portal_details td { vertical-align: top; From da92cdfe12683c0d0507c442de7a40bfeed15dc2 Mon Sep 17 00:00:00 2001 From: Alexander Danilov Date: Mon, 16 Dec 2024 14:16:53 +0500 Subject: [PATCH 2/2] Using svg icons for Leaflet zoom controls --- core/style.css | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/core/style.css b/core/style.css index ce227da3c..7e24d0997 100644 --- a/core/style.css +++ b/core/style.css @@ -1270,6 +1270,19 @@ td + td { text-decoration: none; } +.leaflet-control-zoom-in, .leaflet-control-zoom-out { + background-size: 18px; + font-size: 0 !important; +} + +.leaflet-control-zoom-in { + background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M9 3v12M3 9h12' stroke='black' stroke-width='2.2' fill='none'/%3E%3C/svg%3E"); +} + +.leaflet-control-zoom-out { + background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3.5 9h11' stroke='black' stroke-width='2.2' fill='none'/%3E%3C/svg%3E"); +} + .portal_details th, .portal_details td { vertical-align: top;