14684c6296
* center icon better Signed-off-by: Kerry Archibald <kerrya@element.io> * remove debug Signed-off-by: Kerry Archibald <kerrya@element.io> * retrigger all builds Signed-off-by: Kerry Archibald <kerrya@element.io> * set assetType on share event Signed-off-by: Kerry Archibald <kerrya@element.io> * use pin marker on map for pin drop share Signed-off-by: Kerry Archibald <kerrya@element.io> * lint Signed-off-by: Kerry Archibald <kerrya@element.io> * test events Signed-off-by: Kerry Archibald <kerrya@element.io> * pin drop helper text Signed-off-by: Kerry Archibald <kerrya@element.io> * use generic location type Signed-off-by: Kerry Archibald <kerrya@element.io> * add navigationcontrol when in pin mode Signed-off-by: Kerry Archibald <kerrya@element.io> * allow pin drop without location permissions Signed-off-by: Kerry Archibald <kerrya@element.io> * remove geolocate control when pin dropping without geo perms Signed-off-by: Kerry Archibald <kerrya@element.io> * test locationpicker Signed-off-by: Kerry Archibald <kerrya@element.io> * test marker type, tidy Signed-off-by: Kerry Archibald <kerrya@element.io> * tweak style Signed-off-by: Kerry Archibald <kerrya@element.io> * lint Signed-off-by: Kerry Archibald <kerrya@element.io>
132 lines
3.2 KiB
SCSS
132 lines
3.2 KiB
SCSS
/*
|
|
Copyright 2021 The Matrix.org Foundation C.I.C
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
.mx_LocationPicker {
|
|
border-radius: 8px;
|
|
|
|
height: 100%;
|
|
position: relative;
|
|
overflow: hidden;
|
|
|
|
#mx_LocationPicker_map {
|
|
height: 100%;
|
|
border-radius: 8px;
|
|
|
|
.maplibregl-ctrl.maplibregl-ctrl-group,
|
|
.maplibregl-ctrl.maplibregl-ctrl-attrib {
|
|
margin-right: $spacing-16;
|
|
}
|
|
|
|
.maplibregl-ctrl.maplibregl-ctrl-group {
|
|
// place below the close button
|
|
// padding-16 + 24px close button + padding-10
|
|
margin-top: 50px;
|
|
}
|
|
|
|
.maplibregl-ctrl-bottom-right {
|
|
bottom: 80px;
|
|
}
|
|
|
|
.maplibregl-user-location-accuracy-circle {
|
|
display: none;
|
|
}
|
|
|
|
.maplibregl-user-location-dot {
|
|
display: none;
|
|
}
|
|
|
|
.mx_MLocationBody_markerBorder {
|
|
width: 31px;
|
|
height: 31px;
|
|
border-radius: 50%;
|
|
background-color: $accent;
|
|
filter: drop-shadow(0px 3px 5px rgba(0, 0, 0, 0.2));
|
|
|
|
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: $accent;
|
|
}
|
|
}
|
|
}
|
|
|
|
.mx_LocationPicker_footer {
|
|
position: absolute;
|
|
bottom: 0px;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
padding: $spacing-16;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: stretch;
|
|
|
|
background-color: $header-panel-bg-color;
|
|
}
|
|
|
|
.mx_LocationPicker_error {
|
|
color: red;
|
|
margin: auto;
|
|
}
|
|
}
|
|
|
|
.mx_MLocationBody_markerIcon {
|
|
color: white;
|
|
height: 20px;
|
|
}
|
|
|
|
.mx_LocationPicker_pinText {
|
|
position: absolute;
|
|
top: $spacing-16;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
text-align: center;
|
|
height: 0;
|
|
pointer-events: none;
|
|
|
|
span {
|
|
box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.15);
|
|
border-radius: 8px;
|
|
padding: $spacing-8;
|
|
background-color: $background;
|
|
color: $primary-content;
|
|
|
|
font-size: $font-12px;
|
|
}
|
|
}
|
|
|
|
.mx_LocationPicker_submitButton {
|
|
width: 100%;
|
|
height: 48px;
|
|
}
|