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;