2021-12-06 17:45:12 +08:00
|
|
|
/*
|
2024-09-09 21:57:16 +08:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2021-12-06 17:45:12 +08:00
|
|
|
Copyright 2021 The Matrix.org Foundation C.I.C
|
|
|
|
|
2024-09-09 21:57:16 +08:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
|
|
|
|
Please see LICENSE files in the repository root for full details.
|
2021-12-06 17:45:12 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
.mx_LocationPicker {
|
2022-01-12 17:19:26 +08:00
|
|
|
border-radius: 8px;
|
2021-12-06 17:45:12 +08:00
|
|
|
|
2022-03-02 01:00:07 +08:00
|
|
|
height: 100%;
|
2022-01-12 17:19:26 +08:00
|
|
|
position: relative;
|
2022-03-21 19:42:58 +08:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2022-01-12 17:19:26 +08:00
|
|
|
|
2022-07-27 21:39:29 +08:00
|
|
|
/* when there are errors loading the map */
|
|
|
|
/* the canvas is still inserted */
|
|
|
|
/* and can overlap error message/close buttons */
|
|
|
|
/* hide it */
|
2022-03-11 16:52:57 +08:00
|
|
|
&.mx_LocationPicker_hasError {
|
2022-12-12 19:24:14 +08:00
|
|
|
.maplibregl-canvas-container,
|
|
|
|
.maplibregl-control-container {
|
2022-03-11 16:52:57 +08:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-12 21:32:08 +08:00
|
|
|
#mx_LocationPicker_map {
|
2022-03-21 19:42:58 +08:00
|
|
|
border-top-left-radius: inherit;
|
|
|
|
border-top-right-radius: inherit;
|
|
|
|
flex: 1;
|
2022-01-12 17:19:26 +08:00
|
|
|
|
2022-03-10 01:14:07 +08:00
|
|
|
.maplibregl-ctrl.maplibregl-ctrl-group,
|
|
|
|
.maplibregl-ctrl.maplibregl-ctrl-attrib {
|
|
|
|
margin-right: $spacing-16;
|
|
|
|
}
|
|
|
|
|
2022-01-12 21:32:08 +08:00
|
|
|
.maplibregl-ctrl.maplibregl-ctrl-group {
|
2022-07-27 21:39:29 +08:00
|
|
|
/* place below the close button */
|
|
|
|
/* padding-16 + 24px close button + padding-10 */
|
2022-01-12 21:32:08 +08:00
|
|
|
margin-top: 50px;
|
|
|
|
}
|
2021-12-06 17:45:12 +08:00
|
|
|
|
2022-01-12 21:32:08 +08:00
|
|
|
.maplibregl-user-location-accuracy-circle {
|
|
|
|
display: none;
|
|
|
|
}
|
2022-01-12 17:19:26 +08:00
|
|
|
|
2022-01-12 21:32:08 +08:00
|
|
|
.maplibregl-user-location-dot {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2021-12-06 17:45:12 +08:00
|
|
|
|
2022-01-12 21:32:08 +08:00
|
|
|
.mx_LocationPicker_footer {
|
2022-03-21 19:42:58 +08:00
|
|
|
flex: 0;
|
2022-01-12 21:32:08 +08:00
|
|
|
width: 100%;
|
2022-03-10 01:14:07 +08:00
|
|
|
box-sizing: border-box;
|
|
|
|
padding: $spacing-16;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: stretch;
|
2022-01-12 21:32:08 +08:00
|
|
|
|
2022-03-21 19:42:58 +08:00
|
|
|
border-bottom-left-radius: inherit;
|
|
|
|
border-bottom-right-radius: inherit;
|
|
|
|
|
2022-03-10 01:14:07 +08:00
|
|
|
background-color: $header-panel-bg-color;
|
2021-12-06 17:45:12 +08:00
|
|
|
}
|
|
|
|
}
|
2022-03-10 01:14:07 +08:00
|
|
|
|
|
|
|
.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;
|
|
|
|
}
|