Live location sharing - extract location markers into generic Marker (#8225)
* extract location markers into generic Marker Signed-off-by: Kerry Archibald <kerrya@element.io> * comments Signed-off-by: Kerry Archibald <kerrya@element.io> * remove skinned Signed-off-by: Kerry Archibald <kerrya@element.io>
This commit is contained in:
parent
b9da2255c4
commit
b98739056e
10 changed files with 188 additions and 145 deletions
|
@ -55,39 +55,6 @@ limitations under the License.
|
|||
.maplibregl-user-location-dot {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.mx_MLocationBody_markerBorder {
|
||||
width: 31px;
|
||||
height: 31px;
|
||||
border-radius: 50%;
|
||||
filter: drop-shadow(0px 3px 5px rgba(0, 0, 0, 0.2));
|
||||
background-color: currentColor;
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.mx_MLocationBody_pointer {
|
||||
position: absolute;
|
||||
bottom: -3px;
|
||||
left: 11px;
|
||||
width: 9px;
|
||||
height: 5px;
|
||||
|
||||
&::before {
|
||||
mask-image: url('$(res)/img/location/pointer.svg');
|
||||
mask-position: center;
|
||||
mask-repeat: no-repeat;
|
||||
mask-size: 9px;
|
||||
content: '';
|
||||
display: inline-block;
|
||||
width: 9px;
|
||||
height: 5px;
|
||||
position: absolute;
|
||||
background-color: currentColor;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.mx_LocationPicker_footer {
|
||||
|
@ -106,11 +73,6 @@ limitations under the License.
|
|||
}
|
||||
}
|
||||
|
||||
.mx_MLocationBody_markerIcon {
|
||||
color: white;
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.mx_LocationPicker_pinText {
|
||||
position: absolute;
|
||||
top: $spacing-16;
|
||||
|
@ -135,11 +97,3 @@ limitations under the License.
|
|||
width: 100%;
|
||||
height: 48px;
|
||||
}
|
||||
|
||||
// live marker color is set by user color class
|
||||
// generated from userid
|
||||
// others are $accent
|
||||
.mx_MLocationBody_marker-Self,
|
||||
.mx_MLocationBody_marker-Pin {
|
||||
color: $accent;
|
||||
}
|
||||
|
|
|
@ -22,56 +22,6 @@ limitations under the License.
|
|||
|
||||
border-radius: $timeline-image-border-radius;
|
||||
}
|
||||
|
||||
.mx_MLocationBody_markerBorder {
|
||||
width: 31px;
|
||||
height: 31px;
|
||||
border-radius: 50%;
|
||||
filter: drop-shadow(0px 3px 5px rgba(0, 0, 0, 0.2));
|
||||
background-color: $accent;
|
||||
|
||||
// See _LocationPicker.scss
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
.mx_BaseAvatar {
|
||||
margin: 0;
|
||||
line-height: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.mx_MLocationBody_pointer {
|
||||
position: absolute;
|
||||
bottom: -3px;
|
||||
left: 11px;
|
||||
width: 9px;
|
||||
height: 5px;
|
||||
|
||||
&::before {
|
||||
mask-image: url('$(res)/img/location/pointer.svg');
|
||||
mask-position: center;
|
||||
mask-repeat: no-repeat;
|
||||
mask-size: 9px;
|
||||
content: '';
|
||||
display: inline-block;
|
||||
width: 9px;
|
||||
height: 5px;
|
||||
position: absolute;
|
||||
background-color: $accent;
|
||||
}
|
||||
}
|
||||
|
||||
.mx_MLocationBody_markerContents {
|
||||
background-color: $location-marker-color;
|
||||
margin: 0;
|
||||
width: 31px;
|
||||
height: 31px;
|
||||
mask-repeat: no-repeat;
|
||||
mask-size: 16px;
|
||||
mask-position: center;
|
||||
mask-image: url('$(res)/img/element-icons/location.svg');
|
||||
}
|
||||
}
|
||||
|
||||
/* In the timeline, we fit the width of the container */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue