]> git.openstreetmap.org Git - rails.git/commitdiff
Return map-ui sidebars in mobile
authorEden Halperin <eden.halperin@gmail.com>
Thu, 7 Nov 2013 21:57:53 +0000 (16:57 -0500)
committerEden Halperin <eden.halperin@gmail.com>
Thu, 7 Nov 2013 21:57:53 +0000 (16:57 -0500)
app/assets/javascripts/leaflet.key.js
app/assets/javascripts/leaflet.layers.js
app/assets/javascripts/leaflet.share.js
app/assets/stylesheets/small.css.scss

index 3f71932fbbcdf131f5a9bd95bbe89f7d73d83066..ea236a569e316b99ec87f0e86f6189a75fccfbaf 100644 (file)
@@ -6,7 +6,7 @@ L.OSM.key = function (options) {
       .attr('class', 'control-key');
 
     var button = $('<a>')
-      .attr('class', 'control-button mobile-hide')
+      .attr('class', 'control-button')
       .attr('href', '#')
       .html('<span class="icon key"></span>')
       .on('click', toggle)
index ba1461b205f00125e32084c7b0485e9b3a8e683b..fd493ee32c212d882b38bd6948ef07861c26cd55 100644 (file)
@@ -8,7 +8,7 @@ L.OSM.layers = function(options) {
       .attr('class', 'control-layers');
 
     var button = $('<a>')
-      .attr('class', 'control-button mobile-hide')
+      .attr('class', 'control-button')
       .attr('href', '#')
       .attr('title', I18n.t('javascripts.map.layers.title'))
       .html('<span class="icon layers"></span>')
index 6701e0bbd4ccf89227dd6de1c2797eba7c7aba04..6a4491c2a7e57fcbf6158603bf8779dfd8990f70 100644 (file)
@@ -11,7 +11,7 @@ L.OSM.share = function (options) {
       .attr('class', 'control-share');
 
     var button = $('<a>')
-      .attr('class', 'control-button mobile-hide')
+      .attr('class', 'control-button')
       .attr('href', '#')
       .attr('title', I18n.t('javascripts.share.title'))
       .html('<span class="icon share"></span>')
index 51549f87fc5ae1367a82ab5b9262493090529bd9..144bbd9b4b4ecb1bfb0c3e423f12594704f2c8e0 100644 (file)
@@ -1,6 +1,7 @@
 /* Styles specific to a small screen, such as iPhone, Android, etc... */
 
-* { -webkit-appearance: none; }
+input[type="submit"],
+input[type="text"] { -webkit-appearance: none; }
 
 /* Default rules for the body of every page */
 
@@ -119,6 +120,11 @@ nav.secondary {
     // height: 100%;
     // position: fixed;
   }
+  #map-ui {
+    z-index: 9999;
+    width: 100%;
+    overflow-y: scroll;
+  }
 }
 
 .leaflet-top.leaflet-right {
@@ -135,31 +141,6 @@ nav.secondary {
   min-height: auto;
 }
 
-/* Rules for the map UI */
-
-.layers-ui {
-  .leaflet-container {
-    display: none;
-  }
-
-  li {
-    border-radius: 0;
-    margin-bottom: 0;
-
-    &:first-child {
-      border-radius: 4px 4px 0 0;
-    }
-
-    &:last-child {
-      border-radius: 0 0 4px 4px;
-    }
-  }
-
-  .overlay-layers p {
-    display: none;
-  }
-}
-
 /* Rules for the login form */
 
 #login_login input#user_email {