2021-12-06 12:45:12 +03:00
|
|
|
/*
|
2024-09-09 16:57:16 +03:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2021-12-06 12:45:12 +03:00
|
|
|
Copyright 2021 The Matrix.org Foundation C.I.C
|
|
|
|
|
2024-09-09 16:57:16 +03: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 12:45:12 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
.mx_LocationPicker {
|
2022-01-12 12:19:26 +03:00
|
|
|
border-radius: 8px;
|
2021-12-06 12:45:12 +03:00
|
|
|
|
2022-03-01 20:00:07 +03:00
|
|
|
height: 100%;
|
2022-01-12 12:19:26 +03:00
|
|
|
position: relative;
|
2022-03-21 14:42:58 +03:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2022-01-12 12:19:26 +03:00
|
|
|
|
2022-07-27 16:39:29 +03: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 11:52:57 +03:00
|
|
|
&.mx_LocationPicker_hasError {
|
|
|
|
.maplibregl-canvas-container,
|
|
|
|
.maplibregl-control-container {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-12 16:32:08 +03:00
|
|
|
#mx_LocationPicker_map {
|
2022-03-21 14:42:58 +03:00
|
|
|
border-top-left-radius: inherit;
|
|
|
|
border-top-right-radius: inherit;
|
|
|
|
flex: 1;
|
2022-01-12 12:19:26 +03:00
|
|
|
|
2022-03-09 20:14:07 +03:00
|
|
|
.maplibregl-ctrl.maplibregl-ctrl-group,
|
|
|
|
.maplibregl-ctrl.maplibregl-ctrl-attrib {
|
|
|
|
margin-right: $spacing-16;
|
|
|
|
}
|
|
|
|
|
2022-01-12 16:32:08 +03:00
|
|
|
.maplibregl-ctrl.maplibregl-ctrl-group {
|
2022-07-27 16:39:29 +03:00
|
|
|
/* place below the close button */
|
|
|
|
/* padding-16 + 24px close button + padding-10 */
|
2022-01-12 16:32:08 +03:00
|
|
|
margin-top: 50px;
|
|
|
|
}
|
2021-12-06 12:45:12 +03:00
|
|
|
|
2022-01-12 16:32:08 +03:00
|
|
|
.maplibregl-user-location-accuracy-circle {
|
|
|
|
display: none;
|
|
|
|
}
|
2022-01-12 12:19:26 +03:00
|
|
|
|
2022-01-12 16:32:08 +03:00
|
|
|
.maplibregl-user-location-dot {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2021-12-06 12:45:12 +03:00
|
|
|
|
2022-01-12 16:32:08 +03:00
|
|
|
.mx_LocationPicker_footer {
|
2022-03-21 14:42:58 +03:00
|
|
|
flex: 0;
|
2022-01-12 16:32:08 +03:00
|
|
|
width: 100%;
|
2022-03-09 20:14:07 +03:00
|
|
|
box-sizing: border-box;
|
|
|
|
padding: $spacing-16;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: stretch;
|
2022-01-12 16:32:08 +03:00
|
|
|
|
2022-03-21 14:42:58 +03:00
|
|
|
border-bottom-left-radius: inherit;
|
|
|
|
border-bottom-right-radius: inherit;
|
|
|
|
|
2022-03-09 20:14:07 +03:00
|
|
|
background-color: $header-panel-bg-color;
|
2021-12-06 12:45:12 +03:00
|
|
|
}
|
|
|
|
}
|
2022-03-09 20:14:07 +03: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;
|
|
|
|
}
|