]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/stylesheets/small.css.scss
Move search form to header on small screens
[rails.git] / app / assets / stylesheets / small.css.scss
index de1b44bb5d6075d2939175de8984d63695fc9d8b..5e8edc28c78988ce4856172e080af8a86d3397ac 100644 (file)
@@ -1,20 +1,18 @@
 /* Styles specific to a small screen, such as iPhone, Android, etc... */
 
-* { -webkit-appearance: none; }
-
-/* Default rules for the body of every page */
+input[type="submit"],
+input[type="text"] {
+  -webkit-appearance: none;
+}
 
 .column-1 {
   width: 100%;
 }
 
-/* Rules for the whole left sidebar, including the logo */
-
 #menu-icon {
   display: inline-block !important;
 }
 
-
 nav.primary,
 nav.secondary {
   float: none !important;
@@ -24,32 +22,37 @@ nav.secondary {
 }
 
 header {
-  min-height: 54px;
   height: auto;
   background: #fff;
-  border-bottom: 1px solid #ddd;
-  clear: both;
-  position: fixed;
-  width: 100%;
-  top: 0;
-  h1 { padding-bottom: 15px; }
-  &.closed {
-    nav.primary,
-    nav.secondary {
-      display: none;
-    }
+
+  h1 {
+    padding-bottom: 15px;
+  }
+
+  &.closed nav {
+    display: none;
+  }
+
+  .search_form {
+    display: block;
   }
 }
 
-.mobile-hide { display: none !important; }
+#sidebar .search_form,
+#edit_tab,
+#export_tab {
+  display: none;
+}
 
 nav.primary {
   padding: 0;
+
   ul, li {
     border: none;
     border-radius: 0;
     width: 100%;
   }
+
   ul {
     border-top: 1px solid #eee;
     li {
@@ -66,6 +69,8 @@ nav.primary {
 }
 
 nav.secondary {
+  border-bottom: 1px solid #eee;
+
   .user-menu {
     display: block;
     width: 100%;
@@ -80,40 +85,43 @@ nav.secondary {
   }
 }
 
-#content { margin-top: 58px; }
+#compact-secondary-nav {
+  display: none;
+}
+
+.compact-hide {
+  display: inline-block;
+}
 
 .map-layout {
-  #sidebar {
-    width: 100%;
-    position: fixed;
-    top: 58px;
-    height: 370px;
+  #sidebar, #map {
+    position: relative;
     overflow-x: hidden;
-    z-index: 1;
-    background: #fff;
-    p.large-text {
-      font-size: 1.2em;
-      line-height: 1.4em;
+    width: 100%;
+    height: 50%;
+  }
+
+  .overlay-sidebar {
+    #sidebar {
+      width: 300px;
     }
-    &.minimized {
-      background: none;
+
+    #map {
+      height: 100%;
     }
   }
-  #content {
-    position: fixed;
-    top: 0;
-    display: block;
-    height: 100%;
-    margin-top: 0;
-    padding-top: 58px;
-  }
-  #map {
+
+  #map-ui {
+    z-index: 9999;
     width: 100%;
-    // height: 100%;
-    // position: fixed;
+    overflow-y: scroll;
   }
 }
 
+#sidebar .welcome {
+  display: none;
+}
+
 .leaflet-top.leaflet-right {
   top: 10px !important;
   z-index: 0;
@@ -128,31 +136,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 {