]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/stylesheets/common.css.scss
Layers work
[rails.git] / app / assets / stylesheets / common.css.scss
index ba25591d304da575d0de4f3fefcc66547d5a0388..6ce66b665f55247281463651af94cb01afffc641 100644 (file)
@@ -562,20 +562,45 @@ a.donate {
   margin: 10px;
 }
 
-.leaflet-map-ui-layers {
-  box-shadow: 0 1px 7px rgba(0, 0, 0, 0.4);
-  background: #f8f8f9;
-  -webkit-border-radius: 8px;
-  border-radius: 8px;
-  background-position: 50% 50%;
-  background-repeat: no-repeat;
-  display: block;
-  width: 36px;
-  height: 36px;
+#map-ui {
+  position: absolute;
+  display: none;
+  right: 0;
+  width: 200px;
+  height: 100%;
+  background: white;
 }
 
-.leaflet-control-layers-separator {
-  margin: 5px -10px !important;
+.layers-ui {
+  section {
+    border-top: 1px solid #868e85;
+    padding: 15px;
+  }
+
+  li {
+    border-radius: 4px;
+    overflow: hidden;
+    margin-bottom: 10px;
+  }
+
+  label {
+    display: block;
+    padding: 5px;
+    background-color: #868e85;
+    cursor: pointer;
+  }
+
+  li.active label {
+    background-color: #68c879;
+  }
+
+  .base-layers {
+    .leaflet-container {
+      width: 100%;
+      height: 50px;
+      cursor: pointer;
+    }
+  }
 }
 
 .leaflet-control-attribution {