]> git.openstreetmap.org Git - rails.git/commitdiff
Rearrange layer switcher assets
authorTom Hughes <tom@compton.nu>
Wed, 28 Mar 2012 20:18:47 +0000 (21:18 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 28 Mar 2012 20:18:47 +0000 (21:18 +0100)
app/assets/javascripts/openlayers.js.erb
app/assets/openlayers/SimpleLayerSwitcher.js [moved from app/assets/javascripts/simplelayerswitcher.js with 100% similarity]
app/assets/openlayers/theme/default/SimpleLayerSwitcher.css.scss [new file with mode: 0644]
app/assets/openlayers/theme/default/img/carat.png [moved from app/assets/images/carat.png with 100% similarity]
app/assets/openlayers/theme/default/style.css.scss
app/assets/stylesheets/common.css.scss

index 9119a7b43961660b9c4dec2bd4f840c3d2c7a504..6d2f95047f62b56accc2cedc3c24aa26ccc2ae29 100644 (file)
@@ -1,6 +1,6 @@
 //= require OpenLayers
 //= require OpenStreetMap
-//= require simplelayerswitcher
+//= require SimpleLayerSwitcher
 
 OpenLayers.Util.imageURLs = {
     "404.png": "<%= asset_path 'img/404.png' %>",
diff --git a/app/assets/openlayers/theme/default/SimpleLayerSwitcher.css.scss b/app/assets/openlayers/theme/default/SimpleLayerSwitcher.css.scss
new file mode 100644 (file)
index 0000000..fc9a337
--- /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/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;
+}
index 3dbc047b070eef49bb2332571a880e512a2ce200..c1ffb9fcaccec26c0961a2a3bf86610d1c2e1b42 100644 (file)
@@ -1,3 +1,7 @@
+/*
+ *= require theme/default/SimpleLayerSwitcher
+ */
+
 div.olMap {
     z-index: 0;
     padding: 0 !important;
index ef2c46a8d8364462fc368a8b87fe200bd3468280..b6aaf7371b4ce80768cb503b255127340eb9053c 100644 (file)
@@ -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;
-}