X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e9d3d4d19bcdf91732db57ecaa8d4831c7f585a3..cb3992f5a10d821d5015a896771cd34ca068572e:/public/openlayers/theme/default/style.css diff --git a/public/openlayers/theme/default/style.css b/public/openlayers/theme/default/style.css index ba75a09da..8eab0e35b 100644 --- a/public/openlayers/theme/default/style.css +++ b/public/openlayers/theme/default/style.css @@ -1,4 +1,4 @@ -div.olMapViewport { +div.olLayerDiv { -moz-user-select: none } @@ -10,18 +10,43 @@ div.olMapViewport { left: 2px; bottom: 15px; } - +.olControlAttribution { + font-size: smaller; + right: 3px; + bottom: 4.5em; + position: absolute; + display: block; +} .olControlScale { right: 3px; bottom: 3em; display: block; position: absolute; + font-size: smaller; +} +.olControlScaleLine { + left: 10px; + bottom: 15px; + font-size: xx-small; } +.olControlScaleLineBottom { + border: solid 2px black; + border-bottom: none; + margin-top:-2px; + text-align: center; +} +.olControlScaleLineTop { + border: solid 2px black; + border-top: none; + text-align: center; +} + .olControlPermalink { right: 3px; bottom: 1.5em; display: block; position: absolute; + font-size: smaller; } div.olControlMousePosition { @@ -56,9 +81,19 @@ div.olControlMousePosition { } .olControlOverviewMapExtentRectangle { - cursor: move; + overflow: hidden; + background-image: url("img/blank.gif"); + cursor: move; border: 2px dotted red; } +.olControlOverviewMapRectReplacement { + overflow: hidden; + cursor: move; + background-image: url("img/overview_replacement.gif"); + background-repeat: no-repeat; + background-position: center; +} + .olLayerGeoRSSDescription { float:left; width:100%; @@ -69,6 +104,7 @@ div.olControlMousePosition { float:right; color:gray; font-size:1.2em; + margin-right:6px; font-family:sans-serif; } .olLayerGeoRSSTitle { @@ -77,6 +113,11 @@ div.olControlMousePosition { .olPopupContent { padding:5px; + overflow: auto; +} +.olControlNavToolbar { + width:0px; + height:0px; } .olControlNavToolbar div { display:block; @@ -87,6 +128,31 @@ div.olControlMousePosition { position: relative; } +.olControlNavigationHistoryPreviousItemActive { + background-image: url("img/view_previous_on.png"); + background-repeat: no-repeat; + width: 24px; + height: 24px; +} +.olControlNavigationHistoryPreviousItemInactive { + background-image: url("img/view_previous_off.png"); + background-repeat: no-repeat; + width: 24px; + height: 24px; +} +.olControlNavigationHistoryNextItemActive { + background-image: url("img/view_next_on.png"); + background-repeat: no-repeat; + width: 24px; + height: 24px; +} +.olControlNavigationHistoryNextItemInactive { + background-image: url("img/view_next_off.png"); + background-repeat: no-repeat; + width: 24px; + height: 24px; +} + .olControlNavToolbar .olControlNavigationItemActive { background-image: url("img/panning-hand-on.png"); background-repeat: no-repeat; @@ -117,34 +183,64 @@ div.olControlMousePosition { margin: 5px; } .olControlEditingToolbar .olControlNavigationItemActive { - background-image: url("img/pan_on.png"); + background-image: url("img/editing_tool_bar.png"); background-repeat: no-repeat; + background-position: -103px -23px; } .olControlEditingToolbar .olControlNavigationItemInactive { - background-image: url("img/pan_off.png"); + background-image: url("img/editing_tool_bar.png"); background-repeat: no-repeat; + background-position: -103px -0px; } .olControlEditingToolbar .olControlDrawFeaturePointItemActive { - background-image: url("img/draw_point_on.png"); + background-image: url("img/editing_tool_bar.png"); background-repeat: no-repeat; + background-position: -77px -23px; } .olControlEditingToolbar .olControlDrawFeaturePointItemInactive { - background-image: url("img/draw_point_off.png"); + background-image: url("img/editing_tool_bar.png"); background-repeat: no-repeat; + background-position: -77px -0px; } .olControlEditingToolbar .olControlDrawFeaturePathItemInactive { - background-image: url("img/draw_line_off.png"); + background-image: url("img/editing_tool_bar.png"); background-repeat: no-repeat; + background-position: -51px 0px; } .olControlEditingToolbar .olControlDrawFeaturePathItemActive { - background-image: url("img/draw_line_on.png"); + background-image: url("img/editing_tool_bar.png"); background-repeat: no-repeat; + background-position: -51px -23px; } .olControlEditingToolbar .olControlDrawFeaturePolygonItemInactive { - background-image: url("img/draw_polygon_off.png"); + background-image: url("img/editing_tool_bar.png"); background-repeat: no-repeat; + background-position: -26px 0px; } .olControlEditingToolbar .olControlDrawFeaturePolygonItemActive { - background-image: url("img/draw_polygon_on.png"); + background-image: url("img/editing_tool_bar.png"); background-repeat: no-repeat; + background-position: -26px -23px ; +} + +.olHandlerBoxZoomBox { + border: 2px solid red; + position: absolute; + background-color: white; + opacity: 0.50; + font-size: 1px; + filter: alpha(opacity=50); +} + +/* + * Due to current limitations in the OpenLayers code, you can only + * replace this image with another image which is 17px x 17px. + */ +.olPopupCloseBox { + background: url("img/close.gif") no-repeat; + cursor: pointer; +} + +.olControlNoSelect { + -moz-user-select: none; }