]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/openlayers/theme/openstreetmap/SimpleLayerSwitcher.css.scss
Use a custom OpenLayers theme
[rails.git] / app / assets / openlayers / theme / openstreetmap / SimpleLayerSwitcher.css.scss
diff --git a/app/assets/openlayers/theme/openstreetmap/SimpleLayerSwitcher.css.scss b/app/assets/openlayers/theme/openstreetmap/SimpleLayerSwitcher.css.scss
new file mode 100644 (file)
index 0000000..48e730f
--- /dev/null
@@ -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/openstreetmap/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;
+}