mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
- Render vertices with SVG - Add viewBox to SVG - Don't reload static parts of the SVG on every update - Use dimensions that are friendly for low-res displays - Use nicer-looking stroke dash patterns for ferry routes and railways
70 lines
1.3 KiB
CSS
70 lines
1.3 KiB
CSS
/* railways */
|
|
|
|
/* defaults */
|
|
.preset-icon .icon.tag-railway.other-line {
|
|
color: #fff;
|
|
fill: #777;
|
|
}
|
|
.preset-icon .icon.tag-railway {
|
|
color: #555;
|
|
fill: #eee;
|
|
}
|
|
|
|
/* lines */
|
|
/* narrow widths */
|
|
path.line.shadow.tag-railway {
|
|
stroke-width: 16;
|
|
}
|
|
path.line.casing.tag-railway {
|
|
stroke-width: 7;
|
|
}
|
|
path.line.stroke.tag-railway {
|
|
stroke-width: 2;
|
|
stroke-linecap: butt;
|
|
stroke-dasharray: 12,12;
|
|
}
|
|
.low-zoom path.line.shadow.tag-railway {
|
|
stroke-width: 12;
|
|
}
|
|
.low-zoom path.line.casing.tag-railway {
|
|
stroke-width: 5;
|
|
}
|
|
.low-zoom path.line.stroke.tag-railway {
|
|
stroke-width: 2;
|
|
stroke-dasharray: 6,6;
|
|
}
|
|
.preset-icon-line path.line.stroke.tag-railway:not(.tag-status) {
|
|
stroke-dasharray: 6;
|
|
}
|
|
|
|
/* styles */
|
|
path.line.casing.tag-railway {
|
|
stroke: #555;
|
|
}
|
|
path.line.stroke.tag-railway {
|
|
stroke: #eee;
|
|
}
|
|
|
|
|
|
.preset-icon .icon.tag-railway-disused,
|
|
.preset-icon .icon.tag-railway-abandoned {
|
|
color: #999;
|
|
fill: #eee;
|
|
}
|
|
path.line.casing.tag-railway-disused,
|
|
path.line.casing.tag-railway-abandoned {
|
|
stroke: #999;
|
|
}
|
|
path.line.stroke.tag-railway-disused,
|
|
path.line.stroke.tag-railway-abandoned {
|
|
stroke: #eee;
|
|
}
|
|
|
|
|
|
path.line.casing.tag-railway-subway {
|
|
stroke: #222;
|
|
}
|
|
path.line.stroke.tag-railway-subway {
|
|
stroke: #bbb;
|
|
}
|