]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/stylesheets/small.css.scss
Browse section pagination
[rails.git] / app / assets / stylesheets / small.css.scss
index e6d2c92d4447d573e1e93f549b9e5ba137c3836c..51549f87fc5ae1367a82ab5b9262493090529bd9 100644 (file)
@@ -1,5 +1,7 @@
 /* Styles specific to a small screen, such as iPhone, Android, etc... */
 
+* { -webkit-appearance: none; }
+
 /* Default rules for the body of every page */
 
 .column-1 {
 
 /* Rules for the whole left sidebar, including the logo */
 
+#menu-icon {
+  display: inline-block !important;
+}
+
+
 nav.primary,
-nav.secondary,
-#sidebar {
+nav.secondary {
+  float: none !important;
+  position: relative;
+  display: block;
+  clear: both;
+}
+
+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;
+    }
+  }
+}
+
+.mobile-hide { display: none !important; }
+
+nav.primary {
+  padding: 0;
+  ul, li {
+    border: none;
+    border-radius: 0;
+    width: 100%;
+  }
+  ul {
+    border-top: 1px solid #eee;
+    li {
+      border-bottom: 1px solid #eee;
+      border-right: none;
+      > a {
+        border-radius: 0;
+        width: 100%;
+        text-align: center;
+        font-size: 15px;
+      }
+    }
+  }
+}
+
+nav.secondary {
+  .user-menu {
+    display: block;
+    width: 100%;
+    margin-left: 0;
+    > li {
+      width: 49%;
+      > a { 
+        width: 100%; 
+        text-align: center;
+      }
+    }
+  }
+}
+
+#compact-secondary-nav {
   display: none;
 }
+.compact-hide {
+  display: inline-block;
+}
+
+#content { margin-top: 58px; }
+
+.map-layout {
+  #sidebar {
+    width: 100%;
+    position: fixed;
+    top: 58px;
+    height: 370px;
+    overflow-x: hidden;
+    z-index: 1;
+    background: #fff;
+    p.large-text {
+      font-size: 1.2em;
+      line-height: 1.4em;
+    }
+    &.minimized {
+      background: none;
+    }
+  }
+  #content {
+    position: fixed;
+    top: 0;
+    display: block;
+    height: 100%;
+    margin-top: 0;
+    padding-top: 58px;
+  }
+  #map {
+    width: 100%;
+    // height: 100%;
+    // position: fixed;
+  }
+}
+
+.leaflet-top.leaflet-right {
+  top: 10px !important;
+  z-index: 0;
+}
 
 .content_map {
   width: 100%;
@@ -95,3 +207,7 @@ nav.secondary,
     display: none;
   }
 }
+
+.site-about #content .attr h1 {
+  font-size: 28px;
+}