Globe: Smaller dots for close locations

This commit is contained in:
2020-06-01 22:20:32 +02:00
parent 014089b3c4
commit 5b75b4d554

View File

@@ -64,21 +64,32 @@
display: block; display: block;
top: -4px; top: -4px;
left: -4px; left: -4px;
width: 8px;
height: 8px;
padding: 4px; padding: 4px;
border-radius: 50%;
opacity: 1; opacity: 1;
background: #ff6c89;
will-change: transform; will-change: transform;
// Dot
&:before {
content: "";
display: block;
position: absolute;
top: 0;
left: 0;
width: 8px;
height: 8px;
background: $color-secondary;
border-radius: 100%;
}
span { span {
transition: color 0.4s $ease-quart, opacity 0.3s $ease-inout; transition: color 0.4s $ease-quart, opacity 0.3s $ease-inout;
} }
// Hover glow effect // Hover glow effect
&.hover { &.hover {
animation: globeMarkerPulse 1s; &:before {
animation: globeMarkerPulse 1s;
}
} }
// Label // Label
@@ -120,7 +131,7 @@
} }
.marker { .marker {
&__city { &__city {
color: #FF6C89; color: $color-secondary;
} }
&__country { &__country {
color: $color-text; color: $color-text;
@@ -158,6 +169,12 @@
// Marker is close to another one // Marker is close to another one
// Show the marker infos only on hover // Show the marker infos only on hover
&.is-close { &.is-close {
// Dot
&:before {
width: 7px;
height: 7px;
}
// Label
.marker__label { .marker__label {
opacity: 0; opacity: 0;
} }