]> 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 fe0e074b9fc35a522af3cfcdbfff1a40a76218e9..ef2c46a8d8364462fc368a8b87fe200bd3468280 100644 (file)
@@ -121,16 +121,18 @@ h2 {
  * donation drives.
  */
 
-.notice {
-  width: 170px;
-  margin: 5px;
-  padding: 5px;
-  border: 1px solid #ccc;
+.sidebar-notice {
+  padding: 0px 5px 0.1px 5px;
+  border-top: 1px solid #ccc;
+  margin-top: 4px;
+  margin-bottom: -4px;
   background: #ea0;
-  line-height: 20px;
-  font-size: 14px;
-  border-radius: 5px;
-  -moz-border-radius: 5px;
+  font-size: 13px;
+  line-height: 17px;
+
+  p {
+    margin: 5px;
+  }
 }
 
 /* Rules for the menu displayed in the left sidebar */
@@ -1085,7 +1087,6 @@ abbr.geo {
     display: inline-block;
     vertical-align: top;
     background-color: #ddd;
-    margin-left: 15px;
     padding: 5px 10px 10px 10px;
     font-size: 12px;
 
@@ -1095,7 +1096,6 @@ abbr.geo {
 
     th {
       vertical-align: top;
-      padding: 0px 15px 0px 0px !important;
     }
 
     td {
@@ -1106,12 +1106,57 @@ abbr.geo {
 
     input.richtext_doedit {
       margin-top: 5px !important;
-      margin-right: 10px !important;
     }
 
     input.richtext_dopreview {
       margin-top: 5px !important;
-      margin-left: 10px !important;
     }
   }
 }
+
+/* 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;
+}