]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/stylesheets/common.css.scss
Fine tune button styling for note popups
[rails.git] / app / assets / stylesheets / common.css.scss
index 148d4368a02da5f93a6bf4068959a1b673487c53..362071988b7314d0ccb6b6af127e963d38829b3a 100644 (file)
@@ -391,7 +391,7 @@ table {
 
 .donate {
   display: block;
-  width: 164px;
+  width: 163px;
   padding: $lineheight/4;
   border: 1px solid #AED1A0;
   background: #cbeea7;
@@ -440,7 +440,7 @@ table {
 }
 
 #tabnav {
-  height: 30px;
+  height: 29px;
   margin-bottom:0;
   overflow: hidden;
   li {
@@ -1034,6 +1034,7 @@ ul.results-list li { border-bottom: 1px solid #ccc; }
 /* Rules for the user profile page */
 
 #userinformation {
+
   min-height: 100px;
   .userinformation-inner {
     float: left;
@@ -1072,13 +1073,13 @@ ul.results-list li { border-bottom: 1px solid #ccc; }
 }
 
 .activity-details p {
-  margin-left: 72px;
+  margin-left: 70px;
   margin-bottom: 0;
 }
 
 #friends-container .contact-activity ul {
-  margin-left: 72px;
-  }
+  margin-left: 70px;
+}
 
 .user-view {
   p#no_home_location {
@@ -1101,16 +1102,11 @@ ul.results-list li { border-bottom: 1px solid #ccc; }
 
 .user_popup {
   min-width: 200px;
-
   p {
-    padding-top: 0;
-    padding-bottom: 5px;
-    margin-top: 0;
-    margin-bottom: 0;
-    margin-left: 60px;
+    padding: 0 0 5px 0;
+    margin-top: 0 0 0 60px;
     font-size: 12px;
   }
-
   img.user_thumbnail {
     float: left;
     margin: 0 $lineheight/2 0 0;
@@ -1599,6 +1595,8 @@ ul.secondary-actions {
 
 .inner12 { padding: $lineheight/2 $lineheight;}
 
+.inner11 { padding: $lineheight/2;}
+
 .inner02 { padding: 0 $lineheight;}
 
 /* Utility for general button styles */
@@ -1642,27 +1640,40 @@ a.button {
   .button {
     box-sizing: border-box;
     float: left;
-    margin-bottom:0;
+    border-radius: 0;
+    margin:0;
     min-width: 100px;
     max-width: 150px;
+    border-right:1px solid white;
   }
   input:first-child,
   .button:first-child {
     border-radius:2px 0 0 2px;
-    border-right:1px solid white;
-    margin-left: 0px;
   }
   input:last-child,
   .button:last-child {
     border-radius:0 2px 2px 0;
-    margin-right: 0px;
+    border-right-width: 0;
   }
   input:only-child,
-  .button:only-child {
+  .button:only-child,
+  *[value="Hide"] + input:last-child,
+  *[value="Hide"] + .button:last-child {
     border-radius:2px;
-    margin-right: 0px;
+    border-right-width: 0;
+  }
+    /* if a 3-button set has a hidden middle button */
+  *[value="Hide"] + input:nth-child(3),
+  *[value="Hide"] + .button:nth-child(3) {
+    border-radius:0 2px 2px 0;
+    border-right-width: 0;
+  }
+  /* if a 3-button set starts with a hidden button */
+  *[value="Hide"] + input:nth-child(2):not(:last-child),
+  *[value="Hide"] + .button:nth-child(2):not(:last-child) {
+    border-radius:2px 0 0 2px;
+    border-right-width: 1px solid white;
   }
-
 }
 
 /* Rules for doing distinct colour of alternate table rows */
@@ -1923,16 +1934,8 @@ a.button {
   border-bottom: 1px solid #ccc;
 }
 
-.ads {
-  width: 370px;
-  position: absolute;
-  left: 0%;
-}
-
 .ad {
-  float: left;
-  height: 120px;
-  padding: $lineheight/2;
-  border: 0px;
+  height: 100px;
+  border: 0;
   background: #fff;
 }