2020-12-16 16:54:41 +00:00
|
|
|
/*!
|
2021-07-25 14:12:40 +00:00
|
|
|
* Copyright 2021 James Lyne
|
2020-12-16 16:54:41 +00:00
|
|
|
*
|
2021-07-25 14:12:40 +00:00
|
|
|
* 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
|
2020-12-16 16:54:41 +00:00
|
|
|
*
|
2021-07-25 14:12:40 +00:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2020-12-16 16:54:41 +00:00
|
|
|
*
|
2021-07-25 14:12:40 +00:00
|
|
|
* 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.
|
2020-12-16 16:54:41 +00:00
|
|
|
*/
|
|
|
|
|
2020-12-01 23:20:38 +00:00
|
|
|
.leaflet-control {
|
2021-05-15 22:24:29 +00:00
|
|
|
background-color: var(--background-base);
|
|
|
|
border-radius: var(--border-radius);
|
2021-05-24 20:57:53 +00:00
|
|
|
box-shadow: var(--box-shadow);
|
2020-12-01 23:20:38 +00:00
|
|
|
margin: 0;
|
|
|
|
box-sizing: border-box;
|
2021-05-25 22:27:25 +00:00
|
|
|
overflow: visible;
|
2020-12-15 22:12:57 +00:00
|
|
|
font-size: 1.5rem;
|
2020-12-01 23:20:38 +00:00
|
|
|
|
|
|
|
a, button {
|
|
|
|
@extend %button;
|
|
|
|
}
|
2021-01-07 13:49:00 +00:00
|
|
|
|
2021-07-22 19:48:01 +00:00
|
|
|
/* Avoid applying the base background colour twice, in case its semi-transparent */
|
2021-08-25 19:29:36 +00:00
|
|
|
> a:not(:hover):not(:focus):not([aria-expanded=true]),
|
|
|
|
> button:not(:hover):not(:focus):not([aria-expanded=true]) {
|
2021-07-22 19:48:01 +00:00
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
2021-01-07 13:49:00 +00:00
|
|
|
@media print {
|
|
|
|
display: none !important;
|
|
|
|
}
|
2020-12-01 23:20:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.leaflet-bar {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
padding: 0;
|
|
|
|
border: none;
|
2021-05-24 20:57:53 +00:00
|
|
|
box-shadow: var(--box-shadow);
|
2020-12-01 23:20:38 +00:00
|
|
|
|
|
|
|
a {
|
|
|
|
border-radius: 0;
|
2021-05-15 22:24:29 +00:00
|
|
|
border-bottom: 0.1rem solid var(--border-color);
|
2020-12-20 14:53:16 +00:00
|
|
|
|
2021-08-27 00:58:05 +00:00
|
|
|
&:first-child {
|
|
|
|
border-top-left-radius: var(--border-radius);
|
|
|
|
border-top-right-radius: var(--border-radius);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
border-bottom-left-radius: var(--border-radius);
|
|
|
|
border-bottom-right-radius: var(--border-radius);
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
|
2020-12-20 14:53:16 +00:00
|
|
|
&.leaflet-disabled {
|
2021-05-15 22:24:29 +00:00
|
|
|
background-color: var(--background-disabled);
|
2020-12-20 14:53:16 +00:00
|
|
|
cursor: not-allowed;
|
|
|
|
|
|
|
|
&:hover {
|
2021-05-15 22:24:29 +00:00
|
|
|
color: var(--text-disabled);
|
|
|
|
border-bottom-color: var(--border-color);
|
2020-12-20 14:53:16 +00:00
|
|
|
}
|
|
|
|
}
|
2020-12-22 13:40:15 +00:00
|
|
|
|
|
|
|
&:hover {
|
2021-05-15 22:24:29 +00:00
|
|
|
border-bottom-color: var(--border-color);
|
2020-12-22 13:40:15 +00:00
|
|
|
}
|
2020-12-01 23:20:38 +00:00
|
|
|
}
|
2021-01-07 13:49:00 +00:00
|
|
|
|
|
|
|
@media print {
|
|
|
|
display: none !important;
|
|
|
|
}
|
2020-12-01 23:20:38 +00:00
|
|
|
}
|
|
|
|
|
2021-08-24 14:59:31 +00:00
|
|
|
.leaflet-control-button,
|
2021-08-27 00:58:05 +00:00
|
|
|
.leaflet-control-layers-toggle,
|
|
|
|
.leaflet-control-logo,
|
|
|
|
.leaflet-bar a {
|
2020-12-01 23:20:38 +00:00
|
|
|
@extend %button;
|
2021-08-27 00:58:05 +00:00
|
|
|
line-height: 3.5rem;
|
2021-08-24 14:59:31 +00:00
|
|
|
width: var(--ui-button-size);
|
|
|
|
height: var(--ui-button-size);
|
2020-12-01 23:20:38 +00:00
|
|
|
}
|
|
|
|
|
2021-08-27 00:58:05 +00:00
|
|
|
.leaflet-control-zoom {
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
|
|
a {
|
|
|
|
font-family: sans-serif; /* +/- look better */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-01 23:20:38 +00:00
|
|
|
.leaflet-control-coordinates {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
padding: 0.5rem 1.5rem;
|
|
|
|
|
|
|
|
.value {
|
|
|
|
line-height: 1;
|
|
|
|
font-family: monospace;
|
|
|
|
white-space: pre;
|
2020-12-15 22:12:57 +00:00
|
|
|
font-size: 2rem;
|
2020-12-01 23:20:38 +00:00
|
|
|
|
|
|
|
&[data-label]:before {
|
|
|
|
content: attr(data-label);
|
|
|
|
display: block;
|
|
|
|
line-height: 1;
|
|
|
|
margin-bottom: 0.5rem;
|
2020-12-15 22:12:57 +00:00
|
|
|
font-size: 1.25rem;
|
2020-12-01 23:20:38 +00:00
|
|
|
font-family: Raleway, sans-serif;;
|
|
|
|
}
|
|
|
|
|
|
|
|
& + .value {
|
|
|
|
margin-left: 2rem;
|
|
|
|
}
|
|
|
|
}
|
2020-12-20 14:45:04 +00:00
|
|
|
|
2021-01-25 02:27:35 +00:00
|
|
|
@media (max-width: 600px) {
|
2020-12-20 14:45:04 +00:00
|
|
|
.region {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-24 14:59:31 +00:00
|
|
|
@media (max-width: 480px), (max-height: 480px) {
|
|
|
|
.value {
|
|
|
|
font-size: 1.6rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-25 02:27:35 +00:00
|
|
|
@media (max-width: 384px) {
|
2020-12-20 14:45:04 +00:00
|
|
|
.chunk {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2020-12-01 23:20:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.leaflet-control-layers {
|
2020-12-15 22:14:04 +00:00
|
|
|
width: auto;
|
2020-12-01 23:20:38 +00:00
|
|
|
border: none;
|
2021-05-15 22:24:29 +00:00
|
|
|
color: var(--text-base);
|
2021-05-28 18:14:06 +00:00
|
|
|
position: relative;
|
2020-12-15 22:14:04 +00:00
|
|
|
|
|
|
|
.leaflet-control-layers-list {
|
2021-05-28 18:14:06 +00:00
|
|
|
@extend %panel;
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
2021-08-24 14:59:31 +00:00
|
|
|
left: calc(var(--ui-element-spacing) + var(--ui-button-size));
|
2020-12-20 14:45:04 +00:00
|
|
|
overflow: auto;
|
2021-06-22 17:24:22 +00:00
|
|
|
max-width: calc(100vw - 14rem);
|
2021-06-22 17:25:19 +00:00
|
|
|
box-sizing: border-box;
|
2021-06-22 17:24:22 +00:00
|
|
|
|
|
|
|
@media screen and (max-width: 400px) {
|
|
|
|
max-width: calc(100vw - 13rem);
|
|
|
|
}
|
|
|
|
|
|
|
|
.leaflet-control-layers-overlays {
|
|
|
|
width: 100%;
|
2021-06-22 17:25:19 +00:00
|
|
|
max-width: 30rem;
|
2021-06-22 17:24:22 +00:00
|
|
|
}
|
2020-12-15 22:14:04 +00:00
|
|
|
|
|
|
|
.layer {
|
|
|
|
cursor: pointer;
|
|
|
|
padding: 0.8rem 0 0.7rem;
|
2021-07-21 15:19:39 +00:00
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
margin-top: -0.4rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
margin-bottom: -0.4rem;
|
|
|
|
}
|
2020-12-15 22:14:04 +00:00
|
|
|
}
|
|
|
|
}
|
2020-12-01 23:20:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.leaflet-control-logo {
|
2020-12-20 14:45:04 +00:00
|
|
|
flex-shrink: 0;
|
2020-12-01 23:20:38 +00:00
|
|
|
|
|
|
|
a {
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.leaflet-top, .leaflet-bottom,
|
|
|
|
.leaflet-left, .leaflet-right {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.leaflet-left {
|
2021-08-24 14:59:31 +00:00
|
|
|
padding-left: var(--ui-element-spacing);
|
2020-12-01 23:20:38 +00:00
|
|
|
}
|
|
|
|
|
2021-05-28 23:52:28 +00:00
|
|
|
.leaflet-right {
|
2021-08-24 14:59:31 +00:00
|
|
|
padding-right: var(--ui-element-spacing);
|
2021-05-28 23:52:28 +00:00
|
|
|
}
|
|
|
|
|
2020-12-01 23:20:38 +00:00
|
|
|
.leaflet-top {
|
2021-08-24 14:59:31 +00:00
|
|
|
padding-top: var(--ui-element-spacing);
|
2020-12-01 23:20:38 +00:00
|
|
|
flex-direction: column;
|
2020-12-17 14:50:12 +00:00
|
|
|
top: 0;
|
2021-08-24 14:59:31 +00:00
|
|
|
bottom: calc((var(--ui-element-spacing) * 2) + var(--ui-button-size));
|
2020-12-17 14:50:12 +00:00
|
|
|
align-items: flex-start;
|
2021-05-29 00:34:45 +00:00
|
|
|
z-index: 1003;
|
2020-12-01 23:20:38 +00:00
|
|
|
|
|
|
|
.leaflet-control {
|
|
|
|
order: 2;
|
2021-08-24 14:59:31 +00:00
|
|
|
min-width: var(--ui-button-size);
|
|
|
|
margin-bottom: var(--ui-element-spacing);
|
2020-12-01 23:20:38 +00:00
|
|
|
|
2020-12-17 14:50:12 +00:00
|
|
|
&:first-child {
|
|
|
|
margin-top: 0;
|
2020-12-01 23:20:38 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-18 19:39:30 +00:00
|
|
|
/* Always show below other controls */
|
|
|
|
.leaflet-control-loading {
|
|
|
|
order: 3;
|
|
|
|
}
|
|
|
|
|
2020-12-01 23:20:38 +00:00
|
|
|
.leaflet-bar {
|
|
|
|
flex-direction: column;
|
2021-05-24 20:57:53 +00:00
|
|
|
}
|
|
|
|
|
2020-12-01 23:20:38 +00:00
|
|
|
.leaflet-control-logo {
|
|
|
|
order: 1;
|
|
|
|
margin-top: 0 !important;
|
|
|
|
|
|
|
|
& + .leaflet-control-logo {
|
2021-08-24 14:59:31 +00:00
|
|
|
margin-top: var(--ui-element-spacing) !important;
|
2020-12-01 23:20:38 +00:00
|
|
|
}
|
|
|
|
}
|
2020-12-17 14:50:12 +00:00
|
|
|
|
2021-08-24 14:59:31 +00:00
|
|
|
.leaflet-control-bottom {
|
2020-12-17 14:50:12 +00:00
|
|
|
margin-top: auto;
|
2021-08-24 14:59:31 +00:00
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
& ~ .leaflet-control-bottom {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.leaflet-control-chat {
|
2020-12-17 14:50:12 +00:00
|
|
|
order: 1000;
|
2021-08-24 14:59:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.leaflet-control-login {
|
|
|
|
order: 900;
|
2020-12-17 14:50:12 +00:00
|
|
|
}
|
2020-12-20 14:45:04 +00:00
|
|
|
|
|
|
|
.leaflet-control-zoom {
|
2021-01-25 02:27:35 +00:00
|
|
|
@media (max-width: 480px) and (pointer: coarse), (max-height: 480px) and (pointer: coarse), (max-height: 400px) {
|
2020-12-20 14:45:04 +00:00
|
|
|
display: none;
|
|
|
|
|
|
|
|
& + .leaflet-control {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-12-01 23:20:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.leaflet-bottom {
|
2021-08-24 14:59:31 +00:00
|
|
|
padding-bottom: var(--ui-element-spacing);
|
2020-12-15 22:12:57 +00:00
|
|
|
align-items: stretch;
|
2021-05-29 00:34:45 +00:00
|
|
|
z-index: 1002;
|
2020-12-01 23:20:38 +00:00
|
|
|
|
2021-05-18 21:01:07 +00:00
|
|
|
.leaflet-control {
|
|
|
|
order: 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Always show before other controls */
|
|
|
|
.leaflet-control-link {
|
|
|
|
order: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.leaflet-left .leaflet-control {
|
2021-08-24 14:59:31 +00:00
|
|
|
margin-right: var(--ui-element-spacing);
|
2020-12-20 14:45:04 +00:00
|
|
|
}
|
2020-12-01 23:20:38 +00:00
|
|
|
}
|
|
|
|
|
2020-12-12 19:09:38 +00:00
|
|
|
.leaflet-center {
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
justify-content: center;
|
|
|
|
flex-direction: row;
|
2021-05-29 00:34:45 +00:00
|
|
|
z-index: 1001;
|
2020-12-12 19:09:38 +00:00
|
|
|
|
|
|
|
.leaflet-control {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-15 01:51:19 +00:00
|
|
|
.leaflet-control-loading {
|
|
|
|
cursor: wait;
|
|
|
|
animation: fade 0.3s linear;
|
|
|
|
animation-fill-mode: forwards;
|
2021-06-22 17:25:19 +00:00
|
|
|
|
2021-08-25 19:29:36 +00:00
|
|
|
&:hover, &:focus {
|
2021-05-15 22:24:29 +00:00
|
|
|
background-color: var(--background-base);
|
2020-12-15 01:51:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&[hidden] {
|
|
|
|
display: none;
|
|
|
|
}
|
2021-06-22 17:24:22 +00:00
|
|
|
}
|