]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/stylesheets/common.css.scss
Tighten vertical space
[rails.git] / app / assets / stylesheets / common.css.scss
index 9ba10f38b9a0a4cddd2f4eaccf5f0d5681765239..42966accd70debe5d19ba7b4035ab29c7dc38400 100644 (file)
@@ -6,7 +6,7 @@ $offwhite: #f4f4ff;
 $blue: #7092FF;
 $lightblue: #B8C5F0;
 $grey: #AAA;
-$keyline: #CCC;
+$lightgrey: #CCC;
 $hovercolor: 20%;
 
 /* Styles common to large and small screens */
@@ -384,7 +384,7 @@ table {
     min-width: 0;
     text-indent: -1000px;
     overflow: hidden;
-    background: image-url("sprite.png") 0 0 no-repeat;
+    background: image-url("sprite.png") -2px -2px no-repeat;
     position: absolute;
     top: $lineheight/4;
     right: $lineheight/4;
@@ -476,8 +476,7 @@ a.donate {
 
 .site-index #tabnav a#viewanchor,
 .site-edit #tabnav a#editanchor,
-.changeset-list #tabnav a#historyanchor,
-.site-export #tabnav a#exportanchor {
+.changeset-list #tabnav a#historyanchor {
   border-bottom: 1px solid #aaa;
   background: #9ed485;
   color: #000;
@@ -540,6 +539,7 @@ a.donate {
   background-color: rgba(255,255,255,.8);
   border-radius: 4px;
   margin-bottom: 10px;
+  outline: none;
 }
 
 .leaflet-control .zoomin,
@@ -600,7 +600,16 @@ a.donate {
     color:#222;
     border:1px solid #ddd;
   }
+}
+
+.layers-ui,
+.share-ui {
+  ul, li:last-child, p:last-child {
+    margin-bottom: 0;
+  }
+}
 
+.layers-ui {
   li {
     border-radius: 4px;
     overflow: hidden;
@@ -609,7 +618,7 @@ a.donate {
 
   label {
     display: block;
-    padding: 5px;
+    padding: 5px 5px 5px 7px;
     background-color: #eee;
     cursor: pointer;
   }
@@ -618,10 +627,6 @@ a.donate {
     background-color: #ccc;
   }
 
-  input[type=text] {
-    width:220px;
-  }
-
   .base-layers {
     .leaflet-container {
       width: 100%;
@@ -635,9 +640,20 @@ a.donate {
   .share-link {
     li {
       display: inline-block;
+      text-align: center;
       width: 50%;
     }
   }
+
+  #embed_html {
+    resize: vertical;
+    font-family: monospace;
+    font-size: small;
+  }
+
+  #mapnik_scale {
+    width: 100px;
+  }
 }
 
 .site-index .leaflet-top,
@@ -675,7 +691,7 @@ a.donate {
   z-index: 10000;
   position: absolute;
   background-color: #ffffff;
-  border: 1px solid $keyline;
+  border: 1px solid $lightgrey;
   border-top: 0px;
   ul {
     margin: 0px;
@@ -708,9 +724,9 @@ a.donate {
   display: none;
   position: relative;
   float: left;
-  overflow: auto;
-  border-right: 1px solid $keyline;
+  border-right: 1px solid $lightgrey;
   width: 33.3333%;
+  height: 100%;
   ul {
     margin-bottom: 0;
     &:last-child {
@@ -748,6 +764,8 @@ a.donate {
 #sidebar_content {
   position: relative;
   margin-bottom: 20px;
+  overflow: auto;
+  height: 100%;
   width: 100%;
   h4 {
     padding: 0 $lineheight $lineheight/2 $lineheight;
@@ -837,7 +855,7 @@ ul.results-list li { border-bottom: 1px solid #ccc; }
 .export_area_inputs {
   margin-bottom: $lineheight/2;
   input[type="text"] {
-    width: 60px;
+    width: 80px;
     margin-bottom: 5px;
   }
 }
@@ -846,20 +864,6 @@ ul.results-list li { border-bottom: 1px solid #ccc; }
   margin: $lineheight/4;
 }
 
-.export_details input[type="text"]#export_html_text {
-  width: 100%;
-}
-
-#sidebar #marker_inputs li:last-child {
-  margin-bottom: $lineheight/2;
-}
-
-#export_osm,
-#export_mapnik,
-#export_osmarender {
-  display: none;
-}
-
 /* Rules for the main content area */
 
 #content {
@@ -1032,7 +1036,7 @@ ul.results-list li { border-bottom: 1px solid #ccc; }
   h4, p {
     margin-bottom: $lineheight/4;
   }
-  p, ul, .bbox, .geo {
+  ul, .bbox, .geo {
     display: inline-block;
     vertical-align: top;
     max-width: 65%;
@@ -1042,6 +1046,7 @@ ul.results-list li { border-bottom: 1px solid #ccc; }
     margin-bottom: 0;
   }
   h4 {
+    float: left;
     width: 33.3333%;
     display: inline-block;
     vertical-align: top;
@@ -1438,7 +1443,7 @@ ul.results-list li { border-bottom: 1px solid #ccc; }
   }
   tr td {
     height: 30px;
-    border-right: 1px solid $keyline;
+    border-right: 1px solid $lightgrey;
   }
 }
 
@@ -1473,7 +1478,7 @@ ul.results-list li { border-bottom: 1px solid #ccc; }
 .message-read .message-buttons {
   margin-top: $lineheight;
   padding-top: $lineheight;
-  border-top: 1px solid $keyline;
+  border-top: 1px solid $lightgrey;
 }
 
 .message-read .buttons .mark-unread-button {
@@ -1565,7 +1570,7 @@ ul.results-list li { border-bottom: 1px solid #ccc; }
   .form-divider {
     margin-top: $lineheight;
     padding-top: $lineheight;
-    border-top: 1px solid $keyline;
+    border-top: 1px solid $lightgrey;
   }
   .form-row {
     margin-bottom: $lineheight/2;
@@ -1606,7 +1611,6 @@ textarea {
 textarea {
   padding: 5px;
   width: 100%;
-  height: 100% !important;
 }
 
 /* Rules for user images */
@@ -1700,6 +1704,7 @@ a.button {
   display: inline-block;
   line-height: 20px;
   padding: $lineheight/4 $lineheight/2;
+  min-height: 20px + $lineheight/2;
   min-width: 120px;
   margin: 0 0 $lineheight/2 0;
   color: white;
@@ -1718,7 +1723,10 @@ a.button {
     }
   }
   &:disabled {
-    background: $lightblue;
+    background: $lightgrey;
+    &:hover {
+      background: $lightgrey;
+    }
   }
   &:last-child {
     margin-bottom: 0;
@@ -1736,8 +1744,11 @@ a.button {
     border-radius: 0;
     margin:0;
     min-width: 100px;
-    max-width: 150px;
+    max-width: 180px;
     border-right:1px solid white;
+    text-overflow: ellipsis;
+    white-space: nowrap;
+    overflow: hidden;
   }
   input:first-child,
   .button:first-child {
@@ -1842,7 +1853,6 @@ a.button {
   }
 
   ul, ol {
-    font-style: italic;
     padding-left: $lineheight;
     margin-bottom: $lineheight;
     margin-left: $lineheight;
@@ -1969,7 +1979,6 @@ a.button {
     left: $lineheight/4;
     min-width: 15px;
     min-height: 15px;
-    background: image-url("sprite.png") 0 -45px no-repeat;
   }
 
   .permalink span {