mirror of
https://github.com/mapillary/mapillary-js.git
synced 2026-01-18 13:56:53 +00:00
Adding user-select property set to none to the whole container prevents the accidental selection of the text when panning the panorama photo. It is a reasonable choice ince we're opening the links to the user's profile and to mapillary.com in new tabs. Fixes mapillary/mapillary-js#54
40 lines
525 B
CSS
40 lines
525 B
CSS
.mapillary-js {
|
|
background-color: #000;
|
|
width: 320px;
|
|
height: 240px;
|
|
position: relative;
|
|
user-select: none;
|
|
}
|
|
|
|
/*
|
|
.mapillary-js {
|
|
position: relative;
|
|
width: 100%;
|
|
height: auto;
|
|
padding-bottom: 75%;
|
|
}
|
|
|
|
.mapillary-js > canvas {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
}
|
|
*/
|
|
|
|
.rectContainer {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
z-index: 10;
|
|
}
|
|
|
|
|
|
.Rect {
|
|
position: absolute;
|
|
outline: 2px solid lime;
|
|
}
|