webpack-bootstrap-ui-kit/src/scss/_components/_ui.map.scss
2020-01-31 22:57:02 +07:00

84 lines
1.6 KiB
SCSS
Executable File

@import '../_variables';
@import '../_animations';
//@import "~mapbox-gl/src/css/mapbox-gl.css";
.mapAPI-map {
height: 30rem;
margin-bottom: 1rem;
}
.mapboxgl {
&-popup {
position: absolute;
top: 0;
left: 0;
display: flex;
pointer-events: none;
font-size: 0.8rem;
z-index: 4;
line-height: 20px;
}
&-popup-anchor-bottom,
&-popup-anchor-bottom-left,
&-popup-anchor-bottom-right {
flex-direction: column-reverse;
}
&-popup-content {
position: relative;
pointer-events: auto;
padding: 10px 10px 15px;
border-radius: 3px;
background: $white;
min-width: 240px;
min-height: 5rem;
box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.4);
}
&-popup-close-button {
position: absolute;
right: 0;
top: 0;
font-size: 2rem;
padding: 0.5rem;
border-top-right-radius: 3px;
&:hover,
&:focus {
background: $primary;
color: $white;
}
}
&-popup-tip {
width: 0;
height: 0;
border: 10px solid transparent;
z-index: 1;
}
&-popup-anchor-bottom &-popup-tip {
align-self: center;
border-bottom: none;
border-top-color: #fff;
}
&-marker {
width: 30px;
height: 30px;
font-size: 30px;
cursor: pointer;
text-align: center;
color: $primary;
.marker-icon,
.fas,
.fab,
.far {
animation: pulse 0.8s linear infinite;
}
}
}