Skip to content

Commit

Permalink
Merge pull request #65 from jgravois/bump-v2.6.0
Browse files Browse the repository at this point in the history
sync with upstream master
  • Loading branch information
mapmeld committed Jan 23, 2018
2 parents c62cf15 + 66fd438 commit 98703e8
Show file tree
Hide file tree
Showing 430 changed files with 50,021 additions and 30,834 deletions.
257 changes: 253 additions & 4 deletions CHANGELOG.md

Large diffs are not rendered by default.

133 changes: 76 additions & 57 deletions css/20_map.css
Original file line number Diff line number Diff line change
@@ -1,26 +1,65 @@

use { pointer-events: none; }

/* base styles */
.layer-osm path:not(.oneway) { fill: none; } /* IE needs :not(.oneway) */
.layer-osm path:not(.oneway-marker-path) { /* IE/Edge needs :not(.oneway) */
fill: none;
}
.layer-osm path.viewfield-marker-path { /* IE/Edge rule for <use> marker style */
fill: #333;
fill-opacity: 0.75;
stroke: #fff;
stroke-width: 0.5px;
stroke-opacity: 0.75;
}
.fill-wireframe .layer-osm path.viewfield-marker-path { /* IE/Edge rule for <use> marker style */
fill: none;
}

/* the above fill: none rule affects paths in <use> shadow dom only in Firefox */
.layer-osm use.icon path { fill: #333; } /* FF svg Maki icons */
.layer-osm .turn use path { fill: #000; } /* FF turn restriction icons */
#turn-only-shape2, #turn-only-u-shape2 { fill: #7092FF; } /* FF turn-only, turn-only-u */
#turn-no-shape2, #turn-no-u-shape2 { fill: #E06D5F; } /* FF turn-no, turn-no-u */
#turn-yes-shape2, #turn-yes-u-shape2 { fill: #8CD05F; } /* FF turn-yes, turn-yes-u */
#turn-only-shape2, #turn-only-u-shape2 { fill: #7092ff; } /* FF turn-only, turn-only-u */
#turn-no-shape2, #turn-no-u-shape2 { fill: #e06d5f; } /* FF turn-no, turn-no-u */
#turn-yes-shape2, #turn-yes-u-shape2 { fill: #8cd05f; } /* FF turn-yes, turn-yes-u */

g.point .shadow,
g.vertex .shadow,
g.midpoint .shadow {
pointer-events: all;

/* No interactivity except what we specifically allow */
.layer-osm * {
pointer-events: none;
}

path.shadow {
/* `.target` objects are interactive */
/* They can be picked up, clicked, hovered, or things can connect to them */
.node.target {
pointer-events: fill;
fill-opacity: 0.8;
fill: currentColor;
stroke: none;
}

.way.target {
pointer-events: stroke;
fill: none;
stroke-width: 12;
stroke-opacity: 0.8;
stroke: currentColor;
stroke-linecap: round;
stroke-linejoin: round;
}

/* `.target-nope` objects are explicitly forbidden to join to */
.surface:not(.nope-disabled) .node.target.target-nope,
.surface:not(.nope-disabled) .way.target.target-nope {
cursor: not-allowed;
}


/* `.active` objects (currently being drawn or dragged) are not interactive */
/* This is important to allow the events to drop through to whatever is */
/* below them on the map, so you can still hover and connect to other things. */
.layer-osm .active {
pointer-events: none !important;
}


/* points */

g.point .stroke {
Expand All @@ -45,10 +84,6 @@ g.point.selected .shadow {
stroke-opacity: 0.7;
}

g.point.active, g.point.active * {
pointer-events: none;
}

g.point ellipse.stroke {
display: none;
}
Expand Down Expand Up @@ -88,28 +123,6 @@ g.midpoint .shadow {
fill-opacity: 0;
}

g.vertex.vertex-hover {
display: none;
}

.mode-draw-area g.vertex.vertex-hover,
.mode-draw-line g.vertex.vertex-hover,
.mode-add-area g.vertex.vertex-hover,
.mode-add-line g.vertex.vertex-hover,
.mode-add-point g.vertex.vertex-hover,
.mode-drag-node g.vertex.vertex-hover {
display: block;
}

.mode-draw-area .hover-disabled g.vertex.vertex-hover,
.mode-draw-line .hover-disabled g.vertex.vertex-hover,
.mode-add-area .hover-disabled g.vertex.vertex-hover,
.mode-add-line .hover-disabled g.vertex.vertex-hover,
.mode-add-point .hover-disabled g.vertex.vertex-hover,
.mode-drag-node .hover-disabled g.vertex.vertex-hover {
display: none;
}

g.vertex.related:not(.selected) .shadow,
g.vertex.hover:not(.selected) .shadow,
g.midpoint.related:not(.selected) .shadow,
Expand All @@ -121,13 +134,6 @@ g.vertex.selected .shadow {
fill-opacity: 0.7;
}

.mode-draw-area g.midpoint,
.mode-draw-line g.midpoint,
.mode-add-area g.midpoint,
.mode-add-line g.midpoint,
.mode-add-point g.midpoint {
display: none;
}

/* lines */

Expand All @@ -138,7 +144,7 @@ g.vertex.selected .shadow {

path.line {
stroke-linecap: round;
stroke-linejoin: bevel;
stroke-linejoin: round;
}

path.stroke {
Expand Down Expand Up @@ -170,8 +176,7 @@ path.line.stroke {
/* Labels / Markers */

text {
font-size:10px;
pointer-events: none;
font-size: 10px;
color: #222;
opacity: 1;
}
Expand All @@ -180,11 +185,11 @@ text {
fill: #002F35;
}

path.oneway {
.onewaygroup path.oneway,
.viewfieldgroup path.viewfield {
stroke-width: 6px;
}


text.arealabel-halo,
text.linelabel-halo,
text.pointlabel-halo,
Expand All @@ -196,7 +201,6 @@ text.pointlabel {
font-size: 12px;
font-weight: bold;
fill: #333;
pointer-events: none;
-webkit-transition: opacity 100ms linear;
transition: opacity 100ms linear;
-moz-transition: opacity 100ms linear;
Expand All @@ -210,14 +214,14 @@ text.pointlabel {
dominant-baseline: auto;
}

.layer-halo text {
.layer-labels-halo text {
opacity: 0.7;
stroke: #fff;
stroke-width: 5px;
stroke-miterlimit: 1;
}

text.proximate {
text.nolabel {
opacity: 0;
}

Expand Down Expand Up @@ -247,8 +251,8 @@ g.turn circle {
}

.form-field-restrictions .vertex {
pointer-events: none;
cursor: auto !important;
pointer-events: none;
}

.lasso #map {
Expand All @@ -262,11 +266,26 @@ g.turn circle {
}

path.gpx {
stroke: #FF26D4;
stroke: #ff26d4;
stroke-width: 2;
fill: none;
}

text.gpx {
fill: #FF26D4;
text.gpxlabel-halo,
text.gpxlabel {
font-size: 10px;
font-weight: bold;
dominant-baseline: middle;
}

text.gpxlabel {
fill: #ff26d4;
}

text.gpxlabel-halo {
opacity: 0.7;
stroke: #000;
stroke-width: 5px;
stroke-miterlimit: 1;
}

10 changes: 10 additions & 0 deletions css/30_highways.css
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ path.casing.tag-unclassified {
/* narrow highways */

path.shadow.tag-highway-living_street,
path.shadow.tag-highway-bus_guideway,
path.shadow.tag-highway-service,
path.shadow.tag-highway-track,
path.shadow.tag-highway-road,
Expand All @@ -242,6 +243,7 @@ path.shadow.tag-road {
stroke-width: 16;
}
path.casing.tag-highway-living_street,
path.casing.tag-highway-bus_guideway,
path.casing.tag-highway-service,
path.casing.tag-highway-track,
path.casing.tag-highway-road,
Expand All @@ -252,6 +254,7 @@ path.casing.tag-road {
stroke-width: 7;
}
path.stroke.tag-highway-living_street,
path.stroke.tag-highway-bus_guideway,
path.stroke.tag-highway-service,
path.stroke.tag-highway-track,
path.stroke.tag-highway-road,
Expand Down Expand Up @@ -312,6 +315,7 @@ path.stroke.tag-steps {
}

.low-zoom path.shadow.tag-highway-living_street,
.low-zoom path.shadow.tag-highway-bus_guideway,
.low-zoom path.shadow.tag-highway-service,
.low-zoom path.shadow.tag-highway-track,
.low-zoom path.shadow.tag-highway-road,
Expand All @@ -322,6 +326,7 @@ path.stroke.tag-steps {
stroke-width: 12;
}
.low-zoom path.casing.tag-highway-living_street,
.low-zoom path.casing.tag-highway-bus_guideway,
.low-zoom path.casing.tag-highway-service,
.low-zoom path.casing.tag-highway-track,
.low-zoom path.casing.tag-highway-road,
Expand All @@ -332,6 +337,7 @@ path.stroke.tag-steps {
stroke-width: 5;
}
.low-zoom path.stroke.tag-highway-living_street,
.low-zoom path.stroke.tag-highway-bus_guideway,
.low-zoom path.stroke.tag-highway-service,
.low-zoom path.stroke.tag-highway-track,
.low-zoom path.stroke.tag-highway-road,
Expand Down Expand Up @@ -462,15 +468,19 @@ path.casing.tag-service {
stroke:#666;
}

/* special service roads and bus guideways */
/* with `service=* tag` (e.g. parking_aisle, alley, drive-through */
.preset-icon .icon.highway-bus_guideway,
.preset-icon .icon.highway-service.tag-service {
color: #dcd9b9;
fill: #666;
}
path.stroke.tag-highway-bus_guideway,
path.stroke.tag-highway-service.tag-service,
path.stroke.tag-service.tag-service {
stroke: #dcd9b9;
}
path.casing.tag-highway-bus_guideway,
path.casing.tag-highway-service.tag-service,
path.casing.tag-service.tag-service {
stroke: #666;
Expand Down
15 changes: 5 additions & 10 deletions css/55_cursors.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/* Cursors */

.nope,
.nope * {
cursor: not-allowed !important;
}

.map-in-map,
#map {
cursor: auto; /* Opera */
Expand Down Expand Up @@ -49,16 +54,6 @@
cursor: url(img/cursor-select-remove.png), pointer; /* FF */
}

#map .point:active,
#map .vertex:active,
#map .line:active,
#map .area:active,
#map .midpoint:active,
#map .mode-select .selected {
cursor: pointer; /* Opera */
cursor: url(img/cursor-select-acting.png), pointer; /* FF */
}

.mode-draw-line #map,
.mode-draw-area #map,
.mode-add-line #map,
Expand Down
2 changes: 1 addition & 1 deletion css/60_photos.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
position: absolute;
right: 0;
top: 0;
z-index: 500;
z-index: 48;
}

.photo-wrapper,
Expand Down
26 changes: 3 additions & 23 deletions css/70_fills.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,29 +33,9 @@
.fill-partial path.area.fill {
fill-opacity: 0;
stroke-width: 60px;
pointer-events: visibleStroke;
}

/* Modes */

.mode-draw-line .vertex.active,
.mode-draw-area .vertex.active,
.mode-drag-node .vertex.active {
display: none;
}

.mode-draw-line .way.active,
.mode-draw-area .way.active,
.mode-drag-node .active {
pointer-events: none;
}

/* Ensure drawing doesn't interact with area fills. */
.mode-add-point path.area.fill,
.mode-draw-line path.area.fill,
.mode-draw-area path.area.fill,
.mode-add-line path.area.fill,
.mode-add-area path.area.fill,
.mode-drag-node path.area.fill {
pointer-events: none;
.mode-browse .fill-partial path.area.fill,
.mode-select .fill-partial path.area.fill {
pointer-events: visibleStroke;
}
Loading

0 comments on commit 98703e8

Please sign in to comment.