X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b70aa5dbbde613e151a97da8dcf8855d2fffbebe..c0b47c0c2a3c31b42ef946aa6e07b85305091a0c:/app/assets/stylesheets/common.css.scss diff --git a/app/assets/stylesheets/common.css.scss b/app/assets/stylesheets/common.css.scss index 4ff87a87a..606cdd47d 100644 --- a/app/assets/stylesheets/common.css.scss +++ b/app/assets/stylesheets/common.css.scss @@ -256,7 +256,7 @@ h2 { text-transform: capitalize; padding-left: 0px; padding-right: 0px; - background: url(sprite.png); + background: image-url("sprite.png"); position: absolute; top: 5px; cursor: pointer; @@ -308,7 +308,7 @@ h2 { border: 0px; padding-left: 0px; padding-right: 0px; - background: url(sprite.png) 0 -30px no-repeat; + background: image-url("sprite.png") 0 -30px no-repeat; position: absolute; top: 8px; } @@ -415,7 +415,7 @@ body.site-export #tabnav a#exportanchor { top: 15px; } -/* Rules for OpenLayers maps */ +/* Rules for Leaflet maps */ #map { margin: 0px; @@ -423,13 +423,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; @@ -445,11 +438,13 @@ body.site-export #tabnav a#exportanchor { padding: 5px; } -.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; + } } /* Rules for edit menu */ @@ -640,11 +635,7 @@ body.site-export #tabnav a#exportanchor { margin: 30px 0px 0px 0px; } -.site-edit #content { - border: 0px; - padding: 0px; -} - +.site-edit #content, .site-index #content, .site-export #content { position: fixed; @@ -656,6 +647,10 @@ body.site-export #tabnav a#exportanchor { padding: 0px; } +.site-edit #content { + top: 30px; +} + #slim_container { width: 100%; } @@ -1014,16 +1009,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;