forked from openlayers/ol2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request openlayers#321 from tonio/zoomdefault
Make Zoom control be default instead of PanZoom.
- Loading branch information
Showing
7 changed files
with
68 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,42 @@ | ||
div.olControlZoomPanel { | ||
height: 108px; | ||
width: 36px; | ||
div.olControlZoom { | ||
position: absolute; | ||
top: 20px; | ||
left: 20px; | ||
top: 8px; | ||
left: 8px; | ||
} | ||
div.olControlZoomPanel div { | ||
width: 36px; | ||
height: 36px; | ||
background-image: url(img/mobile-zoombar.png); | ||
left: 0; | ||
* { | ||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); | ||
} | ||
div.olControlZoomPanel .olControlZoomInItemInactive { | ||
top: 0; | ||
background-position: 0 0; | ||
div.olControlZoom a { | ||
display: block; | ||
margin: 1px; | ||
padding: 0; | ||
color: white; | ||
font-size: 28px; | ||
font-family: sans-serif; | ||
font-weight: bold; | ||
text-decoration: none; | ||
text-align: center; | ||
height: 32px; | ||
width: 32px; | ||
line-height: 28px; | ||
text-shadow: 0 0 3px rgba(0,0,0,0.8); | ||
background: #666666; /* fallback for IE - IE6 requires background shorthand*/ | ||
background: rgba(0, 0, 0, 0.3); | ||
filter: alpha(opacity=60); | ||
} | ||
div.olControlZoomPanel .olControlZoomToMaxExtentItemInactive { | ||
top: 36px; | ||
background-position: 0 -36px; | ||
a.olControlZoomIn { | ||
border-radius: 4px 4px 0 0; | ||
} | ||
div.olControlZoomPanel .olControlZoomOutItemInactive { | ||
top: 72px; | ||
background-position: 0 -72px; | ||
a.olControlZoomOut { | ||
border-radius: 0 0 4px 4px; | ||
} | ||
.olTileImage { | ||
-webkit-transition: opacity 0.2s linear; | ||
-moz-transition: opacity 0.2s linear; | ||
-o-transition: opacity 0.2s linear; | ||
transition: opacity 0.2s linear; | ||
div.olControlZoom a:hover { | ||
background: #444444; /* fallback for IE */ | ||
background: rgba(0, 0, 0, 0.5); | ||
filter: alpha(opacity=80); | ||
} | ||
@media only screen and (max-width: 600px) { | ||
div.olControlZoom a:hover { | ||
background: rgba(0, 0, 0, 0.3); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters