Coding style
This commit is contained in:
@@ -188,7 +188,7 @@ a.ol-full-screen-true:after {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* invisible but not hidden */
|
/* invisible but not hidden */
|
||||||
.olHasToolTip [role=tooltip] {
|
.ol-has-tooltip [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);
|
||||||
@@ -203,7 +203,7 @@ a.ol-full-screen-true:after {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* show a tooltip offset to below and right */
|
/* show a tooltip offset to below and right */
|
||||||
.olHasToolTip:hover [role=tooltip], .olHasToolTip:focus [role=tooltip] {
|
.ol-has-tooltip:hover [role=tooltip], .ol-has-tooltip:focus [role=tooltip] {
|
||||||
clip: auto;
|
clip: auto;
|
||||||
padding: .2em .4em;
|
padding: .2em .4em;
|
||||||
height: auto;
|
height: auto;
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ ol.control.Zoom = function(opt_options) {
|
|||||||
'role' : 'tooltip'
|
'role' : 'tooltip'
|
||||||
}, zoomInTipLabel);
|
}, zoomInTipLabel);
|
||||||
var inElement = goog.dom.createDom(goog.dom.TagName.BUTTON, {
|
var inElement = goog.dom.createDom(goog.dom.TagName.BUTTON, {
|
||||||
'class': className + '-in olHasToolTip',
|
'class': className + '-in ol-has-tooltip',
|
||||||
'name' : 'ZoomIn',
|
'name' : 'ZoomIn',
|
||||||
'type' : 'button'
|
'type' : 'button'
|
||||||
}, tTipZoomIn, zoomInLabel);
|
}, tTipZoomIn, zoomInLabel);
|
||||||
@@ -63,7 +63,7 @@ ol.control.Zoom = function(opt_options) {
|
|||||||
'type' : 'button'
|
'type' : 'button'
|
||||||
}, zoomOutTipLabel);
|
}, zoomOutTipLabel);
|
||||||
var outElement = goog.dom.createDom(goog.dom.TagName.BUTTON, {
|
var outElement = goog.dom.createDom(goog.dom.TagName.BUTTON, {
|
||||||
'class': className + '-out olHasToolTip',
|
'class': className + '-out ol-has-tooltip',
|
||||||
'name' : 'ZoomOut'
|
'name' : 'ZoomOut'
|
||||||
}, tTipsZoomOut, zoomOutLabel);
|
}, tTipsZoomOut, zoomOutLabel);
|
||||||
goog.events.listen(outElement, [
|
goog.events.listen(outElement, [
|
||||||
|
|||||||
Reference in New Issue
Block a user