From d1833aee5de902faf5b7a38162eb71fc9ee3ce4d Mon Sep 17 00:00:00 2001 From: Bryan McBride Date: Mon, 23 Feb 2015 13:50:40 -0500 Subject: [PATCH] Use custom popup class for geojsonio features This allows any additional features loaded via the API to have standard popup styling. --- css/marker.css | 11 ++++------- dist/site.js | 3 ++- dist/site.mobile.js | 3 ++- src/ui/map.js | 3 ++- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/css/marker.css b/css/marker.css index c06a2d61c..be0946406 100644 --- a/css/marker.css +++ b/css/marker.css @@ -45,27 +45,24 @@ background-color:#f7f7f7; } -.leaflet-popup-content-wrapper { +.geojsonio-feature .leaflet-popup-content-wrapper { float: left; width: 100%; + padding: 0; } -.leaflet-popup-content { +.geojsonio-feature .leaflet-popup-content { float: left; padding: 0 !important; width:100%; } -.leaflet-popup-tip-container { +.geojsonio-feature .leaflet-popup-tip-container { float: left; margin-left: 50%; right: 10px; } -.leaflet-popup-content-wrapper { - padding: 0; -} - datalist { overflow: auto; height: 150px; diff --git a/dist/site.js b/dist/site.js index c3af1160c..ac5bdf0a2 100644 --- a/dist/site.js +++ b/dist/site.js @@ -26833,7 +26833,8 @@ function bindPopup(l) { closeButton: false, maxWidth: 500, maxHeight: 400, - autoPanPadding: [5, 45] + autoPanPadding: [5, 45], + className: 'geojsonio-feature' }, l).setContent(content)); l.on('popupopen', function(e){ diff --git a/dist/site.mobile.js b/dist/site.mobile.js index 33dbd55ea..996dae6a9 100644 --- a/dist/site.mobile.js +++ b/dist/site.mobile.js @@ -26753,7 +26753,8 @@ function bindPopup(l) { closeButton: false, maxWidth: 500, maxHeight: 400, - autoPanPadding: [5, 45] + autoPanPadding: [5, 45], + className: 'geojsonio-feature' }, l).setContent(content)); l.on('popupopen', function(e){ diff --git a/src/ui/map.js b/src/ui/map.js index fbfb1400f..797bf2395 100644 --- a/src/ui/map.js +++ b/src/ui/map.js @@ -234,7 +234,8 @@ function bindPopup(l) { closeButton: false, maxWidth: 500, maxHeight: 400, - autoPanPadding: [5, 45] + autoPanPadding: [5, 45], + className: 'geojsonio-feature' }, l).setContent(content)); l.on('popupopen', function(e){