X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5fe5777a58751e3626f645d57dafb0dd854586ec..78f608b114c05f1147936a57b930831e28000c1a:/app/assets/stylesheets/common.css.scss diff --git a/app/assets/stylesheets/common.css.scss b/app/assets/stylesheets/common.css.scss index ec06997f8..413133e45 100644 --- a/app/assets/stylesheets/common.css.scss +++ b/app/assets/stylesheets/common.css.scss @@ -332,6 +332,7 @@ h2 { #top-bar { position: absolute; + z-index: 10000; top: 0; left: 185px; right: 0; @@ -430,7 +431,7 @@ body.site-export #tabnav a#exportanchor { left: 15px; } -/* Rules for OpenLayers maps */ +/* Rules for Leaflet maps */ #map { margin: 0px; @@ -438,13 +439,6 @@ body.site-export #tabnav a#exportanchor { padding: 0px; } -.olControlAttribution { - bottom: 15px !important; - left: 0px !important; - right: 0px !important; - text-align: center; -} - #permalink { z-index: 10000; position: absolute; @@ -466,11 +460,13 @@ body.site-export #tabnav a#exportanchor { text-decoration: none; } -.site-index #map .SimpleLayerSwitcher, -.site-index #map .olControlSimplePanZoom, -.site-export #map .SimpleLayerSwitcher, -.site-export #map .olControlSimplePanZoom { +.site-index .leaflet-top, +.site-export .leaflet-top { top: 40px !important; + + .leaflet-control { + margin-top: 0px !important; + } } .site-index #map .olControlScaleLine, @@ -1121,16 +1117,21 @@ p#contributorGuidance { /* Rules for the user map */ -.user_map .olControlSimplePanZoom { +.user_map .leaflet-control-pan, +.user_map .leaflet-control-zoomslider { display: none; } -.user_map .olControlZoom { +.user_map .leaflet-control-zoom { display: block; } /* Rules for user popups on maps */ +.user_popup { + min-width: 200px; +} + .user_popup p { padding-top: 3px; padding-bottom: 3px;