Rearrange layer switcher assets
This commit is contained in:
parent
8f4ed911e0
commit
bd14832cb5
6 changed files with 49 additions and 48 deletions
|
@ -1,6 +1,6 @@
|
||||||
//= require OpenLayers
|
//= require OpenLayers
|
||||||
//= require OpenStreetMap
|
//= require OpenStreetMap
|
||||||
//= require simplelayerswitcher
|
//= require SimpleLayerSwitcher
|
||||||
|
|
||||||
OpenLayers.Util.imageURLs = {
|
OpenLayers.Util.imageURLs = {
|
||||||
"404.png": "<%= asset_path 'img/404.png' %>",
|
"404.png": "<%= asset_path 'img/404.png' %>",
|
||||||
|
|
|
@ -0,0 +1,44 @@
|
||||||
|
.SimpleLayerSwitcher {
|
||||||
|
position: absolute;
|
||||||
|
top: 10px;
|
||||||
|
right: 10px;
|
||||||
|
background: #fff;
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
min-width: 150px;
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.SimpleLayerSwitcher a.basey {
|
||||||
|
display: block;
|
||||||
|
text-decoration: none;
|
||||||
|
color: #838383;
|
||||||
|
padding: 2px 5px 2px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.SimpleLayerSwitcher a.basey-on {
|
||||||
|
color: #000;
|
||||||
|
background-color: #fff;
|
||||||
|
background-image: image-url("theme/default/img/carat.png");
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: 7px 9px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.SimpleLayerSwitcher a.basey-off {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.SimpleLayerSwitcher:hover a {
|
||||||
|
border-top: 1px solid #eee;
|
||||||
|
}
|
||||||
|
|
||||||
|
.SimpleLayerSwitcher a:hover {
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.SimpleLayerSwitcher:hover a:first-child {
|
||||||
|
border-top: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.SimpleLayerSwitcher:hover a.basey-off {
|
||||||
|
display: block;
|
||||||
|
}
|
Before Width: | Height: | Size: 279 B After Width: | Height: | Size: 279 B |
|
@ -1,3 +1,7 @@
|
||||||
|
/*
|
||||||
|
*= require theme/default/SimpleLayerSwitcher
|
||||||
|
*/
|
||||||
|
|
||||||
div.olMap {
|
div.olMap {
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
|
|
|
@ -1113,50 +1113,3 @@ abbr.geo {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Rules for the layer switcher */
|
|
||||||
|
|
||||||
.SimpleLayerSwitcher {
|
|
||||||
position:absolute;
|
|
||||||
top:10px;
|
|
||||||
right:10px;
|
|
||||||
background:#fff;
|
|
||||||
border:1px solid #ccc;
|
|
||||||
min-width:150px;
|
|
||||||
background: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.SimpleLayerSwitcher a.basey {
|
|
||||||
display:block;
|
|
||||||
text-decoration:none;
|
|
||||||
color:#838383;
|
|
||||||
padding:2px 5px 2px 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.SimpleLayerSwitcher a.basey-on {
|
|
||||||
color:#000;
|
|
||||||
background-color: #fff;
|
|
||||||
background-image: url('carat.png');
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
background-position: 7px 9px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.SimpleLayerSwitcher a.basey-off {
|
|
||||||
display:none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.SimpleLayerSwitcher:hover a {
|
|
||||||
border-top:1px solid #eee;
|
|
||||||
}
|
|
||||||
|
|
||||||
.SimpleLayerSwitcher a:hover {
|
|
||||||
background-color:#f5f5f5;
|
|
||||||
}
|
|
||||||
|
|
||||||
.SimpleLayerSwitcher:hover a:first-child {
|
|
||||||
border-top:none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.SimpleLayerSwitcher:hover a.basey-off {
|
|
||||||
display:block;
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue