From 3689798a04194d5098ce3dc84aab7967b27b7239 Mon Sep 17 00:00:00 2001 From: Eden Halperin Date: Thu, 7 Nov 2013 16:57:53 -0500 Subject: [PATCH] Return map-ui sidebars in mobile --- app/assets/javascripts/leaflet.key.js | 2 +- app/assets/javascripts/leaflet.layers.js | 2 +- app/assets/javascripts/leaflet.share.js | 2 +- app/assets/stylesheets/small.css.scss | 33 +++++------------------- 4 files changed, 10 insertions(+), 29 deletions(-) diff --git a/app/assets/javascripts/leaflet.key.js b/app/assets/javascripts/leaflet.key.js index 3f71932fb..ea236a569 100644 --- a/app/assets/javascripts/leaflet.key.js +++ b/app/assets/javascripts/leaflet.key.js @@ -6,7 +6,7 @@ L.OSM.key = function (options) { .attr('class', 'control-key'); var button = $('') - .attr('class', 'control-button mobile-hide') + .attr('class', 'control-button') .attr('href', '#') .html('') .on('click', toggle) diff --git a/app/assets/javascripts/leaflet.layers.js b/app/assets/javascripts/leaflet.layers.js index ba1461b20..fd493ee32 100644 --- a/app/assets/javascripts/leaflet.layers.js +++ b/app/assets/javascripts/leaflet.layers.js @@ -8,7 +8,7 @@ L.OSM.layers = function(options) { .attr('class', 'control-layers'); var button = $('') - .attr('class', 'control-button mobile-hide') + .attr('class', 'control-button') .attr('href', '#') .attr('title', I18n.t('javascripts.map.layers.title')) .html('') diff --git a/app/assets/javascripts/leaflet.share.js b/app/assets/javascripts/leaflet.share.js index 6701e0bbd..6a4491c2a 100644 --- a/app/assets/javascripts/leaflet.share.js +++ b/app/assets/javascripts/leaflet.share.js @@ -11,7 +11,7 @@ L.OSM.share = function (options) { .attr('class', 'control-share'); var button = $('') - .attr('class', 'control-button mobile-hide') + .attr('class', 'control-button') .attr('href', '#') .attr('title', I18n.t('javascripts.share.title')) .html('') diff --git a/app/assets/stylesheets/small.css.scss b/app/assets/stylesheets/small.css.scss index 51549f87f..144bbd9b4 100644 --- a/app/assets/stylesheets/small.css.scss +++ b/app/assets/stylesheets/small.css.scss @@ -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 { -- 2.43.2