X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/17f926fefb1329aaa41a64634d17d1dffd3ddba5..2452576333c8b0e76bf3a921d8321fbcc267f146:/app/assets/stylesheets/leaflet-all.scss diff --git a/app/assets/stylesheets/leaflet-all.scss b/app/assets/stylesheets/leaflet-all.scss new file mode 100644 index 000000000..10ad2607a --- /dev/null +++ b/app/assets/stylesheets/leaflet-all.scss @@ -0,0 +1,27 @@ +/* + *= require leaflet + *= require leaflet.locationfilter + */ + +/* Override to serve images through the asset pipeline. */ +div.leaflet-marker-icon.location-filter.resize-marker { + background-image: image-url("img/resize-handle.png"); +} + +div.leaflet-marker-icon.location-filter.move-marker { + background-image: image-url("img/move-handle.png"); +} + +/* Override some conflicting styles. + https://github.com/openstreetmap/openstreetmap-website/pull/121#issuecomment-10206946 */ +.leaflet-popup-content img.user_thumbnail { + max-width: 50px !important; +} + +.user_popup p { + margin: 0 !important; +} + +.site .leaflet-popup p { + margin: 0 0 20px 0; +}