mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
Adjust text hint colors, change "Continue" to "Straight on"
This commit is contained in:
@@ -1841,6 +1841,7 @@ input[type=number] {
|
||||
}
|
||||
|
||||
.restriction-detail input {
|
||||
width: 60px;
|
||||
margin: 0px 10px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
@@ -1876,13 +1877,13 @@ input[type=number] {
|
||||
font-weight: bold;
|
||||
}
|
||||
.restriction-help span.qualifier.allow {
|
||||
color: #8cd05f;
|
||||
color: #8b5;
|
||||
}
|
||||
.restriction-help span.qualifier.restrict {
|
||||
color: #e06d5f;
|
||||
color: #d76;
|
||||
}
|
||||
.restriction-help span.qualifier.only {
|
||||
color: #7092ff;
|
||||
color: #78f;
|
||||
}
|
||||
|
||||
/* Changeset editor while comment text is empty */
|
||||
|
||||
@@ -73,7 +73,7 @@ export function uiFieldRestrictions(field, context) {
|
||||
// for example, a vertex of two `highway=path`
|
||||
// In this case, hide the field.
|
||||
var isOK = (_intersection && _intersection.vertices.length && _intersection.ways.length);
|
||||
d3_select(selection.node().parentNode).classed('hide', !isOK)
|
||||
d3_select(selection.node().parentNode).classed('hide', !isOK);
|
||||
|
||||
// if form field is hidden or has detached from dom, clean up.
|
||||
if (!isOK ||
|
||||
@@ -85,12 +85,6 @@ export function uiFieldRestrictions(field, context) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
var isComplex = (isOK && _intersection.vertices.length > 1);
|
||||
|
||||
|
||||
|
||||
var wrap = selection.selectAll('.preset-input-wrap')
|
||||
.data([0]);
|
||||
|
||||
@@ -99,6 +93,8 @@ export function uiFieldRestrictions(field, context) {
|
||||
.attr('class', 'preset-input-wrap')
|
||||
.merge(wrap);
|
||||
|
||||
var isComplex = (isOK && _intersection.vertices.length > 1);
|
||||
|
||||
var detailControl = wrap.selectAll('.restriction-detail')
|
||||
.data(isComplex ? [0]: []);
|
||||
|
||||
@@ -333,7 +329,7 @@ export function uiFieldRestrictions(field, context) {
|
||||
'no_left_turn': 'Left Turn',
|
||||
'no_right_turn': 'Right Turn',
|
||||
'no_u_turn': 'U-Turn',
|
||||
'no_straight_on': 'Continuing'
|
||||
'no_straight_on': 'Straight On'
|
||||
}[osmInferRestriction(vgraph, datum.from, datum.to, projection)];
|
||||
|
||||
var restrictType = '';
|
||||
|
||||
Reference in New Issue
Block a user