From f356e3e3578cdad98f9e760a9dbdf41ea01f2c72 Mon Sep 17 00:00:00 2001 From: Ansis Brammanis Date: Fri, 5 Apr 2013 14:24:58 -0400 Subject: [PATCH] fix cursors --- css/app.css | 4 ++-- css/map.css | 22 +++++++++++----------- js/id/ui/preset_icon.js | 4 ++-- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/css/app.css b/css/app.css index 45b5fd4ef..0194acd69 100644 --- a/css/app.css +++ b/css/app.css @@ -833,7 +833,7 @@ a:hover .icon.out-link { background-position: -500px -14px;} top: 30px; } -.preset-icon-fill.area { +.preset-icon-fill.icon-area { cursor: inherit; height: 45px; width: 45px; @@ -2275,7 +2275,7 @@ img.wiki-image { .intro-areas-add .tooltip-inner::before, .intro-lines-add .tooltip-inner::before, .walkthrough a:before, - .preset-icon-fill.area, + .preset-icon-fill.icon-area, .modal-actions button:before, .map-control .icon, .button-wrap .icon { diff --git a/css/map.css b/css/map.css index 84ebb1e7d..935c4389b 100644 --- a/css/map.css +++ b/css/map.css @@ -873,40 +873,40 @@ text.point { ) 9 9, auto; } -.mode-browse #surface .point, -.mode-select #surface .point { +.mode-browse .point, +.mode-select .point { cursor: -webkit-image-set( url(../img/cursor-select-point.png) 1x, url(../img/cursor-select-point2x.png) 2x ), pointer; } -.mode-select #surface .vertex, -.mode-browse #surface .vertex { +.mode-select .vertex, +.mode-browse .vertex { cursor: -webkit-image-set( url(../img/cursor-select-vertex.png) 1x, url(../img/cursor-select-vertex2x.png) 2x ), pointer; } -.mode-browse #surface .line, -.mode-select #surface .line { +.mode-browse .line, +.mode-select .line { cursor: -webkit-image-set( url(../img/cursor-select-line.png) 1x, url(../img/cursor-select-line2x.png) 2x ), pointer; } -.mode-select #surface .area, -.mode-browse #surface .area { +.mode-select .area, +.mode-browse .area { cursor: -webkit-image-set( url(../img/cursor-select-area.png) 1x, url(../img/cursor-select-area2x.png) 2x ), pointer; } -.mode-select #surface .midpoint, -.mode-browse #surface .midpoint { +.mode-select .midpoint, +.mode-browse .midpoint { cursor: -webkit-image-set( url(../img/cursor-select-split.png) 1x, url(../img/cursor-select-split2x.png) 2x @@ -1014,4 +1014,4 @@ path.gpx { .mode-add-area .area.fill, .mode-drag-node .area.fill { pointer-events: none; -} \ No newline at end of file +} diff --git a/js/id/ui/preset_icon.js b/js/id/ui/preset_icon.js index 671f7d784..fb3437dae 100644 --- a/js/id/ui/preset_icon.js +++ b/js/id/ui/preset_icon.js @@ -2,7 +2,7 @@ iD.ui.PresetIcon = function(geometry) { return function(selection) { selection.append('div') .attr('class', function(preset) { - var s = 'preset-icon-fill ' + geometry; + var s = 'preset-icon-fill icon-' + geometry; for (var i in preset.tags) { s += ' tag-' + i + ' tag-' + i + '-' + preset.tags[i]; } @@ -15,5 +15,5 @@ iD.ui.PresetIcon = function(geometry) { .attr('class', function(preset) { return 'feature-' + (preset.icon || fallbackIcon) + ' icon preset-icon preset-icon-' + geometry; }); - } + }; };