From 73fc584571e9b5a82dad05d21111d25ec13fee5f Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Thu, 7 Nov 2013 04:44:41 +0000 Subject: [PATCH] tweaks to iitc-specific leaflet popup style - restore close button - pointer events only hit the main box, passing through the 'tip' area - this makes it easy to select differetn players after a marker spider --- style.css | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/style.css b/style.css index 9ec21114..a04b3086 100644 --- a/style.css +++ b/style.css @@ -985,11 +985,16 @@ td + td { /* leaflet popups - restyle to match the theme of IITC */ +#map .leaflet-popup { + pointer-events: none; +} + #map .leaflet-popup-content-wrapper { border-radius: 0px; -webkit-border-radius: 0px; border: 1px solid #20A8B1; background: #0e3d4e; + pointer-events: auto; } #map .leaflet-popup-content { @@ -998,9 +1003,15 @@ td + td { } #map .leaflet-popup-close-button { - display: none; + padding: 2px 1px 0 0; + font-size: 12px; + line-height: 8px; + width: 10px; + height: 10px; + pointer-events: auto; } + #map .leaflet-popup-tip { /* change the tip from an arrow to a simple line */ background: #20A8B1; @@ -1013,7 +1024,6 @@ td + td { -ms-transform: none; -o-transform: none; transform: none; - }