Updating zoom style for mobile examples.
Sticking with sans-serif gives a more uniform experience on desktop Webkit, Safari on iOS, and the default Android browser. Using `-webkit-tap-highlight-color` gets rid of the blue highlight when clicking on the map tiles or zoom control.
This commit is contained in:
@@ -3,28 +3,26 @@ div.olControlZoom {
|
|||||||
top: 8px;
|
top: 8px;
|
||||||
left: 8px;
|
left: 8px;
|
||||||
}
|
}
|
||||||
|
* {
|
||||||
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||||||
|
}
|
||||||
div.olControlZoom a {
|
div.olControlZoom a {
|
||||||
display: block;
|
display: block;
|
||||||
margin: 1px;
|
margin: 1px;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
color: white;
|
color: white;
|
||||||
font-size: 26px;
|
font-size: 28px;
|
||||||
font-family: 'Lucida Grande', Verdana, Geneva, Lucida, Arial, Helvetica, sans-serif;
|
font-family: sans-serif;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
width: 32px;
|
width: 32px;
|
||||||
line-height: 24px;
|
line-height: 28px;
|
||||||
background: #666666; /* fallback for IE - IE6 requires background shorthand*/
|
background: #666666; /* fallback for IE - IE6 requires background shorthand*/
|
||||||
background: rgba(0, 0, 0, 0.3);
|
background: rgba(0, 0, 0, 0.3);
|
||||||
filter: alpha(opacity=60);
|
filter: alpha(opacity=60);
|
||||||
}
|
}
|
||||||
div.olControlZoom a:hover {
|
|
||||||
background: #444444; /* fallback for IE */
|
|
||||||
background: rgba(0, 0, 0, 0.5);
|
|
||||||
filter: alpha(opacity=80);
|
|
||||||
}
|
|
||||||
a.olControlZoomIn {
|
a.olControlZoomIn {
|
||||||
border-radius: 4px 4px 0 0;
|
border-radius: 4px 4px 0 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user