Better integration of button tooltips

This commit is contained in:
Antoine Abt
2014-02-17 16:43:35 +01:00
parent 18c2ffe522
commit f8cfa9a24d
+21 -11
View File
@@ -100,6 +100,11 @@
border-radius: 4px; border-radius: 4px;
padding: 2px; padding: 2px;
} }
.ol-zoom:hover,
.ol-zoom-extent:hover,
.ol-full-screen:hover {
background-color: rgba(255,255,255,0.5);
}
.ol-zoom { .ol-zoom {
top: 8px; top: 8px;
left: 8px; left: 8px;
@@ -138,6 +143,10 @@
background-color: rgba(0,60,136,0.5); background-color: rgba(0,60,136,0.5);
border: none; border: none;
} }
.ol-zoom button::-moz-focus-inner {
border: none;
padding: 0;
}
.ol-zoom-extent a { .ol-zoom-extent a {
font-size: 16px; font-size: 16px;
line-height: 22px; line-height: 22px;
@@ -178,7 +187,7 @@ a.ol-full-screen-true:after {
} }
/* invisible but not hidden */ /* invisible but not hidden */
.olHasToolTip span, .olHasToolTip_b_r span { .olHasToolTip [role=tooltip] {
position: absolute; position: absolute;
clip: rect(1px 1px 1px 1px); /* < IE8 */ clip: rect(1px 1px 1px 1px); /* < IE8 */
clip: rect(1px, 1px, 1px, 1px); clip: rect(1px, 1px, 1px, 1px);
@@ -188,27 +197,28 @@ a.ol-full-screen-true:after {
width: 1px; width: 1px;
overflow: hidden; overflow: hidden;
font-weight: normal; font-weight: normal;
font-size: 16px; font-size: 14px;
text-shadow: 0 0 2px #fff;
} }
/* show a tooltip offset to below and right */ /* show a tooltip offset to below and right */
.olHasToolTip:hover span, .olHasToolTip:focus span , .olHasToolTip:hover [role=tooltip], .olHasToolTip:focus [role=tooltip] {
.olHasToolTip_b_r:hover span , .olHasToolTip_b_r:focus span {
clip: auto; clip: auto;
padding: 3px; padding: .2em .4em;
height: auto; height: auto;
width: auto; width: auto;
z-index: 1100; z-index: 1100;
max-height: 100px; max-height: 100px;
white-space: nowrap; white-space: nowrap;
display: inline-block; display: inline-block;
background-color: #eee; background: #FFF;
background: rgba(255,255,255,0.5);
color: #000; color: #000;
border: 1px solid #333; border: 3px solid rgba(255, 255, 255, 0.0);
border-radius: 5px; border-left-width: 0;
box-shadow: 2px 2px 2px #333; border-radius: 0 4px 4px 0;
bottom: -2em; bottom: .8em;
left: 1em; left: 2em;
} }
.ol-zoomslider { .ol-zoomslider {