Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

93 lines
2.2 KiB
Plaintext
Raw Permalink Normal View History

2021-12-06 09:45:12 +00:00
/*
2024-09-09 14:57:16 +01:00
Copyright 2024 New Vector Ltd.
2021-12-06 09:45:12 +00:00
Copyright 2021 The Matrix.org Foundation C.I.C
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
2024-09-09 14:57:16 +01:00
Please see LICENSE files in the repository root for full details.
2021-12-06 09:45:12 +00:00
*/
.mx_LocationPicker {
border-radius: 8px;
2021-12-06 09:45:12 +00:00
2022-03-01 18:00:07 +01:00
height: 100%;
position: relative;
display: flex;
flex-direction: column;
2021-12-06 09:45:12 +00:00
/* when there are errors loading the map */
/* the canvas is still inserted */
/* and can overlap error message/close buttons */
/* hide it */
&.mx_LocationPicker_hasError {
.maplibregl-canvas-container,
.maplibregl-control-container {
display: none;
}
}
#mx_LocationPicker_map {
border-top-left-radius: inherit;
border-top-right-radius: inherit;
flex: 1;
2022-03-09 18:14:07 +01:00
.maplibregl-ctrl.maplibregl-ctrl-group,
.maplibregl-ctrl.maplibregl-ctrl-attrib {
margin-right: var(--cpd-space-4x);
2022-03-09 18:14:07 +01:00
}
.maplibregl-ctrl.maplibregl-ctrl-group {
/* place below the close button */
/* padding-16 + 24px close button + padding-10 */
margin-top: 50px;
}
.maplibregl-user-location-accuracy-circle {
display: none;
}
.maplibregl-user-location-dot {
display: none;
}
2021-12-06 09:45:12 +00:00
}
.mx_LocationPicker_footer {
flex: 0;
width: 100%;
2022-03-09 18:14:07 +01:00
box-sizing: border-box;
padding: var(--cpd-space-4x);
2022-03-09 18:14:07 +01:00
display: flex;
flex-direction: column;
justify-content: stretch;
border-bottom-left-radius: inherit;
border-bottom-right-radius: inherit;
2022-03-09 18:14:07 +01:00
background-color: $header-panel-bg-color;
}
2021-12-06 09:45:12 +00:00
}
2022-03-09 18:14:07 +01:00
.mx_LocationPicker_pinText {
position: absolute;
top: var(--cpd-space-4x);
2022-03-09 18:14:07 +01:00
width: 100%;
box-sizing: border-box;
text-align: center;
height: 0;
pointer-events: none;
span {
box-shadow: 0px 4px 15px rgb(0, 0, 0, 0.15);
2022-03-09 18:14:07 +01:00
border-radius: 8px;
padding: var(--cpd-space-2x);
2022-03-09 18:14:07 +01:00
background-color: $background;
color: $primary-content;
font-size: $font-12px;
}
}
.mx_LocationPicker_submitButton {
width: 100%;
height: 48px;
}