]> git.openstreetmap.org Git - rails.git/commitdiff
Adjust tooltip style
authorJohn Firebaugh <john.firebaugh@gmail.com>
Wed, 7 Aug 2013 23:13:55 +0000 (16:13 -0700)
committerTom Hughes <tom@compton.nu>
Wed, 7 Aug 2013 23:17:52 +0000 (00:17 +0100)
app/assets/stylesheets/common.css.scss

index 753f89671353ac56b170d4403165a98437eab13f..93179f78dcbcde42340b6439cb83a3c7eaf13862 100644 (file)
@@ -528,84 +528,85 @@ a.donate {
 /* Rules for bootstrap tooltips */
 
 .tooltip {
 /* Rules for bootstrap tooltips */
 
 .tooltip {
-    position: absolute;
-    display: none;
-    color:#333;
-    text-align: left;
-    font-size: 12px;
+  position: absolute;
+  display: none;
+  color: #333;
+  text-align: left;
+  font-size: 12px;
+  max-width: 250px;
 }
 
 .tooltip.in {
 }
 
 .tooltip.in {
-    opacity: 0.8;
-    z-index: 1030;
-    height: auto;
-    display: block;
+  opacity: 0.8;
+  z-index: 1030;
+  height: auto;
+  display: block;
 }
 
 .tooltip.top {
 }
 
 .tooltip.top {
-    margin-top: -20px;
-    text-align: center;
+  margin-top: -10px;
+  text-align: center;
 }
 
 .tooltip.right {
 }
 
 .tooltip.right {
-    margin-left: 20px;
+  margin-left: 10px;
 }
 
 .tooltip.bottom {
 }
 
 .tooltip.bottom {
-    margin-top: 20px;
-    text-align: center;
+  margin-top: 10px;
+  text-align: center;
 }
 
 .tooltip.left {
 }
 
 .tooltip.left {
-    margin-left: -20px;
-    text-align: right;
+  margin-left: -10px;
+  text-align: right;
 }
 
 .tooltip-inner {
 }
 
 .tooltip-inner {
-    display: inline-block;
-    padding: 10px;
-    font-weight: normal;
-    background-color: white;
+  display: inline-block;
+  padding: 10px;
+  font-weight: normal;
+  background-color: white;
 }
 
 .tooltip-arrow {
 }
 
 .tooltip-arrow {
-    position: absolute;
-    width: 0;
-    height: 0;
-    border-color: transparent;
-    border-style: solid;
+  position: absolute;
+  width: 0;
+  height: 0;
+  border-color: transparent;
+  border-style: solid;
 }
 
 .tooltip.top .tooltip-arrow {
 }
 
 .tooltip.top .tooltip-arrow {
-    bottom: -5px;
-    left: 50%;
-    margin-left: -5px;
-    border-top-color: white;
-    border-width: 5px 5px 0;
+  bottom: -5px;
+  left: 50%;
+  margin-left: -5px;
+  border-top-color: white;
+  border-width: 5px 5px 0;
 }
 
 .tooltip.right .tooltip-arrow {
 }
 
 .tooltip.right .tooltip-arrow {
-    top: 50%;
-    left: -5px;
-    margin-top: -5px;
-    border-right-color: white;
-    border-width: 5px 5px 5px 0;
+  top: 50%;
+  left: -5px;
+  margin-top: -5px;
+  border-right-color: white;
+  border-width: 5px 5px 5px 0;
 }
 
 .tooltip.left .tooltip-arrow {
 }
 
 .tooltip.left .tooltip-arrow {
-    top: 50%;
-    right: -5px;
-    margin-top: -5px;
-    border-left-color: white;
-    border-width: 5px 0 5px 5px;
+  top: 50%;
+  right: -5px;
+  margin-top: -5px;
+  border-left-color: white;
+  border-width: 5px 0 5px 5px;
 }
 
 .tooltip.bottom .tooltip-arrow {
 }
 
 .tooltip.bottom .tooltip-arrow {
-    top: -5px;
-    left: 50%;
-    margin-left: -5px;
-    border-bottom-color: white;
-    border-width: 0 5px 5px;
+  top: -5px;
+  left: 50%;
+  margin-left: -5px;
+  border-bottom-color: white;
+  border-width: 0 5px 5px;
 }
 
 /* Rules for Leaflet maps */
 }
 
 /* Rules for Leaflet maps */