]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/stylesheets/common.css.scss
Introduce a new layer switcher
[rails.git] / app / assets / stylesheets / common.css.scss
index b6aaf7371b4ce80768cb503b255127340eb9053c..ef2c46a8d8364462fc368a8b87fe200bd3468280 100644 (file)
@@ -1113,3 +1113,50 @@ 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;
+}