]> 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 a92bf4ac5491aa1485520fcaf735fb886d9a8ba6..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 */
 
@@ -11,7 +12,7 @@
 /* Rules for the whole left sidebar, including the logo */
 
 #menu-icon {
-  display: inline-block;
+  display: inline-block !important;
 }
 
 
@@ -80,6 +81,13 @@ nav.secondary {
   }
 }
 
+#compact-secondary-nav {
+  display: none;
+}
+.compact-hide {
+  display: inline-block;
+}
+
 #content { margin-top: 58px; }
 
 .map-layout {
@@ -87,13 +95,13 @@ nav.secondary {
     width: 100%;
     position: fixed;
     top: 58px;
-    height: 360px;
+    height: 240px;
     overflow-x: hidden;
     z-index: 1;
     background: #fff;
     p.large-text {
-      font-size: 1.4em;
-      line-height: 1.5em;
+      font-size: 1.2em;
+      line-height: 1.4em;
     }
     &.minimized {
       background: none;
@@ -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 {