mirror of
https://github.com/FoggedLens/iD.git
synced 2026-06-02 13:11:41 +02:00
Render relation route icon lines dynamically (close #5926)
This commit is contained in:
+10
-13
@@ -1202,21 +1202,16 @@ a.hide-toggle {
|
||||
.preset-icon-line {
|
||||
margin: auto;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
[dir='ltr'] .preset-icon-line {
|
||||
left: 0;
|
||||
}
|
||||
[dir='rtl'] .preset-icon-line {
|
||||
right: 0;
|
||||
}
|
||||
.preset-icon-line path.line {
|
||||
.preset-icon-container path {
|
||||
cursor: inherit;
|
||||
}
|
||||
.preset-icon-line circle.vertex,
|
||||
.preset-icon-fill circle.vertex {
|
||||
.preset-icon-container circle.vertex {
|
||||
fill: #fff;
|
||||
stroke: rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
@@ -1225,10 +1220,10 @@ a.hide-toggle {
|
||||
stroke: rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
/* use a consistent stroke width */
|
||||
.preset-icon-line path.line.stroke {
|
||||
.preset-icon-container path.line.stroke {
|
||||
stroke-width: 2 !important;
|
||||
}
|
||||
.preset-icon-line path.line.casing {
|
||||
.preset-icon-container path.line.casing {
|
||||
stroke-width: 4 !important;
|
||||
}
|
||||
|
||||
@@ -1279,7 +1274,8 @@ a.hide-toggle {
|
||||
.preset-icon.framed .icon {
|
||||
transform: scale(0.4);
|
||||
}
|
||||
.preset-icon.framed.line-geom .icon {
|
||||
.preset-icon.framed.line-geom .icon,
|
||||
.preset-icon.framed.route-geom .icon {
|
||||
top: 20%;
|
||||
transform: translateY(-30%) scale(0.4);
|
||||
}
|
||||
@@ -1289,7 +1285,8 @@ a.hide-toggle {
|
||||
.preset-icon-iD.framed .icon {
|
||||
transform: scale(0.74);
|
||||
}
|
||||
.preset-icon-iD.framed.line-geom .icon {
|
||||
.preset-icon-iD.framed.line-geom .icon,
|
||||
.preset-icon-iD.framed.route-geom .icon {
|
||||
transform: translateY(-30%) scale(0.74);
|
||||
}
|
||||
.preset-icon-container.fallback .preset-icon .icon {
|
||||
|
||||
Reference in New Issue
Block a user