mirror of
https://github.com/FoggedLens/iD.git
synced 2026-04-29 15:16:07 +02:00
1dd437a1f2
(closes #4526) What we were doing before was d3.selecting the attribution line and inserting the capture date into it. This was confusing the viewer (which updates asynchronously) so that the sitelink would never update. To make things easier, we'll just hide the viewer's built in attribution and construct the attribution line the way we want it.
234 lines
4.4 KiB
CSS
234 lines
4.4 KiB
CSS
/* photo viewer div */
|
|
#photoviewer {
|
|
position: absolute;
|
|
bottom: 30px;
|
|
width: 330px;
|
|
height: 250px;
|
|
padding: 5px;
|
|
background-color: #fff;
|
|
}
|
|
|
|
#photoviewer button.thumb-hide {
|
|
border-radius: 0;
|
|
padding: 5px;
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
z-index: 500;
|
|
}
|
|
|
|
.photo-wrapper,
|
|
.photo-wrapper img {
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.photo-wrapper .photo-attribution {
|
|
width: 100%;
|
|
font-size: 10px;
|
|
text-align: right;
|
|
position: absolute;
|
|
bottom: 0;
|
|
right: 0;
|
|
padding: 4px 2px;
|
|
z-index: 10;
|
|
}
|
|
|
|
.photo-attribution a,
|
|
.photo-attribution a:visited,
|
|
.photo-attribution span {
|
|
padding: 4px 2px;
|
|
color: #fff;
|
|
}
|
|
|
|
/* markers and sequences */
|
|
.viewfield-group {
|
|
pointer-events: visible;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.viewfield-group.selected * {
|
|
fill: #ffee00 !important;
|
|
}
|
|
.viewfield-group.hovered * {
|
|
fill: #eebb00 !important;
|
|
}
|
|
|
|
.viewfield-group circle {
|
|
stroke: #555;
|
|
stroke-width: 1;
|
|
stroke-opacity: 0.4;
|
|
fill-opacity: 0.4;
|
|
}
|
|
.viewfield-group.highlighted circle {
|
|
stroke: #222;
|
|
stroke-opacity: 0.9;
|
|
fill-opacity: 0.9;
|
|
}
|
|
.viewfield-group.highlighted.hovered circle {
|
|
stroke: #222;
|
|
stroke-width: 2;
|
|
stroke-opacity: 0.9;
|
|
fill-opacity: 0.9;
|
|
}
|
|
.viewfield-group.highlighted.selected circle {
|
|
stroke: #222;
|
|
stroke-width: 2;
|
|
stroke-opacity: 1;
|
|
fill-opacity: 1;
|
|
}
|
|
|
|
.viewfield-group .viewfield {
|
|
stroke-width: 0;
|
|
stroke: #222;
|
|
fill-opacity: 0.4;
|
|
}
|
|
.viewfield-group.highlighted .viewfield {
|
|
stroke-width: 1;
|
|
fill-opacity: 0.8;
|
|
}
|
|
.viewfield-group.highlighted.hovered .viewfield {
|
|
stroke-width: 1;
|
|
fill-opacity: 0.8;
|
|
}
|
|
.viewfield-group.highlighted.selected .viewfield {
|
|
stroke-width: 1;
|
|
fill-opacity: 0.9;
|
|
}
|
|
|
|
.viewfield-group.selected .viewfield-scale {
|
|
transform: scale(2,2);
|
|
}
|
|
|
|
.sequence {
|
|
fill: none;
|
|
stroke-width: 2;
|
|
stroke-opacity: 0.4;
|
|
}
|
|
.sequence.highlighted,
|
|
.sequence.selected {
|
|
stroke-width: 4;
|
|
stroke-opacity: 1;
|
|
}
|
|
|
|
|
|
/* Mapillary Image Layer */
|
|
.layer-mapillary-images {
|
|
pointer-events: none;
|
|
}
|
|
.layer-mapillary-images .viewfield-group * {
|
|
fill: #55ff22;
|
|
}
|
|
.layer-mapillary-images .sequence {
|
|
stroke: #55ff22;
|
|
}
|
|
|
|
|
|
/* Mapillary Sign Layer */
|
|
.layer-mapillary-signs {
|
|
pointer-events: none;
|
|
}
|
|
.layer-mapillary-signs .icon-sign .icon-sign-body {
|
|
min-width: 20px;
|
|
height: 24px;
|
|
width: 24px;
|
|
outline: 2px solid transparent;
|
|
pointer-events: visible;
|
|
cursor: pointer;
|
|
z-index: 30;
|
|
overflow: visible;
|
|
}
|
|
.layer-mapillary-signs .icon-sign:hover .icon-sign-body {
|
|
outline: 5px solid #eebb00;
|
|
background-color: #eebb00;
|
|
z-index: 70;
|
|
}
|
|
.layer-mapillary-signs .icon-sign.selected .icon-sign-body {
|
|
outline: 5px solid #ffee00;
|
|
background-color: #ffee00;
|
|
z-index: 40;
|
|
}
|
|
|
|
|
|
/* OpenStreetCam Image Layer */
|
|
.layer-openstreetcam-images {
|
|
pointer-events: none;
|
|
}
|
|
.layer-openstreetcam-images .viewfield-group * {
|
|
fill: #77ddff;
|
|
}
|
|
.layer-openstreetcam-images .sequence {
|
|
stroke: #77ddff;
|
|
}
|
|
|
|
|
|
/* Mapillary viewer */
|
|
#mly .domRenderer .TagSymbol {
|
|
font-size: 10px;
|
|
background-color: rgba(0,0,0,0.4);
|
|
padding: 0 4px;
|
|
border-radius: 4px;
|
|
top: -25px;
|
|
}
|
|
#mly .domRenderer .Attribution {
|
|
/* we will roll our own to avoid async update issues like #4526 */
|
|
display: none;
|
|
}
|
|
|
|
.mly-wrapper .photo-attribution a:active,
|
|
.mly-wrapper .photo-attribution a:hover {
|
|
color: #35af6d;
|
|
}
|
|
|
|
.mly-wrapper .mapillary-js-dom {
|
|
z-index: 9;
|
|
}
|
|
|
|
/* OpenStreetCam viewer */
|
|
.osc-wrapper {
|
|
position: relative;
|
|
background-color: #000;
|
|
background-image: url(img/loader-black.gif);
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
}
|
|
|
|
.osc-wrapper .photo-attribution a:active,
|
|
.osc-wrapper .photo-attribution a:hover {
|
|
color: #77ddff;
|
|
}
|
|
|
|
.osc-controls-wrap {
|
|
text-align: center;
|
|
position: absolute;
|
|
top: 10px;
|
|
width: 100%;
|
|
z-index: 10;
|
|
}
|
|
|
|
.osc-controls {
|
|
display: inline-block;
|
|
z-index: 10;
|
|
}
|
|
|
|
.osc-controls button {
|
|
height: 18px;
|
|
width: 18px;
|
|
background: rgba(0,0,0,0.65);
|
|
color: #eee;
|
|
border-radius: 0;
|
|
}
|
|
.osc-controls button:first-of-type {
|
|
border-radius: 3px 0 0 3px;
|
|
}
|
|
.osc-controls button:last-of-type {
|
|
border-radius: 0 3px 3px 0;
|
|
}
|
|
.osc-controls button:hover,
|
|
.osc-controls button:active,
|
|
.osc-controls button:focus {
|
|
background: rgba(0,0,0,0.85);
|
|
color: #fff;
|
|
}
|