mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
Makes relation members highlighted via hovering on list items more prominent
This commit is contained in:
@@ -265,6 +265,18 @@ text.point {
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
/* Highlighting */
|
||||
|
||||
g.point.highlighted .shadow,
|
||||
path.shadow.highlighted {
|
||||
stroke-opacity: 0.95;
|
||||
stroke: #7092ff;
|
||||
}
|
||||
g.vertex.highlighted .shadow {
|
||||
stroke-width: 7;
|
||||
stroke-opacity: 0.95;
|
||||
stroke: #7092ff;
|
||||
}
|
||||
|
||||
/* Turn Restrictions */
|
||||
|
||||
|
||||
@@ -126,10 +126,10 @@ export function uiRawMemberEditor(context) {
|
||||
// highlight the member feature in the map while hovering on the list item
|
||||
var selectorPrefix = d.type === 'node' ? 'g.' : 'path.';
|
||||
d3_select(this).on('mouseover', function() {
|
||||
context.surface().selectAll(selectorPrefix+d.id).classed('related', true);
|
||||
context.surface().selectAll(selectorPrefix+d.id).classed('highlighted', true);
|
||||
});
|
||||
d3_select(this).on('mouseout', function() {
|
||||
context.surface().selectAll(selectorPrefix+d.id).classed('related', false);
|
||||
context.surface().selectAll(selectorPrefix+d.id).classed('highlighted', false);
|
||||
});
|
||||
|
||||
var label = d3_select(this).append('label')
|
||||
|
||||
Reference in New Issue
Block a user