2020-01-31 16:47:21 +01:00
|
|
|
@import '../_variables';
|
|
|
|
@import '../_animations';
|
2019-12-13 22:25:25 +01:00
|
|
|
|
|
|
|
//@import "~mapbox-gl/src/css/mapbox-gl.css";
|
2020-03-19 18:19:58 +01:00
|
|
|
$map-height: 30rem !default;
|
|
|
|
|
|
|
|
$map-marker-color: $primary !default;
|
|
|
|
$map-marker-size: 30px !default;
|
|
|
|
|
|
|
|
$map-popup-font-size: 0.8rem !default;
|
|
|
|
$map-popup-width: 16rem !default;
|
|
|
|
$map-popup-height: 7rem !default;
|
|
|
|
$map-popup-bg: $white !default;
|
|
|
|
$map-popup-color: $body-color !default;
|
2019-06-08 17:20:51 +02:00
|
|
|
|
|
|
|
.mapAPI-map {
|
2020-03-19 18:19:58 +01:00
|
|
|
height: $map-height;
|
|
|
|
margin-bottom: $grid-gutter-element-height;
|
2019-06-08 17:20:51 +02:00
|
|
|
}
|
|
|
|
|
2019-12-17 18:05:46 +01:00
|
|
|
.mapboxgl {
|
|
|
|
&-popup {
|
2020-03-19 18:19:58 +01:00
|
|
|
width: $map-popup-width;
|
|
|
|
height: $map-popup-height;
|
|
|
|
font-size: $map-popup-font-size;
|
|
|
|
line-height: 1.2em;
|
2019-12-17 18:05:46 +01:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
display: flex;
|
|
|
|
pointer-events: none;
|
|
|
|
z-index: 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-popup-anchor-bottom,
|
|
|
|
&-popup-anchor-bottom-left,
|
|
|
|
&-popup-anchor-bottom-right {
|
|
|
|
flex-direction: column-reverse;
|
|
|
|
}
|
2019-12-10 12:13:25 +01:00
|
|
|
|
2019-12-17 18:05:46 +01:00
|
|
|
&-popup-content {
|
2020-03-19 18:19:58 +01:00
|
|
|
min-width: $map-popup-width;
|
|
|
|
background: $map-popup-bg;
|
|
|
|
color: $map-popup-color;
|
2019-12-17 18:05:46 +01:00
|
|
|
position: relative;
|
|
|
|
pointer-events: auto;
|
2020-03-19 18:19:58 +01:00
|
|
|
padding: 0.8rem;
|
|
|
|
border-radius: 0.25rem;
|
2020-01-31 16:57:02 +01:00
|
|
|
min-height: 5rem;
|
2020-03-19 18:19:58 +01:00
|
|
|
box-shadow: 0 0.1rem 0.8rem 0 rgba(0, 0, 0, 0.4);
|
2019-12-17 18:05:46 +01:00
|
|
|
}
|
2019-09-07 03:42:29 +02:00
|
|
|
|
2019-12-17 18:05:46 +01:00
|
|
|
&-popup-close-button {
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
2019-09-07 03:42:29 +02:00
|
|
|
font-size: 2rem;
|
2020-01-31 16:47:21 +01:00
|
|
|
padding: 0.5rem;
|
2020-03-19 18:19:58 +01:00
|
|
|
border-top-right-radius: 0.25rem;
|
2021-01-25 11:10:03 +01:00
|
|
|
z-index: 2;
|
2019-09-07 03:42:29 +02:00
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background: $primary;
|
|
|
|
color: $white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-17 18:05:46 +01:00
|
|
|
&-popup-tip {
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
2020-03-19 18:19:58 +01:00
|
|
|
border: 0.8rem solid transparent;
|
2019-12-17 18:05:46 +01:00
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-popup-anchor-bottom &-popup-tip {
|
2020-03-19 18:19:58 +01:00
|
|
|
border-top-color: $map-popup-bg;
|
2019-12-17 18:05:46 +01:00
|
|
|
align-self: center;
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-marker {
|
2020-03-19 18:19:58 +01:00
|
|
|
width: $map-marker-size;
|
|
|
|
height: $map-marker-size;
|
|
|
|
font-size: $map-marker-size;
|
2020-06-11 14:10:43 +02:00
|
|
|
line-height: 1em;
|
2020-03-19 18:19:58 +01:00
|
|
|
color: $map-marker-color;
|
2019-12-17 18:05:46 +01:00
|
|
|
cursor: pointer;
|
|
|
|
text-align: center;
|
2020-06-11 13:53:30 +02:00
|
|
|
display: flex;
|
|
|
|
align-items: flex-end;
|
|
|
|
justify-content: center;
|
2019-12-17 18:05:46 +01:00
|
|
|
|
|
|
|
.marker-icon,
|
|
|
|
.fas,
|
|
|
|
.fab,
|
|
|
|
.far {
|
|
|
|
animation: pulse 0.8s linear infinite;
|
|
|
|
}
|
2019-09-07 03:42:29 +02:00
|
|
|
}
|
2021-01-25 11:10:03 +01:00
|
|
|
|
|
|
|
&-cluster {
|
|
|
|
background: $info;
|
|
|
|
color: color-yiq($info);
|
|
|
|
border-radius: 100%;
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 1.2rem;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
animation: pulse 0.8s linear infinite;
|
|
|
|
|
|
|
|
&::before,
|
|
|
|
&::after {
|
|
|
|
content: "";
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
width: 140%;
|
|
|
|
height: 140%;
|
|
|
|
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
top: 50%;
|
|
|
|
left: 50%;
|
|
|
|
background: $info;
|
|
|
|
opacity: 0.2;
|
|
|
|
border-radius: 100%;
|
|
|
|
z-index: -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
width: 180%;
|
|
|
|
height: 180%;
|
|
|
|
}
|
|
|
|
}
|
2019-06-08 17:20:51 +02:00
|
|
|
}
|