Explicit box model definition for box model dependent sizing

The zoom in/out tooltips are clipped when a css reset sets the
box-sizing to anything other than content-box. This breaks the
sizing of these tooltips, because they rely on content-box
sizing. This issue can e.g. be seen when using a bootstrap 3.x
bootstrap.css
This commit is contained in:
ahocevar
2014-02-26 19:22:24 +01:00
parent f9a9f70a43
commit 3544f70604

View File

@@ -198,6 +198,9 @@ button.ol-full-screen-true:after {
/* show a tooltip offset to below and right */
.ol-has-tooltip:hover [role=tooltip], .ol-has-tooltip:focus [role=tooltip] {
-moz-box-sizing: content-box;
-webkit-box-sizing: content-box;
box-sizing: content-box;
clip: auto;
padding: 0 .4em;
font-size: .8em;