]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/stylesheets/common.css.scss
Stop the map overlapping the top bar
[rails.git] / app / assets / stylesheets / common.css.scss
index 2837270fdf654fd035841a0b6b29dc08c7cab25c..8f500acea2e4d8801a152fa41b3d281dfa8a75b3 100644 (file)
@@ -430,7 +430,7 @@ body.site-export #tabnav a#exportanchor {
   left: 15px;
 }
 
-/* Rules for OpenLayers maps */
+/* Rules for Leaflet maps */
 
 #map {
   margin: 0px;
@@ -438,13 +438,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;
@@ -460,11 +453,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 {
-  top: 40px !important;
+.site-index .leaflet-top,
+.site-export .leaflet-top {
+  top: 10px !important;
+
+  .leaflet-control {
+    margin-top: 0px !important;
+  }
 }
 
 .site-index #map .olControlScaleLine,
@@ -684,7 +679,6 @@ body.site-export #tabnav a#exportanchor {
 .site-index #content,
 .site-export #content {
   position: fixed;
-  margin-top: 0px;
   left: 0px;
   right: 0px;
   top: 0px;
@@ -692,10 +686,6 @@ body.site-export #tabnav a#exportanchor {
   padding: 0px;
 }
 
-.site-edit #content {
-  top: 30px;
-}
-
 #slim_container {
   width: 100%;
 }
@@ -1098,16 +1088,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;