Use more generic classes for errors

This commit is contained in:
SilentSpike
2019-01-20 23:27:49 +00:00
parent 39880e559b
commit 214cf41019
15 changed files with 98 additions and 96 deletions
+6 -13
View File
@@ -45,8 +45,7 @@
/* `.target` objects are interactive */
/* They can be picked up, clicked, hovered, or things can connect to them */
.iOSM_error.target,
.kr_error.target,
.qa_error.target,
.note.target,
.node.target,
.turn .target {
@@ -81,12 +80,10 @@
pointer-events: none !important;
}
/* NOTE: when more QA layers are added, replace kr_error with generic QA layer selector */
/* points, notes & QA */
/* points, notes, markers */
g.iOSM_error .stroke,
g.kr_error .stroke,
g.qa_error .stroke,
g.note .stroke {
stroke: #222;
stroke-width: 1;
@@ -94,8 +91,7 @@ g.note .stroke {
opacity: 0.6;
}
g.iOSM_error.active .stroke,
g.kr_error.active .stroke,
g.qa_error.active .stroke,
g.note.active .stroke {
stroke: #222;
stroke-width: 1;
@@ -109,8 +105,7 @@ g.point .stroke {
fill: #fff;
}
g.iOSM_error .shadow,
g.kr_error .shadow,
g.qa_error .shadow,
g.point .shadow,
g.note .shadow {
fill: none;
@@ -119,16 +114,14 @@ g.note .shadow {
stroke-opacity: 0;
}
g.iOSM_error.hover:not(.selected) .shadow,
g.kr_error.hover:not(.selected) .shadow,
g.qa_error.hover:not(.selected) .shadow,
g.note.hover:not(.selected) .shadow,
g.point.related:not(.selected) .shadow,
g.point.hover:not(.selected) .shadow {
stroke-opacity: 0.5;
}
g.iOSM_error.selected .shadow,
g.kr_error.selected .shadow,
g.qa_error.selected .shadow,
g.note.selected .shadow,
g.point.selected .shadow {
stroke-opacity: 0.7;
+2 -4
View File
@@ -97,11 +97,9 @@
}
.mode-browse .note,
.mode-browse .kr_error,
.mode-browse .iOSM_error,
.mode-browse .qa_error,
.mode-select .note,
.mode-select .kr_error,
.mode-select .iOSM_error,
.mode-select .qa_error,
.turn rect,
.turn circle {
cursor: pointer;
+41 -41
View File
@@ -1,9 +1,9 @@
/* OSM Notes and KeepRight Layers */
.kr_error-header-icon .kr_error-fill,
.layer-keepRight .kr_error .kr_error-fill,
.layer-improveOSM .iOSM_error .iOSM_error-fill {
.kr_error-header-icon .qa_error-fill,
.layer-keepRight .qa_error .qa_error-fill,
.layer-improveOSM .qa_error .qa_error-fill {
stroke: #333;
stroke-width: 1.3px; /* NOTE: likely a better way to scale the icon stroke */
}
@@ -45,98 +45,98 @@
/* Keep Right Errors
------------------------------------------------------- */
.kr_error_type_20, /* multiple nodes on same spot */
.kr_error_type_40, /* impossible oneways */
.kr_error_type_210, /* self intersecting ways */
.kr_error_type_270, /* unusual motorway connection */
.kr_error_type_310, /* roundabout issues */
.kr_error_type_320, /* improper _link */
.kr_error_type_350 { /* improper bridge tag */
.kr.error_type-20, /* multiple nodes on same spot */
.kr.error_type-40, /* impossible oneways */
.kr.error_type-210, /* self intersecting ways */
.kr.error_type-270, /* unusual motorway connection */
.kr.error_type-310, /* roundabout issues */
.kr.error_type-320, /* improper _link */
.kr.error_type-350 { /* improper bridge tag */
color: #ff9;
}
.kr_error_type_50 { /* almost junctions */
.kr.error_type-50 { /* almost junctions */
color: #88f;
}
.kr_error_type_60, /* deprecated tags */
.kr_error_type_70, /* tagging issues */
.kr_error_type_90, /* motorway without ref */
.kr_error_type_100, /* place of worship without religion */
.kr_error_type_110, /* poi without name */
.kr_error_type_150, /* railway crossing without tag */
.kr_error_type_220, /* misspelled tag */
.kr_error_type_380 { /* non-physical sport tag */
.kr.error_type-60, /* deprecated tags */
.kr.error_type-70, /* tagging issues */
.kr.error_type-90, /* motorway without ref */
.kr.error_type-100, /* place of worship without religion */
.kr.error_type-110, /* poi without name */
.kr.error_type-150, /* railway crossing without tag */
.kr.error_type-220, /* misspelled tag */
.kr.error_type-380 { /* non-physical sport tag */
color: #5d0;
}
.kr_error_type_130 { /* disconnected ways */
.kr.error_type-130 { /* disconnected ways */
color: #fa3;
}
.kr_error_type_170 { /* FIXME tag */
.kr.error_type-170 { /* FIXME tag */
color: #ff0;
}
.kr_error_type_190 { /* intersection without junction */
.kr.error_type-190 { /* intersection without junction */
color: #f33;
}
.kr_error_type_200 { /* overlapping ways */
.kr.error_type-200 { /* overlapping ways */
color: #fdbf6f;
}
.kr_error_type_160, /* railway layer conflict */
.kr_error_type_230 { /* layer conflict */
.kr.error_type-160, /* railway layer conflict */
.kr.error_type-230 { /* layer conflict */
color: #b60;
}
.kr_error_type_280 { /* boundary issues */
.kr.error_type-280 { /* boundary issues */
color: #5f47a0;
}
.kr_error_type_180, /* relation without type */
.kr_error_type_290 { /* turn restriction issues */
.kr.error_type-180, /* relation without type */
.kr.error_type-290 { /* turn restriction issues */
color: #ace;
}
.kr_error_type_300, /* missing maxspeed */
.kr_error_type_390 { /* missing tracktype */
.kr.error_type-300, /* missing maxspeed */
.kr.error_type-390 { /* missing tracktype */
color: #090;
}
.kr_error_type_360, /* language unknown */
.kr_error_type_370, /* doubled places */
.kr_error_type_410 { /* website issues */
.kr.error_type-360, /* language unknown */
.kr.error_type-370, /* doubled places */
.kr.error_type-410 { /* website issues */
color: #f9b;
}
.kr_error_type_120, /* way without nodes */
.kr_error_type_400 { /* geometry / turn angles */
.kr.error_type-120, /* way without nodes */
.kr.error_type-400 { /* geometry / turn angles */
color: #c35;
}
/* ImproveOSM Errors
------------------------------------------------------- */
.iOSM_error_type_ow { /* missing one way */
.iOSM.error_type-ow- { /* missing one way */
color: #EE7600;
}
.iOSM_error_type_mr_road { /* missing road */
.iOSM.error_type-mr-road { /* missing road */
color: #B0171F;
}
.iOSM_error_type_mr_path { /* missing path */
.iOSM.error_type-mr-path { /* missing path */
color: #A0522D;
}
.iOSM_error_type_mr_parking { /* missing parking */
.iOSM.error_type-mr-parking { /* missing parking */
color: #EEEE00;
}
.iOSM_error_type_mr_both { /* missing road+parking */
.iOSM.error_type-mr-both { /* missing road+parking */
color: #FFA500;
}
.iOSM_error_type_tr { /* missing turn restriction */
.iOSM.error_type-tr- { /* missing turn restriction */
color: #1E90FF;
}