]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/stylesheets/small.scss
Merge remote-tracking branch 'upstream/pull/2431'
[rails.git] / app / assets / stylesheets / small.scss
index 0152e8b30c8705ffa29aa73ddfe96338996f684e..83b112ce7a0241367564379cc3214a68ddd412ee 100644 (file)
@@ -71,22 +71,16 @@ body.small {
         }
       }
     }
+
+    .btn-group {
+      width: 100%;
+      padding: 10px;
+    }
   }
 
   nav.secondary {
-    border-bottom: 1px solid #eee;
-
     .user-menu {
-      display: block;
       width: 100%;
-      margin-left: 0;
-      > li {
-        width: 49%;
-        > a {
-          width: 100%;
-          text-align: center;
-        }
-      }
     }
   }
 
@@ -97,43 +91,18 @@ body.small {
   .compact-hide {
     display: inline-block;
   }
+  
 
-  &.map-layout {
-    #sidebar, #map {
-      position: relative;
-      overflow-x: hidden;
-      width: 100%;
-      height: 50%;
-    }
-
-    .overlay-sidebar {
-      #sidebar {
-        position: absolute;
-        width: 300px;
-        height: auto;
-        overflow: hidden;
-      }
-
-      #map {
-        height: 100%;
-      }
-    }
-
-    #map-ui {
-      z-index: 9999;
-      width: 100%;
-      overflow-y: scroll;
-    }
+  .overlay-sidebar #sidebar .welcome.visible {
+    display: none;
   }
 
-  #sidebar .welcome,
-  #sidebar #banner {
-    display: none !important;
+  .overlay-sidebar #sidebar #banner {
+    display: none;
   }
 
   .leaflet-top.leaflet-right {
     top: 10px !important;
-    z-index: 0;
   }
 
   .content_map {
@@ -180,21 +149,38 @@ body.small {
     top: auto;
   }
 
-  /* Rules for the sign-up page */
+  &.site-about #content .attr h1 {
+    font-size: 28px;
+  }
+
+}
 
-  &.user-new,
-  &.user-create {
-    .col6 {
+@media (max-width: 767.98px) {
+  body.map-layout {
+    #sidebar, #map {
+      position: relative;
+      overflow-x: hidden;
       width: 100%;
+      height: 50%;
     }
 
-    .aside {
-      display: none;
+    .overlay-sidebar {
+      #sidebar {
+        position: absolute;
+        width: 300px;
+        height: auto;
+        overflow: hidden;
+      }
+
+      #map {
+        height: 100%;
+      }
     }
-  }
 
-  &.site-about #content .attr h1 {
-    font-size: 28px;
+    #map-ui {
+      z-index: 9999;
+      width: 100%;
+      overflow-y: scroll;
+    }
   }
-
 }