]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/stylesheets/small.css.scss
Fix mobile menu and reduced sidebar height
[rails.git] / app / assets / stylesheets / small.css.scss
index de1b44bb5d6075d2939175de8984d63695fc9d8b..d6fb6f7580cfb54dc125360a5ae63b8385637133 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 */
 
@@ -80,6 +81,13 @@ nav.secondary {
   }
 }
 
+#compact-secondary-nav {
+  display: none;
+}
+.compact-hide {
+  display: inline-block;
+}
+
 #content { margin-top: 58px; }
 
 .map-layout {
@@ -87,7 +95,7 @@ nav.secondary {
     width: 100%;
     position: fixed;
     top: 58px;
-    height: 370px;
+    height: 240px;
     overflow-x: hidden;
     z-index: 1;
     background: #fff;
@@ -112,6 +120,11 @@ nav.secondary {
     // height: 100%;
     // position: fixed;
   }
+  #map-ui {
+    z-index: 9999;
+    width: 100%;
+    overflow-y: scroll;
+  }
 }
 
 .leaflet-top.leaflet-right {
@@ -128,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 {