X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/970e1a99d7dce64f0631e88c5b9f060fb48d75fe..b954416a70fb167b9cae0a3937de16bd9a93d239:/vendor/assets/iD/iD.css.erb diff --git a/vendor/assets/iD/iD.css.erb b/vendor/assets/iD/iD.css.erb index 2f22d247c..cce5fb89a 100644 --- a/vendor/assets/iD/iD.css.erb +++ b/vendor/assets/iD/iD.css.erb @@ -184,7 +184,6 @@ path.shadow { pointer-events: stroke; } - /* points */ g.point .stroke { @@ -236,19 +235,6 @@ g.midpoint .fill { opacity: .7; } -g.midpoint.tag-highway-corridor .fill, -g.midpoint.tag-highway-pedestrian .fill, -g.midpoint.tag-highway-steps .fill, -g.midpoint.tag-highway-path .fill, -g.midpoint.tag-highway-footway .fill, -g.midpoint.tag-highway-cycleway .fill, -g.midpoint.tag-highway-bridleway .fill { - fill: #fff; - stroke: #333; - stroke-opacity: .8; - opacity: .8; -} - g.vertex .shadow, g.midpoint .shadow { fill: #f6634f; @@ -324,6 +310,111 @@ path.line.stroke { stroke-width: 2; } + +/* Labels / Markers */ + +text { + font-size:10px; + pointer-events: none; + color: #222; + opacity: 1; +} + +.oneway .textpath.tag-waterway { + fill: #002F35; +} + +path.oneway { + stroke-width: 6px; +} + + +text.arealabel-halo, +text.linelabel-halo, +text.pointlabel-halo, +text.arealabel, +text.linelabel, +text.pointlabel { + dominant-baseline: middle; + text-anchor: middle; + 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; +} + +/* Opera doesn't support dominant-baseline. See #715 */ +/* Safari 10 seems to have regressed too */ +.linelabel-halo .textpath, +.linelabel .textpath { + baseline-shift: -33%; + dominant-baseline: auto; +} + +.layer-halo text { + opacity: 0.7; + stroke: #fff; + stroke-width: 5px; + stroke-miterlimit: 1; +} + +text.proximate { + opacity: 0; +} + +text.point { + font-size: 10px; +} + +.icon.areaicon-halo { + opacity: 0.6; + stroke: #999; + stroke-width: 2px; + stroke-miterlimit: 1; +} + +.icon.areaicon { + fill: #222; + opacity: 0.8; +} + + +/* Turns */ + +g.turn rect, +g.turn circle { + fill: none; + pointer-events: all; +} + +.form-field-restrictions .vertex { + pointer-events: none; + cursor: auto !important; +} + +.lasso #map { + pointer-events: visibleStroke; +} + +/* GPX Paths */ + +.layer-gpx { + pointer-events: none; +} + +path.gpx { + stroke: #FF26D4; + stroke-width: 2; + fill: none; +} + +text.gpx { + fill: #FF26D4; +} + path.area.stroke { stroke: #fff; stroke-width: 1; @@ -387,12 +478,14 @@ path.fill.tag-leisure-park { path.stroke.tag-amenity-swimming_pool, path.stroke.tag-leisure-swimming_pool, path.stroke.tag-natural-water, +path.stroke.tag-landuse-aquaculture, path.stroke.tag-landuse-basin, path.stroke.tag-landuse-reservoir { stroke: rgb(119, 211, 222); } path.fill.tag-amenity-swimming_pool, path.fill.tag-leisure-swimming_pool, +path.fill.tag-landuse-aquaculture, path.fill.tag-landuse-basin, path.fill.tag-landuse-reservoir, path.fill.tag-natural-water { @@ -401,6 +494,7 @@ path.fill.tag-natural-water { } .preset-icon-fill-area.tag-amenity-swimming_pool, .preset-icon-fill-area.tag-leisure-swimming_pool, +.preset-icon-fill-area.tag-landuse-aquaculture, .preset-icon-fill-area.tag-landuse-basin, .preset-icon-fill-area.tag-landuse-reservoir, .preset-icon-fill-area.tag-natural-water { @@ -428,7 +522,7 @@ path.fill.tag-amenity-university { .preset-icon-fill-area.tag-amenity-school, .preset-icon-fill-area.tag-amenity-college, .preset-icon-fill-area.tag-amenity-university { - border-color: rgb(255, 255, 148); + border-color: rgb(232, 232, 0); background-color: rgba(255, 255, 148, 0.15); } @@ -459,25 +553,34 @@ path.fill.tag-landuse-commercial { background-color: rgba(214, 136, 26, 0.3); } -path.stroke.tag-landuse-industrial { +path.stroke.tag-landuse-industrial, +path.stroke.tag-power-plant { stroke: rgb(228, 164, 245); } -path.fill.tag-landuse-industrial { +path.fill.tag-landuse-industrial, +path.fill.tag-power-plant { stroke: rgba(228, 164, 245, 0.3); fill: rgba(228, 164, 245, 0.3); } -.preset-icon-fill-area.tag-landuse-industrial { +.preset-icon-fill-area.tag-landuse-industrial, +.preset-icon-fill-area.tag-power-plant { border-color: rgb(228, 164, 245); background-color: rgba(228, 164, 245, 0.3); } +path.stroke.tag-natural-bare_rock, +path.stroke.tag-natural-scree, path.stroke.tag-landuse-quarry { stroke: rgb(166, 149, 123); } +path.fill.tag-natural-bare_rock, +path.fill.tag-natural-scree, path.fill.tag-landuse-quarry { stroke: rgba(166, 149, 123, 0.2); fill: rgba(166, 149, 123, 0.2); } +.preset-icon-fill-area.tag-natural-bare_rock, +.preset-icon-fill-area.tag-natural-scree, .preset-icon-fill-area.tag-landuse-quarry { border-color: rgb(166, 149, 123); background-color: rgba(166, 149, 123, 0.2); @@ -498,21 +601,26 @@ path.fill.tag-landuse-landfill { .pattern-color-construction { fill: rgba(196, 189, 25, 0.2); } -path.stroke.tag-landuse.tag-status { +path.stroke.tag-landuse.tag-status, +path.stroke.tag-landuse-construction { stroke: rgb(196, 189, 25); } -.preset-icon-fill-area.tag-landuse.tag-status { +.preset-icon-fill-area.tag-landuse.tag-status, +.preset-icon-fill-area.tag-landuse-construction { border-color: rgb(196, 189, 25); background-color: rgba(196, 189, 25, 0.2); } +path.stroke.tag-military, path.stroke.tag-landuse-military { stroke: rgb(214, 136, 26); } +path.fill.tag-military, path.fill.tag-landuse-military { stroke: rgba(214, 136, 26, 0.2); fill: rgba(214, 136, 26, 0.2); } +.preset-icon-fill-area.tag-military, .preset-icon-fill-area.tag-landuse-military { border-color: rgb(214, 136, 26); background-color: rgba(214, 136, 26, 0.2); @@ -540,13 +648,16 @@ path.stroke.tag-landuse-meadow { background-color: rgba(182, 225, 153, 0.2); } -.pattern-color-beach { +.pattern-color-beach, +.pattern-color-sand { fill: rgba(255, 255, 126, 0.2); } -path.stroke.tag-natural-beach { +path.stroke.tag-natural-beach, +path.stroke.tag-natural-sand { stroke: rgb(255, 255, 126); } -.preset-icon-fill-area.tag-natural-beach { +.preset-icon-fill-area.tag-natural-beach, +.preset-icon-fill-area.tag-natural-sand { border-color: rgb(255, 255, 126); background-color: rgba(255, 255, 126, 0.2); } @@ -612,9 +723,9 @@ path.fill.tag-amenity-parking { background-color: rgba(170, 170, 170, 0.3); } +/* highways */ /* highway areas */ - path.stroke.area.tag-highway { stroke:#fff; stroke-dasharray: none; @@ -937,16 +1048,16 @@ path.casing.tag-road { } .preset-icon .icon.highway-living-street { - color: #ccc; - fill: #fff; + color: #bbb; + fill: #ddd; } path.stroke.tag-highway-living_street, path.stroke.tag-living_street { - stroke:#ccc; + stroke: #ccc; } path.casing.tag-highway-living_street, path.casing.tag-living_street { - stroke:#fff; + stroke: #fff; } .preset-icon .icon.highway-footway.tag-highway-corridor, @@ -1099,12 +1210,67 @@ path.casing.tag-highway-steps.tag-unpaved { stroke-dasharray: none; } +/* highway midpoints */ +g.midpoint.tag-highway-corridor .fill, +g.midpoint.tag-highway-pedestrian .fill, +g.midpoint.tag-highway-steps .fill, +g.midpoint.tag-highway-path .fill, +g.midpoint.tag-highway-footway .fill, +g.midpoint.tag-highway-cycleway .fill, +g.midpoint.tag-highway-bridleway .fill { + fill: #fff; + stroke: #333; + stroke-opacity: .8; + opacity: .8; +} /* aeroways */ -path.stroke.tag-aeroway-taxiway { - stroke: #805C80; + +/* areas */ +path.stroke.area.tag-aeroway { + stroke:#fff; + stroke-dasharray: none; + stroke-width: 2; +} + +/* lines */ +path.stroke.tag-aeroway-taxiway, +path.stroke.tag-taxiway { stroke-width: 4; } +path.casing.tag-aeroway-taxiway, +path.casing.tag-taxiway { + stroke-width: 6; +} + +.low-zoom path.stroke.tag-aeroway-taxiway, +.low-zoom path.stroke.tag-taxiway { + stroke-width: 2; +} +.low-zoom path.casing.tag-aeroway-taxiway, +.low-zoom path.casing.tag-taxiway { + stroke-width: 4; +} + +.preset-icon .icon.tag-aeroway-taxiway, +.preset-icon .icon.tag-taxiway { + color: #ff0; + fill: #666; +} +path.stroke.tag-aeroway-taxiway, +path.stroke.tag-taxiway { + stroke: #ff0; +} +path.casing.tag-aeroway-taxiway, +path.casing.tag-taxiway { + stroke: #666; +} + +.preset-icon .icon.tag-aeroway-runway, +.preset-icon .icon.tag-runway { + color: #444; + fill: #000; +} path.shadow.tag-aeroway-runway { stroke-width: 20; } @@ -1123,16 +1289,9 @@ path.fill.tag-aeroway-runway { stroke: rgba(0, 0, 0, 0.6); fill: rgba(0, 0, 0, 0.6); } -path.stroke.tag-aeroway-apron { - stroke: #805C80; -} -path.fill.tag-aeroway-apron { - stroke: rgba(128, 92, 128, 0.2); - fill: rgba(128, 92, 128, 0.2); -} - /* railways */ + .preset-icon .icon.tag-railway.other-line { color: #fff; fill: #777; @@ -1192,9 +1351,8 @@ path.casing.tag-railway-platform { .area.casing.tag-railway { stroke: none; } - - /* waterways */ + .preset-icon .icon.tag-waterway.other-line { color: #77d3de; fill: #77d3de; @@ -1257,7 +1415,6 @@ path.area.fill.tag-waterway-fuel { fill: rgba(255, 255, 255, 0.3); } - /* power */ .preset-icon .icon.tag-man_made-pipeline, .preset-icon .icon.tag-power { @@ -1463,79 +1620,6 @@ path.fill.tag-amenity-shelter { border-color: rgb(224, 110, 95); background-color: rgba(224, 110, 95, 0.3); } - - -/* Labels / Markers */ - -text { - font-size:10px; - pointer-events: none; - color: #222; - opacity: 1; -} - -.oneway .textpath.tag-waterway { - fill: #002F35; -} - -path.oneway { - stroke-width: 6px; -} - - -text.arealabel-halo, -text.linelabel-halo, -text.pointlabel-halo, -text.arealabel, -text.linelabel, -text.pointlabel { - dominant-baseline: middle; - text-anchor: middle; - 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; -} - -/* Opera doesn't support dominant-baseline. See #715 */ -/* Safari 10 seems to have regressed too */ -.linelabel-halo .textpath, -.linelabel .textpath { - baseline-shift: -33%; - dominant-baseline: auto; -} - -.layer-halo text { - opacity: 0.7; - stroke: #fff; - stroke-width: 5px; - stroke-miterlimit: 1; -} - -text.proximate { - opacity: 0; -} - -text.point { - font-size: 10px; -} - -/* Turns */ - -g.turn rect, -g.turn circle { - fill: none; - pointer-events: all; -} - -.form-field-restrictions .vertex { - pointer-events: none; - cursor: auto !important; -} - /* Cursors */ .map-in-map, @@ -1642,26 +1726,6 @@ g.turn circle { cursor: pointer; /* Opera */ cursor: url(<%= asset_path("iD/img/cursor-pointer.png") %>) 6 1, pointer; /* FF */ } - -.lasso #map { - pointer-events: visibleStroke; -} - -/* GPX Paths */ -.layer-gpx { - pointer-events: none; -} - -path.gpx { - stroke: #FF26D4; - stroke-width: 2; - fill: none; -} - -text.gpx { - fill: #FF26D4; -} - /* Mapillary Image Layer */ .layer-mapillary-images { @@ -1739,67 +1803,67 @@ text.gpx { .layer-mapillary-signs .icon-sign.selected .t { z-index: 80; } - -/* 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 .area.fill, -.mode-draw-line .area.fill, -.mode-draw-area .area.fill, -.mode-add-line .area.fill, -.mode-add-area .area.fill, -.mode-drag-node .area.fill { - pointer-events: none; -} - - /* Fill Styles */ + .low-zoom.fill-wireframe path.stroke, .fill-wireframe path.stroke { - stroke-width: 1; - stroke-opacity: 0.5; - stroke-dasharray: none; - fill: none; + stroke-width: 1 !important; + stroke-opacity: 0.5 !important; + stroke-dasharray: none !important; + fill: none !important; } .low-zoom.fill-wireframe path.shadow, .fill-wireframe path.shadow { - stroke-width: 8; + stroke-width: 8 !important; } .fill-wireframe path.shadow.related:not(.selected), .fill-wireframe path.shadow.hover:not(.selected) { - stroke-opacity: 0.4; + stroke-opacity: 0.4 !important; } .fill-wireframe path.shadow.selected { - stroke-opacity: 0.6; + stroke-opacity: 0.6 !important; } .fill-wireframe .point, .fill-wireframe .areaicon, +.fill-wireframe .areaicon-halo, .fill-wireframe path.casing, .fill-wireframe path.fill, .fill-wireframe path.oneway { - display: none; + display: none !important; } -.fill-partial path.fill { +.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; +} /* Basics ------------------------------------------------------- */ @@ -1813,7 +1877,10 @@ html, body { } body { - font:normal 12px/1.6667 'Helvetica Neue', Arial, sans-serif; + font: normal 12px/1.6667 -apple-system, BlinkMacSystemFont, + "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", + "Fira Sans", "Droid Sans", "Helvetica Neue", "Arial", + sans-serif; margin:0; padding:0; min-width: 768px; @@ -1840,6 +1907,20 @@ body { height: 100%; } +#content.active { + -webkit-filter: none !important; + filter: none !important; + -webkit-duration: 200ms; + transition-duration: 200ms; +} + +#content.inactive { + -webkit-filter: grayscale(80%) brightness(80%); + filter: grayscale(80%) brightness(80%); + -webkit-duration: 200ms; + transition-duration: 200ms; +} + #defs { /* Can't be display: none or the clippaths are ignored. */ position: absolute; @@ -1950,7 +2031,10 @@ a:hover { textarea { resize: vertical; - font:normal 12px/20px 'Helvetica Neue', Arial, sans-serif; + font:normal 12px/20px -apple-system, BlinkMacSystemFont, + "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", + "Fira Sans", "Droid Sans", "Helvetica Neue", "Arial", + sans-serif; } textarea, @@ -2252,10 +2336,6 @@ button.secondary-action:hover { background: #cccccc; } -button.save.has-count { - padding: 9px; -} - button.save .count { display: none; } @@ -2273,7 +2353,7 @@ button.save.has-count .count { line-height: 12px; border-radius: 4px; margin: auto; - margin-left: 8.3333%; + margin-left: 9.3333%; } button.save.has-count .count::before { @@ -2308,7 +2388,7 @@ button.save.has-count .count::before { } .icon.pre-text { - margin-right: 3px; + margin-right: 5px; } .icon.light { @@ -2651,16 +2731,28 @@ button.save.has-count .count::before { height: 44px; } -.preset-icon-32 { +.preset-icon-28 { + position: absolute; + top: 16px; + left: 16px; + margin: auto; +} + +.preset-icon-28 .icon { + width: 28px; + height: 28px; +} + +.preset-icon-24 { position: absolute; - top: 14px; - left: 13px; /* Maki icons off center? */ + top: 18px; + left: 18px; margin: auto; } -.preset-icon-32 .icon { - width: 32px; - height: 32px; +.preset-icon-24 .icon { + width: 24px; + height: 24px; } .preset-list-button .label { @@ -5251,7 +5343,7 @@ img.tile-removing { } [dir='rtl'] .icon.pre-text { - margin-left: 3px; + margin-left: 5px; margin-right: 0; } @@ -5285,8 +5377,12 @@ img.tile-removing { right: auto; } -[dir='rtl'] .preset-list-button-wrap .preset-icon-32 { - right: 15px; +[dir='rtl'] .preset-list-button-wrap .preset-icon-28 { + right: 16px; +} + +[dir='rtl'] .preset-list-button-wrap .preset-icon-24 { + right: 18px; } [dir='rtl'] .form-field .maxspeed-unit { @@ -5432,6 +5528,21 @@ img.tile-removing { border-radius: 4px 0 0 4px; } +[dir='rtl'] .spinner { + float: left; +} + +[dir='rtl'] .spinner img { + margin-left: 10px; + margin-right: auto; + -moz-transform: scaleX(-1); + -o-transform: scaleX(-1); + -webkit-transform: scaleX(-1); + transform: scaleX(-1); + filter: FlipH; + -ms-filter: "FlipH"; +} + /* footer */ [dir='rtl'] #scale-block { float: right;